[FFmpeg-trac] #11485(ffmpeg:new): Unable to choise GPU on Nvidia A16 card with 4 chips on board

FFmpeg trac at avcodec.org
Wed Feb 26 11:02:39 EET 2025


#11485: Unable to choise GPU on Nvidia A16 card with 4 chips on board
------------------------------------+--------------------------------------
             Reporter:  krs_vital   |                     Type:  defect
               Status:  new         |                 Priority:  important
            Component:  ffmpeg      |                  Version:  git-master
             Keywords:  cuda NVENC  |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+--------------------------------------
 ffmpeg version:

 ffmpeg version N-118501-ge18f87ed9f Copyright (c) 2000-2025 the FFmpeg
 developers
   built with gcc 11 (GCC)
   configuration: --enable-cuda-nvcc --enable-cuvid --enable-nvdec
 --enable-nvenc --enable-nonfree --enable-libnpp --extra-
 cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64
 --libdir=/usr/lib64 --nvccflags='--include-path=/usr/local/cuda/include'
 --nvcc=/usr/local/cuda/bin/nvcc --enable-libnpp-static
   libavutil      59. 57.100 / 59. 57.100
   libavcodec     61. 33.102 / 61. 33.102
   libavformat    61.  9.107 / 61.  9.107
   libavdevice    61.  4.100 / 61.  4.100
   libavfilter    10.  9.100 / 10.  9.100
   libswscale      8. 13.100 /  8. 13.100
   libswresample   5.  4.100 /  5.  4.100

 ffmpeg command line:

 ffmpeg -err_detect ignore_err -correct_ts_overflow 0 -overrun_nonfatal 1
 -i udp://239.192.7.214:1234 -y -sn -dn -strftime 1 -strftime_mkdir 1 -map
 v:0 -c:v:0 h264_nvenc -gpu 3 -filter:v:0 hwupload_cuda,yadif_cuda=0:-1:1
 -preset:v:0 slow -b:v:0 8M -maxrate 16M -bufsize:v:0 64M -map a:0 -c:a:0
 aac -max_interleave_delta 360000000000 -ignore_unknown -g 25 -f hls
 -hls_time 1 -ignore_io_errors true -hls_flags omit_endlist
 -hls_segment_filename /store/records/mstrana/%s_%v.ts -master_pl_name
 master-mstrana.m3u8 -var_stream_map v:0,a:0 /hls/tmp/mstrana_%v.m3u8

 I want to encode strems with nvenc and bougth powerfull A16 card with 4
 chips on board, but i cant choise gpu thougth FFmpeg option "-gpu ", it
 allways sets to “gpu 0”.

 And i have another server with 2 GP100 videocards and its be able to
 choise GPU differ from 0

 nvidia-smi:

 +-----------------------------------------------------------------------------------------+
 | NVIDIA-SMI 570.86.15              Driver Version: 570.86.15      CUDA
 Version: 12.8     |
 |-----------------------------------------+------------------------+----------------------+
 | GPU  Name                 Persistence-M | Bus-Id          Disp.A |
 Volatile Uncorr. ECC |
 | Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-
 Util  Compute M. |
 |                                         |                        |
 MIG M. |
 |=========================================+========================+======================|
 |   0  NVIDIA A16                     Off |   00000000:55:00.0 Off |
 0 |
 |  0%   29C    P8             14W /   62W |       1MiB /  15356MiB |
 0%      Default |
 |                                         |                        |
 N/A |
 +-----------------------------------------+------------------------+----------------------+
 |   1  NVIDIA A16                     Off |   00000000:56:00.0 Off |
 0 |
 |  0%   27C    P8             14W /   62W |       1MiB /  15356MiB |
 0%      Default |
 |                                         |                        |
 N/A |
 +-----------------------------------------+------------------------+----------------------+
 |   2  NVIDIA A16                     Off |   00000000:57:00.0 Off |
 0 |
 |  0%   34C    P8             14W /   62W |       1MiB /  15356MiB |
 0%      Default |
 |                                         |                        |
 N/A |
 +-----------------------------------------+------------------------+----------------------+
 |   3  NVIDIA A16                     Off |   00000000:58:00.0 Off |
 0 |
 |  0%   35C    P8             14W /   62W |       1MiB /  15356MiB |
 0%      Default |
 |                                         |                        |
 N/A |
 +-----------------------------------------+------------------------+----------------------+
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/11485>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list