Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set multiple input images when creating a video #188

Open
mavrovgeorgi opened this issue Nov 19, 2018 · 3 comments
Open

Set multiple input images when creating a video #188

mavrovgeorgi opened this issue Nov 19, 2018 · 3 comments
Labels

Comments

@mavrovgeorgi
Copy link

mavrovgeorgi commented Nov 19, 2018

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?

@msin87
Copy link

msin87 commented Mar 19, 2021

No any solution?

@bramp
Copy link
Owner

bramp commented Mar 23, 2021

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 bramp added the question label Mar 23, 2021
@masoudzeeb
Copy link

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

Not Work !
video is blank !

please help me...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants