[FFmpeg-devel] [PATCH 00/15] OpenCL infrastructure, filters
Mark Thompson
sw at jkqxz.net
Sun Nov 26 19:26:28 EET 2017
On 26/11/17 16:14, hydra3333 at gmail.com wrote:
> Most systems have a "clinfo" program which will list all the queryable properties of the available devices.
>
>> From docs:
>
> -init_hw_device type[=name][:device[,key=value...]]
> Initialise a new hardware device of type type called name, using the given device parameters. If no name is specified it will receive a default name of the form "type%d".
>
> -filter_hw_device name
> Pass the hardware device called name to all filters in any filter graph.
>
> So, either give it a name explicitly or deduce what the name will be:
>
> -init_hw_device opencl=arbitrary_name:1.0 -filter_hw_device arbitrary_name
>
> or
>
> -init_hw_device opencl:1.0 -filter_hw_device opencl0
>
> (There is some thought of adding an option -opencl_device working like -vaapi_device to avoid the two steps for simple upload. The most useful cases all use device derivation/mapping to keep things on the GPU side, though, so I'm not entirely sure whether it's actually wanted.)
>
> - Mark
>
> ----------------------------------------------
>
> OK and Thank you, Mark.
>
> One last question if I may,
>
>> Most systems have a "clinfo" program which will list all the queryable properties of the available devices.
>
> In both of these cases
> -init_hw_device opencl=arbitrary_name:1.0
> -init_hw_device opencl:1.0
>
> the device is seen to be "1.0" ... how does one determine that device "id" in Windows 10 in order to use it ?
> (I have a another PC with intel graphics plus a 1050Ti and need to specify the 1050Ti)
>
> I tried to use a clinfo command in DOS under Win10 ... but no go.
> Display Adaptor properties didn't show anything obvious to an end-user.
> GPU Caps Viewer didn't show anything useful.
> ffmpeg -init_hw_device list showed
> Supported hardware device types:
> cuda
> dxva2
> qsv
> d3d11va
> opencl
The devices found will be listed when run with "-v verbose" (or higher). So, if you pass no additional options as in
ffmpeg -v verbose -init_hw_device opencl
you will get a list of all the devices with their names and indices.
- Mark
More information about the ffmpeg-devel
mailing list