Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Regarding the size of the project I don't know what you could do.</p> <p>Regarding the conversion of images to a video, you could do something like:</p> <p>public static String convert(File file) {</p> <pre><code> FFmpegFrameGrabber frameGrabber = new FFmpegFrameGrabber(file.getAbsolutePath()); String newName = file.getName(); newName = newName.replace("." + FileManager.getExtension(file), "_RECODED.mp4"); String newFilePath = file.getParent() + "/" + newName; FFmpegFrameRecorder recorder; Frame frame = new Frame(); recorder = new FFmpegFrameRecorder(newFilePath, 250, 250); recorder.setFrameRate(20); recorder.setFormat("mp4"); recorder.setAudioChannels(2); recorder.setPreset("veryfast"); try { long startTime = System.currentTimeMillis(); System.out.println("" + startTime); Log.d("Tempo", "" + startTime); frameGrabber.start(); recorder.start(); while (true) { try { frame = frameGrabber.grabFrame(); if (frame == null) { System.out.println("!!! Failed cvQueryFrame"); break; } recorder.record(frame); } catch (Exception e) { Log.e("converter", e.getMessage()); } } frameGrabber.stop(); frameGrabber.release(); recorder.stop(); recorder.release(); long stopTime = System.currentTimeMillis(); System.out.println(""+stopTime); } catch (Exception e) { e.printStackTrace(); } return newFilePath; } </code></pre> <p>This actually get every frame from an input video and creates another .mp4 video. You could just rewrite it to code from every frame in your folder (or anything like that).</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload