ffmpeg-cli-wrapper
ffmpeg-cli-wrapper copied to clipboard
Set multiple input images when creating a video
I am trying to create a video of images, where the input consists of multiple images. I didn't find any solution, how to set multiple images as an input and set the duration of each image. Could I add an image after image or set a list with images?
In the CL I can set the input to be a .txt file, which contains the path and the duration of each image.
What you have tried I tried giving a .txt file as an input, but a string argument is required. I tried to add multiple .addInput() statements, but I am only able to hardcode them.
Is there any way of doing this task?
No any solution?
I think https://github.com/bramp/ffmpeg-cli-wrapper/wiki/Random-Examples#example-6-create-a-video-from-images or https://github.com/bramp/ffmpeg-cli-wrapper/wiki/Random-Examples#example-7-complex-filters may be useful.
If you can provide the command you use on the CLI, I can propose the equivalent java one.
FFmpegBuilder builder = new FFmpegBuilder() .addInput("image%03d.png") .addOutput("output.mp4") .setVideoFrameRate(FFmpeg.FPS_24) .done();
Not Work ! video is blank !
please help me...