如何在ffmpeg中指定nvenc使用的GPU [英] how to specify the GPU to be used by nvenc in ffmpeg
问题描述
nvenc编码器有一个GPU选项,允许列出并选择用于编码的GPU。
所以,使用
ffmpeg -f lavfi -i nullsrc -c:v nvenc -gpu list -f null -
以上,生成一个虚拟视频源,然后管道为null。同时,ffmpeg将列出可用的GPU列表。一旦知道,一旦知道,可以通过向编码命令添加 -gpu N
来选择特定的GPU,其中N是设备#。
I'm using ffmpeg for transcoding with nvenc and i have two nvidia Graphic Cards installed on my motherboard: GeForce GTX 690 and Tesla k-10. is there any codec specific parameters for nvnenc in ffmpeg to encode with any of these GPU which i want?
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 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 #.
这篇关于如何在ffmpeg中指定nvenc使用的GPU的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!