[FFmpeg-devel] [PATCH] lavc/qsvdec: allow qsv decoders to use initialized device
Soft Works
softworkz at hotmail.com
Wed Sep 2 07:32:07 EEST 2020
> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of
> Soft Works
> Sent: Wednesday, September 2, 2020 6:13 AM
> To: FFmpeg development discussions and patches <ffmpeg-
> devel at ffmpeg.org>
> Subject: Re: [FFmpeg-devel] [PATCH] lavc/qsvdec: allow qsv decoders to use
> initialized device
>
> >
> > > -----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
> I apologize, I picked the wrong thing. The qsv_device parameter is what
> allows setting the device for a QSV decoder:
>
> fmpeg -qsv_device /dev/dri/renderD128 -c:v:0 h264_qsv -hwaccel:v:0 qsv -i
> INPUT ....
>
> Kind regards,
> softworkz
Here's the commit where the parameter had been added: https://github.com/FFmpeg/FFmpeg/commit/1a79b8f8d2b5d26c60c237d6e585873238e46914
More information about the ffmpeg-devel
mailing list