Opened 3 days ago
Last modified 3 days ago
#11296 new defect
Vulkan Video Encode h264 doesn't handle gop size > 1
Reported by: | Russell | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avcodec |
Version: | git-master | Keywords: | h264_vulkan vulkan intel nvidia |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
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.
Attachments (2)
Change History (3)
by , 3 days ago
Attachment: | ffmpeg-intel-20241109-224708.log added |
---|
by , 3 days ago
Attachment: | ffmpeg-nvidia-20241109-224726.log added |
---|
Report output from running against nvidia driver
comment:1 by , 3 days ago
Component: | undetermined → avcodec |
---|---|
Version: | unspecified → git-master |
Note:
See TracTickets
for help on using tickets.
Report output from running against intel driver