Opened 20 months ago

Last modified 20 months ago

#11485 new defect

Unable to choise GPU on Nvidia A16 card with 4 chips on board

Reported by: krs_vital Owned by:
Priority: important Component: ffmpeg
Version: git-master Keywords: cuda NVENC
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by krs_vital)

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

Second variand of command line doesnt work too:

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 -filter:v:0 hwupload_cuda,yadif_cuda=0:-1:1 -preset:v:0 slow -b:v:0 8M -maxrate 16M -bufsize:v:0 64M -gpu:v:0 3 -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

Attachments (2)

nvidia-smi.png​ (30.6 KB ) - added by krs_vital 20 months ago.
nvidia-smi output
ffmpeg-20250226-091633.log​ (218.1 KB ) - added by krs_vital 20 months ago.
ffmpeg with -report flag

Download all attachments as: .zip

Change History (4)

by krs_vital, 20 months ago

Attachment: nvidia-smi.png​ added

nvidia-smi output

comment:1 by krs_vital, 20 months ago

Description: modified (diff)

comment:2 by krs_vital, 20 months ago

Description: modified (diff)

by krs_vital, 20 months ago

Attachment: ffmpeg-20250226-091633.log​ added

ffmpeg with -report flag

Note: See TracTickets for help on using tickets.