[FFmpeg-devel] [PATCH] lavc/qsvdec: allow qsv decoders to use initialized device

Soft Works softworkz at hotmail.com
Wed Sep 2 06:32:39 EEST 2020



> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of
> Dmitry Rogozhkin
> Sent: Wednesday, September 2, 2020 4:44 AM
> To: ffmpeg-devel at ffmpeg.org
> Cc: Dmitry Rogozhkin <dmitry.v.rogozhkin at intel.com>
> Subject: [FFmpeg-devel] [PATCH] lavc/qsvdec: allow qsv decoders to use
> initialized device
> 
> qsv decoders did not allow to use devices explicitly initialized on the
> command line and actually were using default device. This starts to cause
> confusion with intel discrete GPUs since in this case decoder might run on
> default integrated GPU device (/dev/dri/renderD128) and encoder on the
> device specified on the command line (/dev/dri/renderD129).
> 
> Example:
> ffmpeg -init_hw_device vaapi=va:/dev/dri/renderD129 -init_hw_device
> qsv=hw at va \
>   -c:v h264_qsv -i input.h264 -c:v hevc_qsv -y output.h264
> 

Hi Dmitry,

How about this:

-init_hw_device qsv=vad:hw_any,child_device=/dev/dri/renderD128

Unfortunately I do not have one of the new Intel discrete GPUs
so I wasn't able to test, but the above parameter is working
at least in a way that it fails when the specified child_device 
is wrong (e.g. Nvidia GPU)).

Kind regards,
softworkz




More information about the ffmpeg-devel mailing list