[FFmpeg-user] How to discard probe frames ?

Alexandre Ferrieux alexandre.ferrieux at orange-ftgroup.com
Wed Mar 30 16:42:25 CEST 2011


Hello,

At the beginning of a stream, av_read_frame_internal is called repeatedly to probe codec parameters. Once this probing 
is completed, the frames are spit back from memory into the processing chain. Now in case of real-time transcoding this 
is problematic because it introduces a fixed, possibly large latency.

Is there a (command-line) way to simply *discard* these stored frames, hence keeping up with real time ?

Thanks in advance,

-Alex

PS: I am aware of -probesize to forcibly shorten this loop, but it is not always desirable, as the needed probe size may 
depend on stream contents and position within GOP (or wrt SPS/PPS retransmission in the H264 case).


More information about the ffmpeg-user mailing list