[FFmpeg-trac] #1312(undetermined:open): FFmpeg doesn't handle bitrate transition on some mpeg-ts stream
FFmpeg
trac at avcodec.org
Fri May 18 08:21:23 CEST 2012
#1312: FFmpeg doesn't handle bitrate transition on some mpeg-ts stream
-------------------------------------+-------------------------------------
Reporter: jyavenard | Owner:
Type: enhancement | Status: open
Priority: normal | Component:
Version: unspecified | undetermined
Keywords: segments | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Comment (by jyavenard):
The problem isn't in ffplay, but with ffmpeg libs (precisely libavcodec
H264 decoder)
Again, I only mentioned ffplay because I could easily reproduce the
problem there too, same symptoms
It would have only taken 30s of your time to reproduce the problem.
The work around for the time being is to detect manually the change of
resolution, close the decoder, and re-open it.
e.g.:
{{{
// definition: AVStream *stream;
if (stream->codec->codec)
avcodec_close(stream->codec);
AVCodec *codec = avcodec_find_decoder(stream-codec->codec_id);
avcodec_open2(stream->codec, codec, NULL);
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1312#comment:5>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list