There are two nvidia devices in my computer, one is GTX GeForce 1080Ti, and another is Quadro p2000. When I use ffmpeg with heve_nvenc to encode Multi-channel video, the 1080Ti is firstly used to encode 2 channels. How can I just use p200 to do the job?
Could you provide us with the following information? It will help us answer your question:
- Operating system
- Driver version
- ffmpeg complete command line
Thank you for the reply.
- Operating system is centos7.2.
- Driver version is NVIDIA-Linux-x86_64-384.98.
- Ffmpeg complete command line is “./ffmpeg -f rawvideo -s:v 1920x1080 -r 30 -pix_fmt yuv420p -i /ssd/year_1080p_1000.yuv -b 2M -g 50 -preset fast -vcodec hevc_nvenc 2M-fast0.265 &”.
I’ve found the solution. Param “-gpu” can choose the device.