[FFmpeg-user] How to discard probe frames ?

Alexandre FERRIEUX - RD/SIRP/LAN alexandre.ferrieux at orange-ftgroup.com
Thu Mar 31 18:24:45 CEST 2011


On 30/03/2011 16:42, Alexandre Ferrieux wrote:
> 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).


Any takers ?

-Alex


More information about the ffmpeg-user mailing list