[FFmpeg-user] Failed setup for format cuda: hwaccel initialisation returned error

Pavel Koshevoy pkoshevoy at gmail.com
Mon Nov 1 00:27:01 EET 2021

On Sun, Oct 31, 2021 at 4:11 PM Douglas Rhiner <douglasrhiner at gmail.com>

> I just can't seem to get FFMPEG to play nice with hardware acceleration.
> After the input file is read the following errors kick-back:
> [h264 @ 000002366512e8c0] Video width 5120 not within range from 48 to 4096

>     Stream #0:1(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv,
> bt709), 5120x2560, 55262 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc
> (default)

See https://developer.nvidia.com/nvidia-video-codec-sdk#NVDECFeatures
(click Supported Format Details)

NVDEC supports decoding H264 video of resolutions 4096x4096 or lower.
Your source is 5120x2560, it's not supported by NVDEC.

NVDEC supports up to 8192x8192 with other codecs -- HEVC and VP9.
See the support matrix under Supported Format Detail for all supported
resolutions per codec, per GPU iteration.

So if you can provide an input to ffmpeg in one of those formats and your
GPU supports these codecs and resolutions, then NVDEC hardware acceleration
should work.


More information about the ffmpeg-user mailing list