how to specify the GPU to be used by nvenc in ffmpeg [closed]

廉价感情. 提交于 2019-12-01 10:29:17
Gyan

The nvenc encoders have a GPU option which allow both to list and also to select GPUs to be used for encoding.

So, use

ffmpeg -f lavfi -i nullsrc -c:v h264_nvenc -gpu list -f null -

Above, a dummy video source is generated and then piped to null. Meanwhile, FFmpeg will list the list of available GPUs.

Once known, a specific GPU can selected by adding -gpu N to the encoding command where N is the device #.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!