Hello,

I am looking for guidance on whether it is possible to use Intel QSV with 
FFmpeg on Rocky Linux 9, and whether I may be missing any required components.

Environment:

  *
OS: Rocky Linux 9
  *
Intel GPU with QSV support
  *
FFmpeg reports QSV as available (ffmpeg -hwaccels shows qsv)

I have installed all required packages that I am aware of, and QSV appears to 
be detected correctly.

For example, the following command works correctly when run directly from the 
command line:
ffmpeg -hwaccel vaapi  -hwaccel_device /dev/dri/renderD128 -f rawvideo -pix_fmt 
nv12  -s:v 1920x1080  -r 30  -i output_nv12_1080p30.raw  -vf 'hwupload'  -c:v 
hevc_vaapi  -profile:v main  -rc_mode CQP  -qp 24  output_hevc.mp4

However, when using FFmpeg from my application code, I encounter the following 
error during device initialization:
[AVHWDeviceContext @ 0x656a640] Error setting child device handle: -17

I have the following version of packages installed:

  *
ffmpeg version 6.0
  *
libva-2.22.0-1.el9.x86_64
  *
intel-mediasdk-21.3.5-1.el9.x86_64
  *
intel-media-driver-25.2.6-1.el9.x86_64
  *
libva-utils-2.11.1-1.el9.x86_64
  *
libva-devel-2.22.0-1.el9.x86_64

This makes me wonder:

  *
Is Intel QSV fully supported on Rocky Linux 9?
  *
Is there an additional package, driver, or configuration required for QSV usage 
from code (as opposed to CLI)?

Any guidance or pointers would be greatly appreciated.

Thanks,
Mariana Assis
_______________________________________________
Libav-user mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to