Good morning, I have a script that generates 2 images every second in a folder and I want ffmpeg to convert them into a series of mpeg-4 videos of 5 secs duration and that shows 2 images per second (10 frames total). Problem is that after I start the script and after I run ffmpeg, it processes the videos with the images it catches right after I run the command only and then it closes. I tried with the -re command also and nothing happens. How do I keep ffmpeg running and live converting the images while they're being generated? Here's the code I'm using :
ffmpeg -re -framerate 2 -s 1920x1200 -i C:\Desktop\input\%05d.bmp -vcodec libx264 -pix_fmt yuv420p -map 0 -segment_time 5 -g 5 -sc_threshold 0 -force_key_frames "expr:gte(t,n_forced*5)" -f segment C:\Desktop\output\%05d.mp4
All I want is to execute ffmpeg one time and let it work and close only when they're finished generating.