[FFmpeg-trac] #7753(undetermined:new): yadif_cuda fails, with h264_cuvid decoder

FFmpeg trac at avcodec.org
Sun Feb 24 20:15:06 EET 2019


#7753: yadif_cuda fails, with h264_cuvid decoder
-------------------------------------+-------------------------------------
             Reporter:  arrmo        |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  unspecified  |               Resolution:
             Keywords:  cuda         |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by arrmo):

 Yes, you are correct - I pulled the master, and now it builds. Thanks!

 OK, very odd, but cuvid vs. nvdec react differently (more, below). They
 both fail, but in different ways. BTW .. what is the difference? Just
 trying to understand.

 Here is the difference (providing full command line - I can attach full
 logs if you want too, no issue!),
 1) /mnt/ProgSSD/FFmpeg/ffmpeg -threads 0 -hwaccel cuvid -c:v h264_cuvid -y
 -i "/mnt/ProgSSD/transcodeAVCHD/test/00005.MTS" -vf
 yadif_cuda,scale_npp=1280:-1 -c:v hevc_nvenc -preset slow -cq 10 -g 150
 -c:a aac -b:a 128k -metadata:s:a:0 language=eng
 "/mnt/ProgSSD/transcodeAVCHD/test/test1.mp4"

 {{{
 ffmpeg version N-93231-g96d79ff5b5 Copyright (c) 2000-2019 the FFmpeg
 developers
   built with gcc 8 (Ubuntu 8.2.0-7ubuntu1)
   configuration: --enable-libnpp --enable-nonfree --enable-cuda --enable-
 libx264 --enable-gpl --enable-nvenc --enable-libx265 --enable-cuda-sdk
 --enable-cuvid
   libavutil      56. 26.100 / 56. 26.100
   libavcodec     58. 47.102 / 58. 47.102
   libavformat    58. 26.101 / 58. 26.101
   libavdevice    58.  6.101 / 58.  6.101
   libavfilter     7. 48.100 /  7. 48.100
   libswscale      5.  4.100 /  5.  4.100
   libswresample   3.  4.100 /  3.  4.100
   libpostproc    55.  4.100 / 55.  4.100
 Input #0, mpegts, from '/mnt/ProgSSD/transcodeAVCHD/test/00005.MTS':
   Duration: 00:00:15.04, start: 1.033367, bitrate: 16837 kb/s
   Program 1
     Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448),
 yuv420p(top first), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr,
 90k tbn, 59.94 tbc
     Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo,
 fltp, 256 kb/s
     Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] /
 0x0090), 1920x1080
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 (h264_cuvid) -> hevc (hevc_nvenc))
   Stream #0:1 -> #0:1 (ac3 (native) -> aac (native))
 Press [q] to stop, [?] for help
 [Parsed_yadif_cuda_0 @ 0x56535d4c27c0] cuModuleLoadData(&s->cu_module,
 vf_yadif_cuda_ptx) failed -> CUDA_ERROR_UNKNOWN: unknown error
 [Parsed_yadif_cuda_0 @ 0x56535d4c27c0] Failed to configure output pad on
 Parsed_yadif_cuda_0
 Error reinitializing filters!
 Failed to inject frame into filter network: Generic error in an external
 library
 Error while processing the decoded data for stream #0:0
 }}}



 2) /mnt/ProgSSD/FFmpeg/ffmpeg -threads 0 -hwaccel nvdec -c:v h264_cuvid -y
 -i "/mnt/ProgSSD/transcodeAVCHD/test/00005.MTS" -vf
 yadif_cuda,scale_npp=1280:-1 -c:v hevc_nvenc -preset slow -cq 10 -g 150
 -c:a aac -b:a 128k -metadata:s:a:0 language=eng
 "/mnt/ProgSSD/transcodeAVCHD/test/test1.mp4"

 {{{
 ffmpeg version N-93231-g96d79ff5b5 Copyright (c) 2000-2019 the FFmpeg
 developers
   built with gcc 8 (Ubuntu 8.2.0-7ubuntu1)
   configuration: --enable-libnpp --enable-nonfree --enable-cuda --enable-
 libx264 --enable-gpl --enable-nvenc --enable-libx265 --enable-cuda-sdk
 --enable-cuvid
   libavutil      56. 26.100 / 56. 26.100
   libavcodec     58. 47.102 / 58. 47.102
   libavformat    58. 26.101 / 58. 26.101
   libavdevice    58.  6.101 / 58.  6.101
   libavfilter     7. 48.100 /  7. 48.100
   libswscale      5.  4.100 /  5.  4.100
   libswresample   3.  4.100 /  3.  4.100
   libpostproc    55.  4.100 / 55.  4.100
 Input #0, mpegts, from '/mnt/ProgSSD/transcodeAVCHD/test/00005.MTS':
   Duration: 00:00:15.04, start: 1.033367, bitrate: 16837 kb/s
   Program 1
     Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448),
 yuv420p(top first), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr,
 90k tbn, 59.94 tbc
     Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo,
 fltp, 256 kb/s
     Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] /
 0x0090), 1920x1080
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 (h264_cuvid) -> hevc (hevc_nvenc))
   Stream #0:1 -> #0:1 (ac3 (native) -> aac (native))
 Press [q] to stop, [?] for help
 Impossible to convert between the formats supported by the filter 'graph 0
 input from stream 0:0' and the filter 'auto_scaler_0'
 Error reinitializing filters!
 Failed to inject frame into filter network: Function not implemented
 Error while processing the decoded data for stream #0:0
 }}}

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


More information about the FFmpeg-trac mailing list