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

Reindl Harald h.reindl at thelounge.net
Fri Jul 8 08:53:45 EEST 2022



Am 08.07.22 um 03:05 schrieb Budi:
> How can just do a crop/trim video MP4, after update, now ffmpeg take
> so longer, many more process

how can one respnd with that question to "How to select GPU in a multi 
GPU system"?

i mean after press "reply" didn't you think about the subject nad that 
the quote below makes no sense?

> $ ffmpeg -i "b.mp4" -to 0:2:20  a.mp4
> 
> 
> used to do it nicely done in few seconds
> 
> Also what different it and ffmpeg4.4 seen in most Linux repo?
> 
> Please help out
> 
> 
> On 7/8/22, Thomas Volkert <silvo at gmx.net> wrote:
>> 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.


More information about the ffmpeg-user mailing list