intel / media-driver

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

[Feature]: AV1 decode support in media-driver without any kernels built #1832

Open frantisekz opened 2 months ago

frantisekz commented 2 months ago

What Feature?

AV1 decode is currently exposed in vainfo on supported HW, but the decoding itself fails if the media-driver is built without any kernels (neither free nor non-free), supposedly because the required filmgrain kernel for AV1 decode.

Would it be possible to implement some fallback path so the driver makes the decoding at least partially on GPU on supported hardware even without any kernels built in?

I can add ffmpeg verbose log once I get to the HW that supports AV1.

Thanks!

What's the usage scenario would be benifited?

Playback, Web browser

What impacted?

No response

Do you want to contribute a patch to develop this feature?

None

Sherry-Lin commented 2 months ago

Thanks for your feedback. Media-driver default build supports full features. Could you provide more background why not choose default build?

frantisekz commented 2 months ago

Hey @Sherry-Lin , thanks for the reply!

This is due to media-driver package in Fedora, where I, as a package maintainer, can't use prebuilt binaries due to patents and distribution policy, and rebuilding the kernels is broken as discussed in #1775 and #1356 .

intel-mediadev commented 2 months ago

Auto Created VSMGWL-74924 for further analysis.

Jexu commented 1 month ago

AV1 filmgrain kernel only exists on several platforms and it already moves to fix function from mtl without kernel anymore. I think it maybe hard to get priorized so far unless having any customer special usage.

frantisekz commented 1 month ago

Okay, thanks @Jexu , that's good to know, I am not able to test this as the latest HW I have available fails to decode the AV1 without kernels (Xe iGPU, 13th gen CPU).