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.

 

Go Back   Doom9's Forum > Announcements and Chat > General Discussion

Reply
 
Thread Tools Search this Thread Display Modes
Old 25th July 2024, 08:24   #1  |  Link
PatchWorKs
Registered User
 
PatchWorKs's Avatar
 
Join Date: Aug 2002
Location: Italy
Posts: 312
[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://www.forart.it/HyMPS/
PatchWorKs is offline   Reply With Quote
Old 25th July 2024, 13:16   #2  |  Link
Emulgator
Big Bit Savings Now !
 
Emulgator's Avatar
 
Join Date: Feb 2007
Location: close to the wall
Posts: 1,671
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.
Emulgator is offline   Reply With Quote
Old 25th July 2024, 13:56   #3  |  Link
GeoffreyA
Registered User
 
Join Date: Jun 2024
Location: South Africa
Posts: 50
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
Of course, that is AMD's encoder. I can't test this but give the following a go and see what happens:

Code:
ffmpeg -hwaccel d3d11va -i INPUT.mp4 -c:v h264_nvenc OUTPUT
ffmpeg -hwaccel qsv -i INPUT.mp4 -c:v h264_nvenc OUTPUT
GeoffreyA is offline   Reply With Quote
Reply

Tags
cuda, ffmpeg, intel, nvidia, qsv

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 15:40.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.