[FFmpeg-trac] #6989(avcodec:closed): Hwaccel cuvid fails with “Error creating a NVDEC decoder: 1”

FFmpeg trac at avcodec.org
Sun Jan 28 21:24:51 EET 2018


#6989: Hwaccel cuvid fails with “Error creating a NVDEC decoder: 1”
-------------------------------------+-------------------------------------
             Reporter:  tkalliom     |                    Owner:
                 Type:  defect       |                   Status:  closed
             Priority:  normal       |                Component:  avcodec
              Version:  git-master   |               Resolution:  invalid
             Keywords:  hwaccel      |               Blocked By:
  cuda cuvid NVDEC                   |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Changes (by philipl):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 That command line cannot work, so your results are not surprising.

 You either want to use the new nvdec hwaccel, or the old cuvid decoder. In
 either case, you need different arguments.

 To use the old style cuvid decoder:


 {{{$ ffmpeg -hwaccel cuvid -c:v h264_cuvid small.mp4 small2.mp4}}}


 To use the new style nvdec hwaccel:

 {{{$ ffmpeg -hwaccel nvdec small.mp4 small2.mp4}}}

 Also note, that neither command line construction will result in the use
 of nvenc on the encode side. For that, you need:

 {{{$ ffmpeg -hwaccel cuvid -c:v h264_cuvid small.mp4 -c:v h264_nvenc
 small2.mp4}}}

 or

 {{{$ ffmpeg -hwaccel nvdec -hwaccel_output_format cuda small.mp4 -c:v
 h264_nvenc small2.mp4}}}

 and then various encoder options to make it realistic.

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


More information about the FFmpeg-trac mailing list