[FFmpeg-user] How to select GPU in a multi GPU system

Thomas Volkert silvo at gmx.net
Fri Jul 8 02:42:22 EEST 2022


Hi,


Am 05.07.2022 um 02:06 schrieb DopeLabs:
> hello,
>
> how does one select which GPU to use for hardware acceleration when more than 1 GPU is installed in the system?
>
> some searching seemed to hint at using the -gpu option but it looks like that option has been deprecated? the option does not appear in the man pages or on the documentation pages on the ffmpeg website. trying to use the option seems to fail.
>
> thank you
>
> $ ffmpeg -i test.mov -c:v h264_videotoolbox -gpu 1 test.mp4


It looks like you try this on macOS. The OS API there doesn't support to
select the GPU explicitly. It hides the GPU selection completely as
internal magic.


Best regards,
Thomas.



More information about the ffmpeg-user mailing list