如何在ffmpeg中指定nvenc使用的GPU [英] how to specify the GPU to be used by nvenc in ffmpeg

查看:4756
本文介绍了如何在ffmpeg中指定nvenc使用的GPU的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用ffmpeg进行转码与nvenc,我有两个nvidia显卡安装在我的主板:GeForce GTX 690和特斯拉k-10。 ffmpeg中的nvnenc是否存在任何编解码器特定参数,可以使用我想要的任何这些GPU进行编码?

解决方案

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆