E
E
Eugene2016-12-30 00:07:20
fmpeg
Eugene, 2016-12-30 00:07:20

How to split streaming video through FFMpeg?

The essence of the question is this, there is an http link to the stream via mjpg-streamer, you need to download the stream and split it in 30 seconds, I try like this
ffmpeg -i ' 192.168.0.47:8080/?action=stream ' -f segment -segment_time 1 - map 0 -vcodec copy -acodec copy out%03d.avi
Splits in 1 second, but! at the beginning there is an empty gap, i.e. if the video lasts 15 seconds, 14 seconds of emptiness will be recorded, and 1 second of the frame - then 15 emptiness and 1 second of the frame and so on ... How to get rid of the emptiness?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2016-12-30
@forumrulez

ffmpeg -i ' 192.168.0.47:8080/?action=stream ' -c copy -map 0 -f segment -segment_time 5 -segment_format mp4 "capture-%03d.mp4"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question