Description
Which component impacted?
Decode
Is it regression? Good in old configuration?
None
What happened?
Hi, I am encouraging "device failed" and subsequent "GPU Hang" when decoding 10-bit 4K UHD 4:4:4 (YCbCr) video with cartwheel-ffmpeg. I've also described the issue here.
HW I am using - Intel NUC12WSKi7 with i7-1260P (so Alder Lake-P GPU), Ubuntu 22.04 and Intel Media Driver 2.6.6. Steps to reproduce:
$ ffmpeg -f lavfi -i testsrc=size=3840x2160 -t 1 -pix_fmt yuv444p10le -c:v libx265 testsrc.mp4
$ ffmpeg -c:v hevc_qsv -i testsrc.mp4 -f null -
Produce couple of GPU Hang
errors. No output is produced if I replace -f null -
with output file name (4 empty/green YCbCr frames; input has 25). Adding -hwaccel qsv
+-vf hwdownload
doesn't make any difference.
Anyways, the decoding pipeline works correctly with different properties, changing either:
- resolution - even 3832x2160 [sic!] works correctly. Which is very interesting, because I assume that 3833 (not working) rounds up to 3840 because of macroblock alignment. So it looks like there is some threshold
- subsampling - both yuv422p and yuv422p10le are ok, yuv444 not, so bit depth perhaps doesn't play a role
It doesn't seem to be a wrong peace of HW - IIRC one of our users reported this also with a different NUC (but most likely the same type). Also, the error message 'GPU Hang' doesn't mean that the graphics hung except the decode, it is normally operable after that.
What's the usage scenario when you are seeing the problem?
Others
What impacted?
We use QuickSync as a HW acceleration API for UltraGrid.
Debug Information
- libva is 2.16 (it is from this repo), Intel Media Driver is 22.6.6 from GH
- ls--dev-dri.log
- vainfo.log
- libva_trace.log.144857.thd-0x00003e1a.log, libva_trace.log.144857.thd-0x00003e15.log
- dmesg.log
Do you want to contribute a patch to fix the issue?
None