[FFmpeg-user] how to limit the size or time duration when using ffmpeg output to a file?

Huang Soho soho123.2012 at gmail.com
Mon Oct 14 07:29:30 CEST 2013


Hi All,

Can I use ffmpeg to capture video data from USB webcam and save to local SD
card by every 100MB?

for example:
ffmpeg -sn -f video4linux2 -r 30 -s 1280x720 -input_format h264 -i
/dev/video1 -f alsa -ar 48000 -ac 2 -i hw:0 -vcodec copy -acodec copy -map
0:0 -map 1:0 http://localhost:8090/feed2.ffm

I can ouput video + audio to feed file. And I can save to loacal,
But how I can save video+audio to SD card by every 100MB or every 5 minutes?


More information about the ffmpeg-user mailing list