Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
|
25th July 2024, 08:24 | #1 | Link |
Registered User
Join Date: Aug 2002
Location: Italy
Posts: 315
|
[FFMPEG] how to exploit all available GPUs ?
Hi there, I've recently tested encoding performances on an a friend's MSI Stealth GS77 - 12U laptop: when the process was done with one of the GPUs, the other remained unused - although it still consumed some power (neither goes totally idle) and of course produce heat - and vice versa.
As for the title: how - if possible - write a command line to assign the Intel iGPU to decode source video stream and Nvidia dGPU to the encoding workload only (and, why not, vice-versa) ? Thanks in advance to anyone that can/will help.
__________________
Hybrid Multimedia Production Suite will be a platform-indipendent open source suite for advanced audio/video contents production. Official git: https://forart.it/HyMPS |
25th July 2024, 13:16 | #2 | Link |
Big Bit Savings Now !
Join Date: Feb 2007
Location: close to the wall
Posts: 1,738
|
This is maybe done first in BIOS (enable MSI Hybrid), then in Windows Graphic settings: Hardware Accelerated GPU On (means nVidia), then assign apps. Here on a hybrid iGPU/dGPU system (Clevo) it more or less works.
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain) "Data reduction ? Yep, Sir. We're that issue working on. Synce invntoin uf lingöage..." Last edited by Emulgator; 29th July 2024 at 21:54. |
25th July 2024, 13:56 | #3 | Link |
Registered User
Join Date: Jun 2024
Location: South Africa
Posts: 127
|
I've only got a single GPU (Vega on Raven Ridge), but the following used the GPU for both decoding and encoding:
Code:
ffmpeg -hwaccel d3d11va -i INPUT.mp4 -c:v hevc_amf OUTPUT Code:
ffmpeg -hwaccel d3d11va -i INPUT.mp4 -c:v h264_nvenc OUTPUT ffmpeg -hwaccel qsv -i INPUT.mp4 -c:v h264_nvenc OUTPUT |
Tags |
cuda, ffmpeg, intel, nvidia, qsv |
Thread Tools | Search this Thread |
Display Modes | |
|
|