how to select devides when using ffmpeg + nvenc encode?

Hi,
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?

Hi,

Could you provide us with the following information? It will help us answer your question:

  1. Operating system
  2. Driver version
  3. ffmpeg complete command line

Ryan Park

Thank you for the reply.

  1. Operating system is centos7.2.
  2. Driver version is NVIDIA-Linux-x86_64-384.98.
  3. 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.