[FFmpeg-trac] #7301(undetermined:new): h264_nvenc / b_ref_mode each is not working

FFmpeg trac at avcodec.org
Thu Jul 5 16:59:08 EEST 2018


#7301: h264_nvenc / b_ref_mode each is not working
-------------------------------------+-------------------------------------
             Reporter:               |                    Owner:
  smallishzulu                       |                   Status:  new
                 Type:  defect       |                Component:
             Priority:  normal       |  undetermined
              Version:  unspecified  |               Resolution:
             Keywords:  nvenc        |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by smallishzulu):

 testsrc cmd line (simplified line):

 /opt/ffmpeg/bin/ffmpeg -loglevel verbose -f lavfi -i testsrc2  -aspect
 16:9 -s 720x576 -map 0:0  -c:v:0 h264_nvenc  -preset slow   -profile:v
 main   -pix_fmt yuv420p -f mpegts -bf 4 -refs 2 -b_ref_mode each
 'udp://192.168.2.100:5000?pkt_size=188'

 ffmpeg version N-91062-gf995aa8 Copyright (c) 2000-2018 the FFmpeg
 developers
   built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
   configuration: --prefix=/opt/ffmpeg --enable-nonfree --enable-gpl
 --extra-cflags='-I/opt/ffmpeg/include -I/usr/local/include
 -I/usr/local/cuda/include -I/opt/ndi/sdk/include' --extra-
 ldflags='-L/opt/ffmpeg/lib -L/usr/local/cuda/lib64 -L/opt/ndi/sdk/lib'
 --bindir=/opt/ffmpeg/bin --extra-libs=-ldl --enable-libx264 --enable-
 libx265 --enable-nonfree --enable-gpl --enable-nvenc --enable-libzvbi
 --enable-libfdk-aac --enable-libzimg --enable-libzmq --enable-libfreetype
 --enable-static --enable-shared --enable-hardcoded-tables --enable-vdpau
 --enable-cuda --enable-cuvid --enable-libvpx --enable-libmp3lame --enable-
 libndi_newtek --enable-openssl --enable-ffnvcodec --enable-libfontconfig
 --enable-libfribidi --enable-cuda-sdk --enable-libnpp
   libavutil      56. 18.102 / 56. 18.102
   libavcodec     58. 19.101 / 58. 19.101
   libavformat    58. 13.102 / 58. 13.102
   libavdevice    58.  4.100 / 58.  4.100
   libavfilter     7. 22.100 /  7. 22.100
   libswscale      5.  2.100 /  5.  2.100
   libswresample   3.  2.100 /  3.  2.100
   libpostproc    55.  2.100 / 55.  2.100
 [Parsed_testsrc2_0 @ 0xe80ec0] size:320x240 rate:25/1 duration:-1.000000
 sar:1/1
 Input #0, lavfi, from 'testsrc2':
   Duration: N/A, start: 0.000000, bitrate: N/A
     Stream #0:0: Video: rawvideo, 1 reference frame (I420 / 0x30323449),
 yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
 Stream mapping:
   Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (h264_nvenc))
 Press [q] to stop, [?] for help
 [graph 0 input from stream 0:0 @ 0xeee840] w:320 h:240 pixfmt:yuv420p
 tb:1/25 fr:25/1 sar:1/1 sws_param:flags=2
 [scaler_out_0_0 @ 0xeef5c0] w:720 h:576 flags:'bicubic' interl:0
 [scaler_out_0_0 @ 0xeef5c0] w:320 h:240 fmt:yuv420p sar:1/1 -> w:720 h:576
 fmt:yuv420p sar:16/15 flags:0x4
 [h264_nvenc @ 0xebf480] Loaded Nvenc version 8.1
 [h264_nvenc @ 0xebf480] Nvenc initialized successfully
 [h264_nvenc @ 0xebf480] 1 CUDA capable devices found
 [h264_nvenc @ 0xebf480] [ GPU #0 - < GeForce GTX 1080 > has Compute SM 6.1
 ]
 [h264_nvenc @ 0xebf480] Each B frame as reference is not supported
 [h264_nvenc @ 0xebf480] No NVENC capable devices found
 [h264_nvenc @ 0xebf480] Nvenc unloaded
 Error initializing output stream 0:0 -- Error while opening encoder for
 output stream #0:0 - maybe incorrect parameters such as bit_rate, rate,
 width or height
 Conversion failed!


 ----


 I think there should be an additional info to:
 [h264_nvenc @ 0xdb3800] Each B frame as reference is not supported
 [h264_nvenc @ 0xdb3800] No NVENC capable devices found

 Like linking to a page for capable device. I even couldnt find a valuable
 info in SDK documents.

 BTW, I use a Pascal series card and I thought it could be supported.
 This can be a driver or an implementation issue as well.

 As a side note, I have needed equipments to do NVIDIA GPU based tests if
 necessary.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7301#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list