3

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
Alfabravo
  • 7,493
  • 6
  • 46
  • 82
user2165039
  • 73
  • 1
  • 8
  • What command line are you currently using to encode the TIFF images? – Multimedia Mike Mar 13 '13 at 17:02
  • 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 – user2165039 Mar 13 '13 at 22:04

1 Answers1

0

Try restricting ffmpeg to reading at source framerate i.e.

ffmpeg -re -f image2 -framerate 10 -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
Gyan
  • 85,394
  • 9
  • 169
  • 201