#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
_______________________________________________
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://avcodec.org/mailman/listinfo/ffmpeg-trac

Reply via email to