jely2002 / youtube-dl-gui

A cross-platform GUI for youtube-dl made in Electron and node.js
GNU Affero General Public License v3.0
6.5k stars 454 forks source link

Detect and use GPU encoder for FFMPEG (like hevc_amf) #369

Open julienperrault opened 2 years ago

julienperrault commented 2 years ago

Is your feature request related to a problem? Please describe. FFMPEG can rely on the encoders integrated in the CPUs (for AMD h264_amf/hevc_amf). Just call them this way: ffmpeg -i output.mkv -c:v hevc_amf -preset medium -crf 0 -c:a copy input.mp4

Describe the solution you'd like Here is the list of hardware encoders (NVIDIA and AMD available). ffmpeg -encoders -hide_banner | grep AMD ffmpeg -encoders -hide_banner | grep NVIDIA The goal would be to determine which GPU we have, and to allow to use them.