[FFmpeg-trac] #10249(ffmpeg:new): Using libx265 no-repeat-headers option produces corrupt hevc file

FFmpeg trac at avcodec.org
Sat Mar 11 03:14:09 EET 2023


#10249: Using libx265 no-repeat-headers option produces corrupt hevc file
-------------------------------------+-------------------------------------
             Reporter:  AY Columbia  |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  ffmpeg       |                  Version:  6.0
             Keywords:  libx265      |               Blocked By:
  x265 mkv hevc                      |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 **Summary of the bug:** passing no-repeat-headers to libx265 x265-params
 produces invalid hevc output.

 **How to reproduce:**
 My source is a h264 1080p mkv file.  I use the command below as it is
 which produces an hevc that cannot be muxed or read by mediainfo nor mpc-
 be.  Removing the no-repeat-headers parameter produces a good output file.
 {{{
 % "C:\ProgramData\chocolatey\lib\ffmpeg-full\tools\ffmpeg\bin\ffmpeg.exe"
 -loglevel info -an -y -hide_banner -i "clip.mkv" -crf 30.0 -preset
 veryfast -pix_fmt yuv420p10le -profile:v main10 -x265-params "no-repeat-
 headers=1:bframes=4:rc-lookahead=15:b-pyramid=1:subme=1:max-merge=2:min-
 keyint=24:keyint=240:ref=2:limit-refs=3:strong-intra-smoothing=0:rect=0
 :aq-mode=1:rd=4:psy-rd=0.75:psy-rdoq=4.0:rdoq-
 level=1:rskip=2:colorprim=bt709:transfer=bt709:colormatrix=bt709:chromaloc=0
 :no-sbrc=1:max-luma=1023" "clip.hevc"

 ffmpeg version 6.0-full_build-www.gyan.dev Copyright (c) 2000-2023 the
 FFmpeg developers
 built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
 }}}

 Please let me know if you need anything else.  Thanks much.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10249>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list