I have a directory where new files in jpeg format are periodically emerge.

How can these files be processed one by one, waiting for the next one and convert them to a mp4 file.

I tried like this

ffmpeg -framerate 1 -i test%d.jpg -c:v libx264 -r 30 -pix_fmt yuv420p output.mp4

but ffmpeg do not wait for new files and exits.

Is there a solution?



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.