[FFmpeg-trac] #8078(ffmpeg:new): Closed captions removed when decoding with NVDEC

FFmpeg trac at avcodec.org
Mon Aug 12 20:30:00 EEST 2019


#8078: Closed captions removed when decoding with NVDEC
-------------------------------------+-------------------------------------
             Reporter:  Canta        |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  ffmpeg
              Version:  git-master   |               Resolution:
             Keywords:  nvidia,      |               Blocked By:
  nvdec, cc                          |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by Canta):

 @heleppkes

 I've rebuilt ffmpeg with `--enable-nvdec` and don't see any indication of
 a "nvdec" hwaccel or any "*_nvdec" decoder.

 {{{
 root at cdn1:/opt/src/build/ffmpeg_build# ffmpeg -hwaccels
 ffmpeg version N-94476-gf12e662 Copyright (c) 2000-2019 the FFmpeg
 developers
   built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
   configuration: --prefix=./ --disable-shared --extra-
 cflags=-I/usr/local/include --extra-
 cflags=-I/usr/local/cuda-8.0/targets/x86_64-linux/include --extra-
 cflags=-I../nvidia/cudautils --extra-
 ldflags=-L/usr/local/cuda-8.0/targets/x86_64-linux/lib --extra-
 ldflags=-L../nvidia/cudautils --enable-nonfree --enable-gpl --enable-
 version3 --enable-avresample --enable-avisynth --enable-openal --enable-
 opencl --enable-opengl --enable-libnpp --enable-nvenc --enable-nvdec
 --enable-libxvid --enable-libxml2 --enable-cuda --enable-cuda-nvcc
 --enable-vaapi --enable-vdpau --enable-libx264 --enable-libx265 --enable-
 libass --enable-libwavpack --enable-libsoxr --enable-libfdk-aac --enable-
 libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora
 --enable-libvorbis --enable-libvpx --enable-librtmp --enable-libssh
 --enable-openssl --enable-omx-rpi --enable-omx --enable-libsrt
   libavutil      56. 33.100 / 56. 33.100
   libavcodec     58. 55.100 / 58. 55.100
   libavformat    58. 30.100 / 58. 30.100
   libavdevice    58.  9.100 / 58.  9.100
   libavfilter     7. 58.100 /  7. 58.100
   libavresample   4.  0.  0 /  4.  0.  0
   libswscale      5.  6.100 /  5.  6.100
   libswresample   3.  6.100 /  3.  6.100
   libpostproc    55.  6.100 / 55.  6.100
 Hardware acceleration methods:
 vdpau
 cuda
 vaapi
 opencl
 cuvid

 root at cdn1:/opt/src/build/ffmpeg_build# ffmpeg -decoders | grep -i nv
 ffmpeg version N-94476-gf12e662 Copyright (c) 2000-2019 the FFmpeg
 developers
   built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
   configuration: --prefix=./ --disable-shared --extra-
 cflags=-I/usr/local/include --extra-
 cflags=-I/usr/local/cuda-8.0/targets/x86_64-linux/include --extra-
 cflags=-I../nvidia/cudautils --extra-
 ldflags=-L/usr/local/cuda-8.0/targets/x86_64-linux/lib --extra-
 ldflags=-L../nvidia/cudautils --enable-nonfree --enable-gpl --enable-
 version3 --enable-avresample --enable-avisynth --enable-openal --enable-
 opencl --enable-opengl --enable-libnpp --enable-nvenc --enable-nvdec
 --enable-libxvid --enable-libxml2 --enable-cuda --enable-cuda-nvcc
 --enable-vaapi --enable-vdpau --enable-libx264 --enable-libx265 --enable-
 libass --enable-libwavpack --enable-libsoxr --enable-libfdk-aac --enable-
 libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora
 --enable-libvorbis --enable-libvpx --enable-librtmp --enable-libssh
 --enable-openssl --enable-omx-rpi --enable-omx --enable-libsrt
   libavutil      56. 33.100 / 56. 33.100
   libavcodec     58. 55.100 / 58. 55.100
   libavformat    58. 30.100 / 58. 30.100
   libavdevice    58.  9.100 / 58.  9.100
   libavfilter     7. 58.100 /  7. 58.100
   libavresample   4.  0.  0 /  4.  0.  0
   libswscale      5.  6.100 /  5.  6.100
   libswresample   3.  6.100 /  3.  6.100
   libpostproc    55.  6.100 / 55.  6.100
  V....D dsicinvideo          Delphine Software International CIN video
  V..... h264_cuvid           Nvidia CUVID H264 decoder (codec h264)
  V..... hevc_cuvid           Nvidia CUVID HEVC decoder (codec hevc)
  V....D idcinvideo           id Quake II CIN video (codec idcin)
  V..... mjpeg_cuvid          Nvidia CUVID MJPEG decoder (codec mjpeg)
  V..... mpeg1_cuvid          Nvidia CUVID MPEG1VIDEO decoder (codec
 mpeg1video)
  V..... mpeg2_cuvid          Nvidia CUVID MPEG2VIDEO decoder (codec
 mpeg2video)
  V..... mpeg4_cuvid          Nvidia CUVID MPEG4 decoder (codec mpeg4)
  V..... vc1_cuvid            Nvidia CUVID VC1 decoder (codec vc1)
  V..... vp8_cuvid            Nvidia CUVID VP8 decoder (codec vp8)
  V..... vp9_cuvid            Nvidia CUVID VP9 decoder (codec vp9)
  V....D wnv1                 Winnov WNV1
  A....D twinvq               VQF TwinVQ
 }}}

 However, I can see the encoders named "*_nvenc":

 {{{
 root at cdn1:/opt/src/build/ffmpeg_build# ffmpeg -encoders | grep -i nv
 ffmpeg version N-94476-gf12e662 Copyright (c) 2000-2019 the FFmpeg
 developers
   built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
   configuration: --prefix=./ --disable-shared --extra-
 cflags=-I/usr/local/include --extra-
 cflags=-I/usr/local/cuda-8.0/targets/x86_64-linux/include --extra-
 cflags=-I../nvidia/cudautils --extra-
 ldflags=-L/usr/local/cuda-8.0/targets/x86_64-linux/lib --extra-
 ldflags=-L../nvidia/cudautils --enable-nonfree --enable-gpl --enable-
 version3 --enable-avresample --enable-avisynth --enable-openal --enable-
 opencl --enable-opengl --enable-libnpp --enable-nvenc --enable-nvdec
 --enable-libxvid --enable-libxml2 --enable-cuda --enable-cuda-nvcc
 --enable-vaapi --enable-vdpau --enable-libx264 --enable-libx265 --enable-
 libass --enable-libwavpack --enable-libsoxr --enable-libfdk-aac --enable-
 libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora
 --enable-libvorbis --enable-libvpx --enable-librtmp --enable-libssh
 --enable-openssl --enable-omx-rpi --enable-omx --enable-libsrt
   libavutil      56. 33.100 / 56. 33.100
   libavcodec     58. 55.100 / 58. 55.100
   libavformat    58. 30.100 / 58. 30.100
   libavdevice    58.  9.100 / 58.  9.100
   libavfilter     7. 58.100 /  7. 58.100
   libavresample   4.  0.  0 /  4.  0.  0
   libswscale      5.  6.100 /  5.  6.100
   libswresample   3.  6.100 /  3.  6.100
   libpostproc    55.  6.100 / 55.  6.100
  V..... h264_nvenc           NVIDIA NVENC H.264 encoder (codec h264)
  V..... nvenc                NVIDIA NVENC H.264 encoder (codec h264)
  V..... nvenc_h264           NVIDIA NVENC H.264 encoder (codec h264)
  V..... nvenc_hevc           NVIDIA NVENC hevc encoder (codec hevc)
  V..... hevc_nvenc           NVIDIA NVENC hevc encoder (codec hevc)

 }}}

 May it be some other flag I need to enable? Maybe some dependency? I'm
 working in an Ubuntu 18.04 system.

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


More information about the FFmpeg-trac mailing list