I have successfully compiled your branch and configured the h264 qsv codec with the settings from the image.
It does not work at all at the moment.
Stream profile parameters:
Error:
2024-11-14 11:11:16.266 libav: AVCodecContext: Invalid pkt_timebase, passing timestamps as-is.
2024-11-14 11:11:16.285 libav: AVHWDeviceContext: libva: Failed to get device id from the driver. Please consider to upgrade the driver to support VA-API 1.15.0
2024-11-14 11:11:16.285 qsv: Decode: Failed to create a context with error code: Unknown error occurred
2024-11-14 11:11:16.307 libav: AVHWDeviceContext: libva: Failed to get device id from the driver. Please consider to upgrade the driver to support VA-API 1.15.0
2024-11-14 11:11:16.307 qsv: Decode: Failed to create a context with error code: Unknown error occurred
2024-11-14 11:11:16.449 qsv: Bitrate = 912 kbps; Buffer size = 10944 kbps; Max bitrate = 1368 kbps
My vainfo:
libva info: VA-API version 1.23.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.23 (libva 2.23.0.pre1)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 22.3.1 ()