[FFmpeg-trac] #11296(undetermined:new): Vulkan Video Encode h264 doesn't handle gop size > 1

FFmpeg trac at avcodec.org
Sun Nov 10 07:49:13 EET 2024


#11296: Vulkan Video Encode h264 doesn't handle gop size > 1
-------------------------------------+-------------------------------------
             Reporter:  Russell      |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:  h264_vulkan  |               Blocked By:
  vulkan intel nvidia                |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug: ffmpeg creates very corrupted video when encoding with
 vulkan on both ANV (Intel) & Nvidia & AMD.
 How to reproduce:

 {{{
 % ffmpeg  -init_hw_device vulkan=vkdev:0 -filter_hw_device vkdev -f lavfi
 -i testsrc -t 10 -filter:v "format=nv12,hwupload" -an -c:v h264_vulkan
 out.mp4
 ffmpeg version N-117737-g10c02deccb Copyright (c) 2000-2024 the FFmpeg
 developers
   built with gcc 14.2.1 (GCC) 20240910
 }}}


 If I add {{{-g 1}}} the output video is not corrupted. Tested with Mesa
 git 0a81434adf44eaeeb246a57e2f00a00a01e0e67a & nvidia drivers 565.57.01.
 For ANV, note that you need to set {{{ANV_VIDEO_ENCODE=1}}} in the
 environment.

 I don't personally have an AMD device to test on, but I had someone test
 for me and it was also very corrupted.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/11296>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list