Segment_time is not cosistent

Any other question that don't fit into the other support categorizes.
Post Reply
Acc72
Posts: 2
Joined: Thu Jun 27, 2013 5:51 pm

Segment_time is not cosistent

Post by Acc72 »

Hello,

I'm trying to segment a live stream from my USB webcam. Everything seems to working except for the -segment_time parameter. I'm telling ffmpeg to output 3 second mp4 files, as shown below. However, the files are generated 16 sec in duration. Sometimes a file will be generated at a shorter duration ( 1 sec, 3 sec, 8 sec).

I've scoured the web for a solution, but nothing has presented itself. Please, does anyone know why this is happening?

Thanks!

Build: ffmpeg-20130619-git-9ead060-win32-static

Code: Select all

ffmpeg -f dshow -rtbufsize 10M -pix_fmt yuv420p -s 640x480 -ac 1 -i video="Logitech HD Webcam C310":audio="Microphone (HD Webcam C310)" -r 15 -vcodec libx264 -preset fast -crf 22 -b:v 250k -acodec libvo_aacenc -ar 8k -b:a 96k -ac 1 -f segment -map 0 -reset_timestamps 1 -segment_time 3 -segment_wrap 4 "out%2d.mp4"

Post Reply