NVENC h.264 Unable to initialize the encoder.

  • [22:27:29] ---------------------------------------------

    [22:27:29] Export started

    [22:27:29] ---------------------------------------------

    [22:27:29] Filename: H:\素材库\视频\游戏\bilibili_22908357_20210726_235601.mp4

    [22:27:29] Application: Voukoder (Adobe Premiere)

    [22:27:29] - Video -------------------------------------

    [22:27:29] Frame size: 1920x1030

    [22:27:29] Pixel aspect: 1:1

    [22:27:29] Timebase: -41012147/612929536 (-14.95 fps)

    [22:27:29] Interlaced: No

    [22:27:29] Encoder: h264_nvenc

    [22:27:29] Options: _computeCapability=6.1 _pixelFormat=yuv420p gpu=0 preset=medium profile=main qp=23 rc=constqp

    [22:27:29] Side data: <none>

    [22:27:29] Filters: <none>

    [22:27:29] Passes: 1

    [22:27:29] Color range: unknown

    [22:27:29] Color space: unknown

    [22:27:29] Color primaries: unknown

    [22:27:29] Color transfer: unknown

    [22:27:29] - Audio -------------------------------------

    [22:27:29] Timebase: 1/44100

    [22:27:29] Channels: 2

    [22:27:29] Encoder: aac

    [22:27:29] Options: _sampleFormat=fltp b=320000 profile=aac_low

    [22:27:29] Side data: <none>

    [22:27:29] Filters: <none>

    [22:27:29] ---------------------------------------------

    [22:27:29] Opening codec: h264_nvenc with options: gpu=0|preset=medium|profile=main|qp=23|rc=constqp

    [22:27:29] FFmpeg: The encoder timebase is not set.

    [22:27:29] Failed opening codec: h264_nvenc

    [22:27:29] Unable to open video encoder: h264_nvenc

    [22:27:29] Closing encoders ...

    [22:27:29] Opening encoder failed! Aborting ...



    How to solve this problem?

    My Graphics card is 1060 6G:(:(

  • Vouk

    Approved the thread.
  • Check your FPS Setting in Premieres Video tab. It is currently set to -15 fps.

    [14:06:40] ---------------------------------------------

    [14:06:40] Export started

    [14:06:40] ---------------------------------------------

    [14:06:40] Filename: H:\素材库\视频\延时\DSC_1080.mp4

    [14:06:40] Application: Voukoder (Adobe Premiere)

    [14:06:40] - Video -------------------------------------

    [14:06:40] Frame size: 6016x4016

    [14:06:40] Pixel aspect: 1:1

    [14:06:40] Timebase: 1001/30000 (29.97 fps)

    [14:06:40] Interlaced: No

    [14:06:40] Encoder: h264_nvenc

    [14:06:40] Options: _computeCapability=6.1 _pixelFormat=yuv420p gpu=0 preset=medium profile=high qp=15 rc=constqp

    [14:06:40] Side data: <none>

    [14:06:40] Filters: <none>

    [14:06:40] Passes: 1

    [14:06:40] Color range: unknown

    [14:06:40] Color space: unknown

    [14:06:40] Color primaries: unknown

    [14:06:40] Color transfer: unknown

    [14:06:40] - Audio -------------------------------------

    [14:06:40] Timebase: 1/48000

    [14:06:40] Channels: 2

    [14:06:40] Encoder: libmp3lame

    [14:06:40] Options: _sampleFormat=s16p abr=0 b=128000

    [14:06:40] Side data: <none>

    [14:06:40] Filters: <none>

    [14:06:40] ---------------------------------------------

    [14:06:40] Opening codec: h264_nvenc with options: gpu=0|preset=medium|profile=high|qp=15|rc=constqp

    [14:06:40] FFmpeg: Loaded lib: nvcuda.dll

    [14:06:40] FFmpeg: Loaded sym: cuInit

    [14:06:40] FFmpeg: Loaded sym: cuDeviceGetCount

    [14:06:40] FFmpeg: Loaded sym: cuDeviceGet

    [14:06:40] FFmpeg: Loaded sym: cuDeviceGetAttribute

    [14:06:40] FFmpeg: Loaded sym: cuDeviceGetName

    [14:06:40] FFmpeg: Loaded sym: cuDeviceComputeCapability

    [14:06:40] FFmpeg: Loaded sym: cuCtxCreate_v2

    [14:06:40] FFmpeg: Loaded sym: cuCtxSetLimit

    [14:06:40] FFmpeg: Loaded sym: cuCtxPushCurrent_v2

    [14:06:40] FFmpeg: Loaded sym: cuCtxPopCurrent_v2

    [14:06:40] FFmpeg: Loaded sym: cuCtxDestroy_v2

    [14:06:40] FFmpeg: Loaded sym: cuMemAlloc_v2

    [14:06:40] FFmpeg: Loaded sym: cuMemAllocPitch_v2

    [14:06:40] FFmpeg: Loaded sym: cuMemsetD8Async

    [14:06:40] FFmpeg: Loaded sym: cuMemFree_v2

    [14:06:40] FFmpeg: Loaded sym: cuMemcpy

    [14:06:40] FFmpeg: Loaded sym: cuMemcpyAsync

    [14:06:40] FFmpeg: Loaded sym: cuMemcpy2D_v2

    [14:06:40] FFmpeg: Loaded sym: cuMemcpy2DAsync_v2

    [14:06:40] FFmpeg: Loaded sym: cuGetErrorName

    [14:06:40] FFmpeg: Loaded sym: cuGetErrorString

    [14:06:40] FFmpeg: Loaded sym: cuCtxGetDevice

    [14:06:40] FFmpeg: Loaded sym: cuDevicePrimaryCtxRetain

    [14:06:40] FFmpeg: Loaded sym: cuDevicePrimaryCtxRelease

    [14:06:40] FFmpeg: Loaded sym: cuDevicePrimaryCtxSetFlags

    [14:06:40] FFmpeg: Loaded sym: cuDevicePrimaryCtxGetState

    [14:06:40] FFmpeg: Loaded sym: cuDevicePrimaryCtxReset

    [14:06:40] FFmpeg: Loaded sym: cuStreamCreate

    [14:06:40] FFmpeg: Loaded sym: cuStreamQuery

    [14:06:40] FFmpeg: Loaded sym: cuStreamSynchronize

    [14:06:40] FFmpeg: Loaded sym: cuStreamDestroy_v2

    [14:06:40] FFmpeg: Loaded sym: cuStreamAddCallback

    [14:06:40] FFmpeg: Loaded sym: cuEventCreate

    [14:06:40] FFmpeg: Loaded sym: cuEventDestroy_v2

    [14:06:40] FFmpeg: Loaded sym: cuEventSynchronize

    [14:06:40] FFmpeg: Loaded sym: cuEventQuery

    [14:06:40] FFmpeg: Loaded sym: cuEventRecord

    [14:06:40] FFmpeg: Loaded sym: cuLaunchKernel

    [14:06:40] FFmpeg: Loaded sym: cuLinkCreate

    [14:06:40] FFmpeg: Loaded sym: cuLinkAddData

    [14:06:40] FFmpeg: Loaded sym: cuLinkComplete

    [14:06:40] FFmpeg: Loaded sym: cuLinkDestroy

    [14:06:40] FFmpeg: Loaded sym: cuModuleLoadData

    [14:06:40] FFmpeg: Loaded sym: cuModuleUnload

    [14:06:40] FFmpeg: Loaded sym: cuModuleGetFunction

    [14:06:40] FFmpeg: Loaded sym: cuModuleGetGlobal

    [14:06:40] FFmpeg: Loaded sym: cuTexObjectCreate

    [14:06:40] FFmpeg: Loaded sym: cuTexObjectDestroy

    [14:06:40] FFmpeg: Loaded sym: cuGLGetDevices_v2

    [14:06:40] FFmpeg: Loaded sym: cuGraphicsGLRegisterImage

    [14:06:40] FFmpeg: Loaded sym: cuGraphicsUnregisterResource

    [14:06:40] FFmpeg: Loaded sym: cuGraphicsMapResources

    [14:06:40] FFmpeg: Loaded sym: cuGraphicsUnmapResources

    [14:06:40] FFmpeg: Loaded sym: cuGraphicsSubResourceGetMappedArray

    [14:06:40] FFmpeg: Loaded sym: cuDeviceGetUuid

    [14:06:40] FFmpeg: Loaded sym: cuImportExternalMemory

    [14:06:40] FFmpeg: Loaded sym: cuDestroyExternalMemory

    [14:06:40] FFmpeg: Loaded sym: cuExternalMemoryGetMappedBuffer

    [14:06:40] FFmpeg: Loaded sym: cuExternalMemoryGetMappedMipmappedArray

    [14:06:40] FFmpeg: Loaded sym: cuMipmappedArrayGetLevel

    [14:06:40] FFmpeg: Loaded sym: cuMipmappedArrayDestroy

    [14:06:40] FFmpeg: Loaded sym: cuImportExternalSemaphore

    [14:06:40] FFmpeg: Loaded sym: cuDestroyExternalSemaphore

    [14:06:40] FFmpeg: Loaded sym: cuSignalExternalSemaphoresAsync

    [14:06:40] FFmpeg: Loaded sym: cuWaitExternalSemaphoresAsync

    [14:06:40] FFmpeg: Loaded lib: nvEncodeAPI64.dll

    [14:06:40] FFmpeg: Loaded sym: NvEncodeAPICreateInstance

    [14:06:40] FFmpeg: Loaded sym: NvEncodeAPIGetMaxSupportedVersion

    [14:06:40] FFmpeg: Loaded Nvenc version 11.1

    [14:06:40] FFmpeg: Nvenc initialized successfully

    [14:06:40] FFmpeg: Calling dl_fn->cuda_dl->cuInit(0)

    [14:06:40] FFmpeg: Calling dl_fn->cuda_dl->cuDeviceGetCount(&nb_devices)

    [14:06:40] FFmpeg: 1 CUDA capable devices found

    [14:06:40] FFmpeg: Calling dl_fn->cuda_dl->cuDeviceGet(&cu_device, idx)

    [14:06:40] FFmpeg: Calling dl_fn->cuda_dl->cuDeviceGetName(name, sizeof(name), cu_device)

    [14:06:40] FFmpeg: Calling dl_fn->cuda_dl->cuDeviceComputeCapability(&major, &minor, cu_device)

    [14:06:40] FFmpeg: [ GPU #0 - < NVIDIA GeForce GTX 1060 6GB > has Compute SM 6.1 ]

    [14:06:40] FFmpeg: Calling dl_fn->cuda_dl->cuCtxCreate(&ctx->cu_context_internal, 0, cu_device)

    [14:06:40] FFmpeg: Calling dl_fn->cuda_dl->cuCtxPopCurrent(&dummy)

    [14:06:40] FFmpeg: Width 6016 exceeds 4096

    [14:06:40] FFmpeg: Calling dl_fn->cuda_dl->cuCtxPushCurrent(ctx->cu_context)

    [14:06:40] FFmpeg: Calling dl_fn->cuda_dl->cuCtxPopCurrent(&dummy)

    [14:06:40] FFmpeg: Calling dl_fn->cuda_dl->cuCtxDestroy(ctx->cu_context_internal)

    [14:06:40] FFmpeg: No capable devices found

    [14:06:40] FFmpeg: Nvenc unloaded

    [14:06:40] Failed opening codec: h264_nvenc

    [14:06:40] Unable to open video encoder: h264_nvenc

    [14:06:40] Closing encoders ...

    [14:06:40] Opening encoder failed! Aborting ...


    There are some new problems here.

    H.264(x264) works normally.

    Still some problems about NVENC CUDA.;(

    Most of the data matches the source.

  • Well, yes... But it is pretty obvious here:


    Code
    [14:06:40] FFmpeg: Width 6016 exceeds 4096
    [14:06:40] FFmpeg: No capable devices found


    Seems your GPU supports a max. width of 4096.

    Help to improve this plugin and support me on patreon or paypal. Thank you.

  • Well, yes... But it is pretty obvious here:


    Code
    [14:06:40] FFmpeg: Width 6016 exceeds 4096
    [14:06:40] FFmpeg: No capable devices found


    Seems your GPU supports a max. width of 4096.

    I am not a native English speaker.

    It's difficult troubleshoot the problem.

    So thank you for you reply.

  • Vouk

    Added the Label Not a bug
  • Vouk

    Removed the Label Adobe Premiere / MediaEncoder