I am converting TIFF images to HTTP Live Stream. The images are being continuously streamed by a camera and saved to hard drive. FFMPEG is then converting the files to MPEG transport stream (.ts) and segmenting them. However, as soon as FFMPEG runs out of currently saved images to disk, it ends the conversion. Is there a way how I could keep FFMPEG running and waiting for new images to be saved to disk and converting them?
This is what I am using:
ffmpeg -f image2 -r 10/1 -i MMseries_%3d.jpg -c:v libx264 -r 30 -b:v 256000 -flags
-global_header -map 0 -f segment -segment_time 4 -segment_list_size 0
-segment_list demo_list.m3u8 -segment_format mpegts video_seg_%05d.ts