How can I setup ffmpeg to continuously produce 1 second videos from piped jpgs?
12 Oct
2023
12 Oct
'23
5:43 p.m.
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?
1128
Age (days ago)
1128
Last active (days ago)
0 comments
1 participants
participants (1)
-
Ricardo Zacarias