[Libav-user] Decoder and Bitstream Switching
ahmed.hmz at gmail.com
Sun Jun 16 19:25:01 CEST 2013
I'm using libavcodec in a project that I'm working to decode a received
video stream. One of the requirements of this project is the ability to
perform fast switching to a different stream. The new stream may be encoded
at a different bitrate for example or a completely different video. I was
wondering how to safely and quickly perform this stream switching and what
I need to do to re-initialize or configure the decoder so that it would be
able to start decoding the new stream?
I believe a call to avcodec_flush_buffers() may be necessary, similar to
what is done when seeking to a different timestamp. However, In the case of
having the same video at different bitrates, I'm not sure how this would
affect the smoothness of the transition between the two streams.
Thanks in advance..
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user