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

[Request] enable VAAPI decoders (like in BtbN Windows builds) #118

Closed
oscarbg opened this issue Mar 26, 2024 · 6 comments
Closed

[Request] enable VAAPI decoders (like in BtbN Windows builds) #118

oscarbg opened this issue Mar 26, 2024 · 6 comments

Comments

@oscarbg
Copy link

oscarbg commented Mar 26, 2024

Hi,
VAAPI supports Windows for a year at least..
FFMPEG main branch supports VAAPI Windows also for a while.. plase can add that to full build in addition to existing D3D11VA decoders?

also testing with -hwaccel d3d13va (doesn't exist) reveals vaapi missing from list:

[vist#0:0/h264 @ 0000022b09d3ccc0] Unrecognized hwaccel: d3d13va.
[vist#0:0/h264 @ 0000022b09d3ccc0] Supported hwaccels: cuda dxva2 qsv d3d11va opencl vulkan

seems BtbN include it:

[vist#0:0/h264 @ 000001a2282bedc0] Unrecognized hwaccel: d3d13va.
[vist#0:0/h264 @ 000001a2282bedc0] Supported hwaccels: cuda vaapi dxva2 qsv d3d11va opencl vulkan

thanks..

@oscarbg oscarbg changed the title Request: enable VAAPI decoder like BtbN Windows builds Request: enable VAAPI decoder (like in BtbN Windows builds) Mar 26, 2024
@oscarbg oscarbg changed the title Request: enable VAAPI decoder (like in BtbN Windows builds) [Request] enable VAAPI decoder (like in BtbN Windows builds) Mar 26, 2024
@oscarbg oscarbg changed the title [Request] enable VAAPI decoder (like in BtbN Windows builds) [Request] enable VAAPI decoders (like in BtbN Windows builds) Mar 26, 2024
@GyanD
Copy link
Owner

GyanD commented Mar 26, 2024

I took a look at the BtbN commit which added vaapi on windows and it says doesn't actually work - it crashes.

@oscarbg
Copy link
Author

oscarbg commented Mar 26, 2024

no, is really working for me! but you have to have a working libva-win32 installation:
extract libva-win32 libva and vaon12_drv_video.dll dlls from:
https://www.nuget.org/packages/Microsoft.Direct3D.VideoAccelerationCompatibilityPack/1.0.2
and check with vainfo tool output like this:

Trying display: win32
libva info: VA-API version 1.21.0
libva info: Trying to open ./\vaon12_drv_video.dll
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.21 (libva 2.21.0)
vainfo: Driver version: Mesa Gallium driver 24.1.0-devel for D3D12 (NVIDIA GeForce RTX 3070)
vainfo: Supported profile and entrypoints

@Andarwinux
Copy link

btbn build libva is already statically linked, vaon12_drv_video.dl is the only thing needed.

@GyanD
Copy link
Owner

GyanD commented Mar 27, 2024

The vaapi-linked build gets generated but with vainfo I get

edit:: Never mind. Forgot to set env vars.

@GyanD
Copy link
Owner

GyanD commented Mar 28, 2024

added to 2024-03-28 builds.

@GyanD GyanD closed this as completed Mar 28, 2024
@oscarbg
Copy link
Author

oscarbg commented Mar 29, 2024 via email

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

3 participants