[FFmpeg-trac] #1312(undetermined:open): FFmpeg doesn't handle bitrate transition on some mpeg-ts stream

FFmpeg trac at avcodec.org
Fri May 18 02:40:48 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):

 Sorry, I thought it was self-explanatory that ffplay fails to handle the
 transitions occurring at 10, 20 or 30s (whenever there's a bitrate or
 resolution change) depending on the sample file played.

 The samples are mpeg-ts file with a H264 video stream and a AAC mono audio
 stream.
 Every 10s, the H264 stream change, either just the bitrate change, or the
 resolution (and as such bitrate) change.

 it's the whole avcodec_decode_video2 that fails at the transition between
 bitstreams change and/or video resolution transition.
 avcodec_decode_video2 will just return an error as soon as you reach the
 transition (exactly occurring at 10, 20 or 30s in the samples provided

 I only mentioned ffplay failing, as an example on how to easily reproduce
 the problem.

 This is not an enhancement request.. This is a bug !
 The H264 decoder will crap out when the H264 stream changes, and you can't
 recover from that error.

 {{{
 [h264 @ 0x7fba43843600] Width/height/bit depth/chroma idc changing with
 threads is not implemented. Update your FFmpeg version to the newest one
 from Git. If the problem still occurs, it means that your file has a
 feature which has not been implemented.
 [h264 @ 0x7fba43843600] decode_slice_header error
 [h264 @ 0x7fba43843600] Width/height/bit depth/chroma idc changing with
 threads is not implemented. Update your FFmpeg version to the newest one
 from Git. If the problem still occurs, it means that your file has a
 feature which has not been implemented.
 [h264 @ 0x7fba43843600] decode_slice_header error
 [h264 @ 0x7fba43843600] Width/height/bit depth/chroma idc changing with
 threads is not implemented. Update your FFmpeg version to the newest one
 from Git. If the problem still occurs, it means that your file has a
 feature which has not been implemented.
 }}}

 It's also not possible to detect the new resolution/bitrate change before
 avcodec_decode_video2 fails. so one can't take proactive measure to
 perform some kind of reset.

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1312#comment:3>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list