-
Notifications
You must be signed in to change notification settings - Fork 347
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
Corrupted HEVC encoded files on Tiger Lake #1190
Comments
Just in case lspci -x:
|
@fulinjie built latest ffmpeg master, got same corruption with hevc_vaapi encode on intel TGL |
Thank you @rmkimathi, working on this issue, will update it once we have some progress. |
Is there any progress on this? i haven't been able to encode hevc for half a year |
Hi, The setup I have is: I am not able to encode with ffmpeg using va-api @lobomfz |
Hi @Xiaogangli-intel @XinfengZhang this may be caused by leak of VAConfigAttribEncHEVCFeatures&VAConfigAttribEncHEVCBlockSizes attrib report on TGL+ in media-driver. Previously Mark submitted a patch #866 which based on legacy interface. It need port to lastest libva interface. And I am not sure if Mark's patch is correct, in my understanding, TGL+ attrib should be sperated with common platform. So could you help to submit a new one ASAP? Since it blocks hevc encode on TGL+ by using upstream ffmpeg-vaapi. Only after the attrib report patch merged in media-driver, we can verify and submit ffmpeg-vaapi patch. @angryziber @lobomfz @georgnistor @rmkimathi, here is a workarround patch for ffmpeg-vaapi, which may fix your issue temporarily: |
Thank you @feiwan1 Workaround patch for ffmpeg fixes hevc_vaapi encode on TGL Xe Graphics. |
@feiwan1 My understanding is that the added interfaces should be applied to TGL+ only, the legacy code works on ICL. |
Thanks @xhaihao for reminder. Current code works on ICL indeed. Just need to update TGL+'s code only. And corrected my previous comment. |
Fill in VAConfigAttribValEncHEVCFeatures and VAConfigAttribValEncHEVCBlockSizes with the approriate values for HEVC VDENC. Fixes intel#1190.
Fill in VAConfigAttribValEncHEVCFeatures and VAConfigAttribValEncHEVCBlockSizes with the approriate values for HEVC VDENC. Fixes intel#1190.
Fill in VAConfigAttribValEncHEVCFeatures and VAConfigAttribValEncHEVCBlockSizes with the approriate values for HEVC VDENC. Fixes intel#1190.
Fill in VAConfigAttribValEncHEVCFeatures and VAConfigAttribValEncHEVCBlockSizes with the approriate values for HEVC. Fixes intel#1190.
Fill in VAConfigAttribValEncHEVCFeatures and VAConfigAttribValEncHEVCBlockSizes with the approriate values for HEVC. Fixes intel#1190.
Fill in VAConfigAttribValEncHEVCFeatures and VAConfigAttribValEncHEVCBlockSizes with the approriate values for HEVC. Fixes #1190.
I know this issue was closed, but I am still seeing this exact same behavior (ubuntu 22.04.1, ffmpeg 4.4.2). intel core i5-1240P (12th gen) I see the pull happened in intel media driver 22.5.4? So do I understand correctly that I will need a newer version than that to have this issue fixed? |
@flyingfalling The ffmpeg fix exists in n5.1+ versions. Also make sure the ffmpeg is build against libva 2.12+. |
Ubuntu 21.04
intel-media-va-driver-non-free 21.1.1+ds1-1
ffmpeg 7:4.3.2-0+deb11u1ubuntu1
CPU: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
Laptop: Asus Zenbook UX393E
When encoding a video to HEVC with ffmpeg & vaapi, no errors are given, but the output is corrupted (screenshot below).
VP9 and H264 files are encoded fine.
output:
The text was updated successfully, but these errors were encountered: