[FFmpeg-user] Starting capturing a stream on keyframes only

Christopher Huang-Leaver zeonglow at gmail.com
Fri Apr 17 03:31:06 CEST 2015


I am trying to capture a UDP multicast stream and record to disc without
changing it.  My question is,

Can I configure ffmpeg to discard all data up until the first I-frame it
The idea is that the output always starts with an I-frame, but other than
that the stream is recorded unaltered

Will this command do that anyway?

ffmpeg -t 10 -y -i udp://@ -c:v copy -c:a copy

(-t 10 is just for testing)

Thanks for your help


More information about the ffmpeg-user mailing list