How to select GPU in a multi GPU system
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 ffmpeg version N-107303-g9fec43a92d Copyright (c) 2000-2022 the FFmpeg developers built with Apple clang version 13.1.6 (clang-1316.0.21.2.5) configuration: --enable-static --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --disable-libjack --disable-indev=jack --enable-libcaca --extra-libs=-liconv --prefix=/opt/miniconda3 --enable-macos-kperf --enable-libkvazaar --disable-shared --pkg-config-flags=--static --enable-neon --enable-nonfree --enable-runtime-cpudetect --enable-postproc --enable-libfdk_aac libavutil 57. 27.100 / 57. 27.100 libavcodec 59. 36.100 / 59. 36.100 libavformat 59. 26.100 / 59. 26.100 libavdevice 59. 6.100 / 59. 6.100 libavfilter 8. 41.100 / 8. 41.100 libswscale 6. 6.100 / 6. 6.100 libswresample 4. 6.100 / 4. 6.100 libpostproc 56. 5.100 / 56. 5.100 Unrecognized option 'gpu'. Error splitting the argument list: Option not found
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.
How can just do a crop/trim video MP4, after update, now ffmpeg take so longer, many more process $ 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@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.
Best regards, Thomas.
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
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@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.
participants (4)
-
Budi -
DopeLabs -
Reindl Harald -
Thomas Volkert