[FFmpeg-devel] NVENC HEVC Profile Settings Errors

Ali KIZIL alikizil at gmail.com
Tue Apr 14 14:57:32 CEST 2015


Timo Rothenpieler <timo <at> rothenpieler.org> writes:

> 
> > When setting level of HEVC in NVENC, FFmpeg gives error:
> >
> > root <at> encoder:~# /opt/ffmpeghw/bin/ffmpeg -i /root/bunny.mp4 -
aspect 16:9
> > -s 3840x2160 -vcodec nvenc_h265 -preset hp -fflags +genpts -vb 
25000k -
> > minrate 25000k -maxrate 25000k -bufsize 75000k -muxrate 25000k -r 50 
-an
> > -flush_packets 0 -packetsize 188 -level 5.1 -y -f mpegts /dev/null
> ...
> > [nvenc_h265  <at>  0xee0080] InitializeEncoder failed: 0x8
> 
> That simply means that the requested encoding options are 
> unsupported/invalid.
> The requested level is just passed to nvenc, it doesn't support every 
> single one of them in every mode.
> 
> 
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel <at> ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 

I think this section needs to be as below:

static const NvencValuePair nvenc_h265_level_pairs[] = {
    { "auto", NV_ENC_LEVEL_AUTOSELECT },
    { "6"   , NV_ENC_LEVEL_HEVC_6     },
    { "6.0" , NV_ENC_LEVEL_HEVC_6     },
    { "6.1" , NV_ENC_LEVEL_HEVC_61    },
    { "6.2" , NV_ENC_LEVEL_HEVC_62    },
    { NULL }
};




More information about the ffmpeg-devel mailing list