[FFmpeg-trac] #7799(avcodec:new): hevc_mp4toannexb filter inserts extradata wrong position

FFmpeg trac at avcodec.org
Mon Mar 18 09:05:24 EET 2019

#7799: hevc_mp4toannexb filter inserts extradata wrong position
             Reporter:  gudbooy  |                     Type:  defect
               Status:  new      |                 Priority:  normal
            Component:  avcodec  |                  Version:  unspecified
             Keywords:           |               Blocked By:
             Blocking:           |  Reproduced by developer:  0
Analyzed by developer:  0        |
 Summary of the bug:

 After applied hevc_mp4toannexb filter to the attached video (refer to the
 below link),
 the frames become broken from the video players (e.g. VLC, ffplay)

 The problem is caused by prepending the extra-data to IRAP frames in

 This video contains own vps/sps/pps for every IRAP frames.
 The extradata from hevcc is slightly different from every IRAP frames have
 (in this case QP value is different) and the hevc_mp4toannexb filter
 prepends the different extradata to every IRAP frames, causing the broken

 Video File Repo :

 I am afraid that I can't connect to ftp://upload.ffmpeg.org, so I just
 attached to the dropbox url
 How to reproduce:
 % ffmpeg -i hevc_after_mp4toannexb_conversion_qp_value_modified.mp4 -codec
 copy -bsf:v hevc_mp4toannexb output.hevc
 $vlc output.hevc
 Patches should be submitted to the ffmpeg-devel mailing list and not this
 bug tracker.

Ticket URL: <https://trac.ffmpeg.org/ticket/7799>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list