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?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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 #.