ffmpeg-cli-wrapper icon indicating copy to clipboard operation
ffmpeg-cli-wrapper copied to clipboard

Set multiple input images when creating a video

Open mavrovgeorgi opened this issue 6 years ago • 3 comments

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?

mavrovgeorgi avatar Nov 19 '18 16:11 mavrovgeorgi

No any solution?

msin87 avatar Mar 19 '21 07:03 msin87

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.

bramp avatar Mar 23 '21 15:03 bramp

FFmpegBuilder builder = new FFmpegBuilder() .addInput("image%03d.png") .addOutput("output.mp4") .setVideoFrameRate(FFmpeg.FPS_24) .done();

Not Work ! video is blank !

please help me...

masoudzeeb avatar Jul 22 '23 10:07 masoudzeeb