intel / libva-utils

Libva-utils is a collection of tests for VA-API (VIdeo Acceleration API)
https://01.org/linuxmedia
Other
195 stars 162 forks source link

hevcencode test code produces corrupted output on Tiger Lake #366

Open GreystWdR opened 5 months ago

GreystWdR commented 5 months ago

Executing hevcencode test sample produces corrupted /tmp/test.265 output on TigerLake CPU. Environment: ubuntu 23.10 + intel-media-va-non-free package.

Fresh build on similar environment on SkyLake CPU produces expected readable bitstream. h264encode produces expected result on both CPU.

Fresh build ffmpeg execution with codec hevc_vaapi produces expected output.

bai-isaac commented 3 months ago

hi GreystWdR, Could you please share your command line? And could you please dump driver follow this wiki https://github.com/intel/media-driver/wiki/Decode-and-Encode-Debug-Tool-and-surface-dump and share here? Thanks.

GreystWdR commented 3 months ago

Hi, Running the sample with default arguments is enough to reproduce the pb so the command was simply ./hevcencode . My guess is the the problem come from the initialization part in hevcencode sample as I was able to make the encoder work flawlessly with a recent ffmpeg build. I have tried to find the differences in the initialization code without success. For now, I don't have access to a TigerLake platform anymore to generate the driver dump. I'll keep you updated if manage to get my hands on it again. Cheers.