[FFmpeg-devel] [PATCH] ffmpeg_qsv: use -hwaccel_device to specify a device for VAAPI backend

Soft Works softworkz at hotmail.com
Wed Sep 2 07:20:13 EEST 2020



> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of
> Haihao Xiang
> Sent: Wednesday, September 2, 2020 6:01 AM
> To: ffmpeg-devel at ffmpeg.org
> Cc: Haihao Xiang <haihao.xiang at intel.com>
> Subject: [FFmpeg-devel] [PATCH] ffmpeg_qsv: use -hwaccel_device to
> specify a device for VAAPI backend
> 
> According to the FFmpeg documentation, -hwaccel_device can be used to
> select a device for hardware acceleration
> 
> Example:
> ffmpeg -hwaccel qsv -hwaccel_device /dev/dri/renderD129 -c:v h264_qsv \ -i
> in.h264 -c:v hevc_qsv out.h265

No. The docs say about hwaccel_device

It can either refer to an existing device created with 
-init_hw_device by name, 

=> /dev/dri/renderD129 is not an existing device name

or it can create a new device as if ‘-init_hw_device’ 
type:hwaccel_device were called immediately before.

=> /dev/dri/renderD129 is not a valid string for init_hw_device


Hence, the patch doesn't make sense.

Kind regards,
softworkz


More information about the ffmpeg-devel mailing list