[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:12:16 EET 2025
#11485: Unable to choise GPU on Nvidia A16 card with 4 chips on board
------------------------------------+----------------------------------
Reporter: krs_vital | Owner: (none)
Type: defect | Status: new
Priority: important | Component: ffmpeg
Version: git-master | Resolution:
Keywords: cuda NVENC | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+----------------------------------
Description changed by krs_vital:
Old description:
> 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
New description:
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
--
--
Ticket URL: <https://trac.ffmpeg.org/ticket/11485#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list