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

Package request: Intel Media SDK #54260

Open
Kerberoge opened this issue Feb 8, 2025 · 7 comments
Open

Package request: Intel Media SDK #54260

Kerberoge opened this issue Feb 8, 2025 · 7 comments
Labels
request Package request

Comments

@Kerberoge
Copy link

Package name

intel-media-sdk

Package homepage

https://github.com/Intel-Media-SDK/MediaSDK

Description

This package provides a C API to access hardware-accelerated encode and decode features found on Intel integrated GPUs, commonly known as Intel Quick Sync Video.

Does the requested package meet the package requirements?

Compiled

Is the requested package released?

Yes

@Kerberoge Kerberoge added the request Package request label Feb 8, 2025
@Kerberoge
Copy link
Author

Template file:

# Template file for 'intel-media-sdk'
pkgname=intel-media-sdk
version=23.2.2
revision=1
archs="x86_64*"
build_style=cmake
configure_args="-DBUILD_DISPATCHER=OFF -DBUILD_SAMPLES=OFF"
hostmakedepends="pkg-config"
makedepends="libva-devel libdrm-devel"
short_desc="Legacy API for hardware video acceleration on Intel GPUs (Broadwell to Rocket Lake)"
maintainer="kerberoge <[email protected]>"
license="MIT"
homepage="https://github.com/Intel-Media-SDK/MediaSDK"
changelog="https://github.com/Intel-Media-SDK/MediaSDK/releases"
distfiles="https://github.com/Intel-Media-SDK/MediaSDK/archive/intel-mediasdk-${version}.tar.gz"
checksum=12f23a78104edc1c9bfa755effd2723866d107ad752f72d3839fcc8db0503cec

post_install() {
	vlicense LICENSE
}

@zlice
Copy link
Contributor

zlice commented Feb 14, 2025

intel-media-sdk is replaced by onevpl/libvpl from intel

old media-sdk pr https://github.com/void-linux/void-packages/pull/47330/files #41132

<x>vpl related prs - libvpl name/version change #51496 - opencl 'neo' #43084

is this for older hardware? you can only build ffmpeg with 1 or the other i think. which limits its usefulness as far as packaging probably goes

@Kerberoge
Copy link
Author

Libvpl is not a replacement for the Intel Media SDK, nor is it for the Intel GPU Runtime, which is the modern replacement of the Intel Media SDK. Libvpl/oneVPL is merely a dispatcher library that forwards commands to either the Intel Media SDK or the Intel GPU Runtime (aka oneVPL-intel-gpu); these two libraries interact with the actual hardware. At this time, neither of those two libraries exists in the Void repositories, meaning that libvpl has no library to forward commands to. Please see #54208.

For a detailed explanation of the relations between these libraries, please consult the official GitHub repository of libvpl. The following graph summarizes it pretty well:
Image

Regarding ffmpeg: ffmpeg itself needs not to be changed to enable Intel Quick Sync Video support, because it only interacts with libvpl and Void's template file already enables it. Libvpl takes care to forward the commands to one of the two implementations mentioned above. Other distributions (Alpine, Arch) have both implementations in their repositories and their ffmpeg works with both.

@zlice
Copy link
Contributor

zlice commented Feb 14, 2025

ya the gpu-rt has been open for a bit too #51133

media-sdk page is archived. i don't think it will be accepted

@Kerberoge
Copy link
Author

Intel Media SDK is the only option for Intel integrated GPUs prior to Tiger Lake (up until gen 11 graphics), see ffmpeg's page. Many Linux users don't use the latest hardware available, and it is not uncommon for them to use something older than Tiger lake (11th gen CPU). Hence why other distributions also include it.

@zlice
Copy link
Contributor

zlice commented Feb 14, 2025

i'm waiting on RMAs (1 delayed bc theyre out of stock -_-) but i think i'm the only one with PRs on intel codec stuff... the first media-sdk took a year or so, then openvpl was stepped on bc i lost access to gh for like a week. then after ffmpeg6 everything has kind of been in the same state.

i can try to do media-sdk + the other stuff but it will probably be a week or 2

@KynikossDragonn
Copy link

Just chiming in that I'm on Intel Skylake and OBS's QSV will try to find this; fail to find it and then refuse to try to use QSV directly so I have to go with the FFmpeg VAAPI option. Even though I have oneVPL installed. oneVPL does not support Skylake.

This isn't the only thing Intel has deprecated/archived, the old OpenCL ICD for Intel "Beignet" https://github.com/intel/beignet is also the only OpenCL ICD for Intel Graphics from Ivy Bridge up to Skylake and Kaby Lake.

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

No branches or pull requests

3 participants