[FFmpeg-trac] #11556(undetermined:new): Encoding video with libx265 to AVI creates a broken file

FFmpeg trac at avcodec.org
Sat Apr 26 20:50:55 EEST 2025


#11556: Encoding video with libx265 to AVI creates a broken file
-------------------------------------+-------------------------------------
             Reporter:  v0lt         |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:
 When encoding video with libx265 encoder and saving to AVI, the file has
 an incorrect header. The biCompression field is zero, which corresponds to
 BI_RGB (uncompressed RGB). This AVI file does not play and may cause some
 players to crash.

 How to reproduce:
 {{{
 % ffmpeg -f lavfi -i testsrc -t 30 -pix_fmt yuv420p -c:v libx265
 output.avi
 }}}
 ffmpeg version 2025-04-23-git-25b0a8e295-full_build-www.gyan.dev Copyright
 (c) 2000-2025 the FFmpeg developers

 Yes I understand that saving HEVC video to AVI file is a bad idea. But
 FFmpeg does not write any warnings or errors for this case.

 The error can be fixed by adding the "-vtag HEVC" parameter, but I think
 it should have happened automatically, as it does for the libx264 encoder.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/11556>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list