Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hevcencode test code produces corrupted output on Tiger Lake #366

Open
GreystWdR opened this issue Apr 30, 2024 · 3 comments
Open

hevcencode test code produces corrupted output on Tiger Lake #366

GreystWdR opened this issue Apr 30, 2024 · 3 comments

Comments

@GreystWdR
Copy link

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
Copy link
Contributor

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
Copy link
Author

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.

@GreystWdR
Copy link
Author

Hi,
I got my hands back on a hardware platform similar to the previous one, I still have problem running the hevcencode sample provided in libva-utils.
After build of libvautils ./hevcencode produces bad bitstream unreadable with ffplay. I have tried the lowpower option without success either.

ffplay returns:

ffplay /tmp/test.265
ffplay version 6.1.1-3ubuntu5 Copyright (c) 2003-2023 the FFmpeg developers
...
[hevc @ 0x7bcf58001b80] Unknown HEVC profile: 0KB sq=    0B f=0/0
    Last message repeated 1 times
[hevc @ 0x7bcf58001b80] Invalid delta in scaling list data: -1.
[hevc @ 0x7bcf58001b80] SPS 0 does not exist.
[hevc @ 0x7bcf58001b80] PPS id out of range: 0
[hevc @ 0x7bcf58001b80] Unknown HEVC profile: 0

platform: CPU i7-1370PE
env : fresh ubuntu 24.04.1 LTS, software stack is upgraded to last release (but were failing with distribution packages version too):
gmmlib 22.5.2
libva 2.22.0
driver intel media 24.3.4 build in debug mode for dump as suggested.

Driver dump is attached here:
igd_Pid12036_Tid1980880704.zip

nb. the sample produces expected result on a laptop with skylake i7-6700HQ CPU (produced hevc bitstream is readable with ffplay).

thanks for your help,
Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants