I am looking for a way to record a UDP stream video using ffmpeg, but in 10 million pieces. I am currently using the following to get 10 million videos (with h264 transcoding).
"ffmpeg -i udp: //239.0.77.15: 5000-map 0: 0 -map 0: 1 -s 640x360 -vcodec libx264 -g 100 -vb 500000 -r 25-line experimental -vf yadif -acodec aac -ab 96000 -ac 2 -t 600 -y / media / test.m4 "
My problem is that using the ffmpeg command line takes time to re-sync with the udp stream, losing 2 seconds of video each time. This is normal?
Any idea if there is a way to do this on the command line or should I use the ffmpeg API?
Thanks in advance
source
share