You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I compiled ffmpeg and enabled qsv. I tested ffmpeg through the CLI and confirmed that it can encode and decode videos using the h264_qsv codec, and av.codecs_available also can see h264_qsv. However, when using pyav, it encounters an error. I would like to ask if pyav currently does not support qsv hardware codec and how can i use it. av.error.UnknownError: [Errno 1313558101] Unknown error occurred: 'avcodec_open2(h264_qsv)'; last error log: [h264_qsv] Error creating a MFX session: -9.
but I have conducted such a test ffmpeg -hwaccel qsv -c:v h264_qsv -i input.mp4 -c:v h264_qsv -f mp4 out.mp4and can successfully write to an mp4 file.iHD can also be viewed through vainfo.
My pyav version is 15.0.0, and the ffmpeg version I compiled is 7.1.1. I also installed onevpl and libvpl according to the version correspondence,I also checked the architecture correspondence of Intel's media_deriver and selected the supported version. and the results of av.library_versionsand ffmpeg -version can also correspond to each other.
Trying display: wayland
error: XDG_RUNTIME_DIR not set in the environment.
Trying display: drm
libva info: VA-API version 1.22.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.22 (libva 2.22.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 25.2.6 ()
vainfo: Supported profile and entrypoints
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I compiled ffmpeg and enabled qsv. I tested ffmpeg through the CLI and confirmed that it can encode and decode videos using the
h264_qsv
codec, and av.codecs_available also can seeh264_qsv.
However, when using pyav, it encounters an error. I would like to ask if pyav currently does not support qsv hardware codec and how can i use it.av.error.UnknownError: [Errno 1313558101] Unknown error occurred: 'avcodec_open2(h264_qsv)'; last error log: [h264_qsv] Error creating a MFX session: -9.
but I have conducted such a test
ffmpeg -hwaccel qsv -c:v h264_qsv -i input.mp4 -c:v h264_qsv -f mp4 out.mp4
and can successfully write to an mp4 file.iHD can also be viewed throughvainfo
.My pyav version is 15.0.0, and the ffmpeg version I compiled is 7.1.1. I also installed onevpl and libvpl according to the version correspondence,I also checked the architecture correspondence of Intel's
media_deriver
and selected the supported version. and the results ofav.library_versions
andffmpeg -version
can also correspond to each other.Beta Was this translation helpful? Give feedback.
All reactions