intel / media-driver

Intel Graphics Media Driver to support hardware decode, encode and video processing.
https://github.com/intel/media-driver/wiki
Other
996 stars 347 forks source link

[Bug]: [TGL-U][ffmpeg-vaapi] When HCP scalability is enabled, 8K HEVC decode fps is lower than HCP scalability is disabled #1504

Closed UngTengEn closed 1 year ago

UngTengEn commented 2 years ago

Which component impacted?

Decode

Is it regression? Good in old configuration?

No response

What happened?

  1. TGL-U i5-1145G7E; ubuntu 22.05 and kernel 5.15.0-48-generic.
  2. Install or build libva 2.15.0 and media-driver 22.4.4 with HCP Scalability support.
  3. Install ffmpeg 4.4.2
  4. Download this video https://images-assets.nasa.gov/video/First-8K-Video-from-Space/First-8K-Video-from-Space~orig.mp4
  5. Decode with ffmpeg-vaapi : "ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi_vld -i <nasa 8k video> -f null -".
  6. With HCP scalability enabled, its fps is lower than with HCP scalability disabled. Res1 Res2

What's the usage scenario when you are seeing the problem?

Video Analytics

What impacted?

No response

Debug Information

  1. libva 2.15.0 and media driver 22.4.4
  2. root@p12dltglu208-Tiger-Lake-Client-Platform:~/Videos# ls /dev/dri by-path card0 renderD128

libva_trace_hcp_scalability_disabled.zip vainfo.log libva_trace_hcp_scalability_enabled.zip

Do you want to contribute a patch to fix the issue?

No response

UngTengEn commented 2 years ago

Can enable or disable HCP Scalability with /etc/igfx_user_feature.txt.

Disable HCP scability with igfx_user_feature.txt :- cat /etc/igfx_user_feature.txt [KEY] 0x00000001 UFKEY_INTERNAL\LibVa [VALUE] Disable MMC 4 1 [VALUE] Enable HCP Scalability Decode 4 0

Ensable HCP scability with igfx_user_feature.txt :- cat /etc/igfx_user_feature.txt [KEY] 0x00000001 UFKEY_INTERNAL\LibVa [VALUE] Disable MMC 4 1 [VALUE] Enable HCP Scalability Decode 4 1

stellawuintel commented 2 years ago

Auto Created VSMGWL-57652 for further analysis.

Jexu commented 2 years ago

There is known limitation for scalability when decoding high bitrate content, in this case, we recommend to disable scalability manually.

UngTengEn commented 2 years ago

Hi,

Do we know when this will happen, like on what bitrates or video configuration? And is there any errata for it? Cause HCP scalability is plan to improve the performance. So, what kind of recommendations should we suggest to the customer; like how the customer should determine the video configurations that should disable or enable the HCP scalability before playing them?

Thanks

Jexu commented 2 years ago

Currently, we know that bitrate greater than 60Mbps of 4k resolution has impact for virtual tile scalability.

Jexu commented 1 year ago

I will close this issue since it is expected result under your bistream and please re-open again if having any other questions.