[FFmpeg-user] How can I setup ffmpeg to continuously produce 1 second videos from piped jpgs?
Ricardo Zacarias
rickyz at streamingglobal.com
Thu Oct 12 20:43:58 EEST 2023
I am using ffmpeg on Ubuntu 22.04 to create 1 second mp4 videos from piped jpgs. The only issue that I have is that ffmpeg stops executing after the first set of jpgs is piped in. I need ffmpeg to continuously take in jpgs so that it can keep creating more mp4s.
This is the command line that got me closest to what I want:
ffmpeg -framerate 5 -i /tmp/ffmpeg_pipe -c:v libx264 -vf "fps=5" -f segment -segment_time 1 "output_%d.mp4"
When I piped in 10 images, cat image_*.jpg > /tmp/ffmpeg_pipe, I got 2 output files like expected, but ffmpeg stopped executing right after.
What can I do to be able to pipe more jpgs after the first set without having to restart ffmpeg?
More information about the ffmpeg-user
mailing list