NVENC "EncodeAPI Internal Error"

AnnieBot

New Member
Hi, I was streaming last night and my OBS crashed with the following error:

06:20:10.981: [jim-nvenc] nvenc_encode_tex: nv.nvEncMapInputResource(enc->session, &map) failed: 8 (NV_ENC_ERR_INVALID_PARAM): EncodeAPI Internal Error.
06:20:10.981: Error encoding with encoder 'advanced_video_stream'
06:20:10.982: Output 'adv_stream': stopping
06:20:10.982: Output 'adv_stream': Total frames output: 1578601
06:20:10.982: Output 'adv_stream': Total drawn frames: 1578699 (1578759 attempted)
06:20:10.982: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 60 (0.0%)
06:20:10.982: Video stopped, number of skipped frames due to encoding lag: 50/1579335 (0.0%)
06:20:10.982: [rtmp stream: 'adv_stream'] Encoder error, disconnecting
06:20:10.982: [rtmp stream: 'adv_stream'] Socket send buffer is 65536 bytes
06:20:11.064: Device Remove/Reset! Rebuilding all assets...
06:20:11.651: ==== Streaming Stop ================================================
06:20:11.658: ==== Streaming Stop ================================================

I wanted to know what it meant and how I can fix it.

my Last Log:
 

Attachments

  • 2022-11-11 12-23-01.txt
    69.1 KB · Views: 191

.norman.

Member
that is a copy/paste section of the log file. next time that it happens be sure to click "Yes" when prompted to save the crash log. then upload that log here.
 

AnnieBot

New Member
for starters that is not the error that it gave you, that is a copy/paste section of the log file. but if the crash occurred after you closed OBS, i suspect that it is caused by streamFX. but without the crash log i cannot be sure. next time that it happens be sure to click "Yes" when prompted to save the crash log. then upload that log here.
Ok so, I had my OBS running overnight. And when I woke up, I saw there was a popup that mentioned something about NVENC. I can't remember precisely what it said but, OBS didn't crash. There was just that popup with OBS still running in the background albeit not streaming anymore. I shouldn't have used the word "crash" in my first post.

I do have the log from 6:20 am, when OBS stopped streaming. It's found in the first post.
 

.norman.

Member
Ok so, I had my OBS running overnight. And when I woke up, I saw there was a popup that mentioned something about NVENC. I can't remember precisely what it said but, OBS didn't crash. There was just that popup with OBS still running in the background albeit not streaming anymore.

I do have the log from 6:20 am, when OBS stopped streaming. It's found in the first post.

my apologies if i misunderstood or came off as being rude. it was not my intention. i tried to change the tone and assumptions of my original comment.

best i can tell the stream ran without incident for over seven hours before the error occurred. it is possible that it was just a random glitch. honestly though i am not sure.
 
Last edited:

.norman.

Member
in case you haven't seen it, this is your log when run through the analyzer:
 

PaiSand

Active Member
Adding to the errors you need to fix that the analizer shows, There's an issue with StreamFX plugin.

12:23:04.161: [StreamFX] Loading Version 0.12.0a134-g6853cc6a
12:23:04.214: [StreamFX] <gfx::opengl> Version 0.0 initialized.
12:23:04.217: [StreamFX] <nvidia::cuda::cuda> Driver reported CUDA version: 11.6.0
12:23:04.320: [StreamFX] <nvidia::cuda::context> Initialized CUDA on device 'NVIDIA GeForce GTX 1080 Ti' (4992813f-6267-eabe-bd35-ead85083afed, 0000ce81, 1).
12:23:04.324: [StreamFX] <nvidia::cv::cv> No supported NVIDIA SDK is installed to provide 'NVCVImage.dll'.
12:23:04.324: [StreamFX] <filter::autoframing> Failed to make NVIDIA providers available due to error: Failed to load 'NVCVImage.dll'.
12:23:04.324: [StreamFX] <filter::autoframing> All supported providers failed to initialize, disabling effect.
12:23:04.325: [StreamFX] <nvidia::cv::cv> No supported NVIDIA SDK is installed to provide 'NVCVImage.dll'.
12:23:04.325: [StreamFX] <filter::video_denoising> Failed to make NVIDIA providers available due to error: Failed to load 'NVCVImage.dll'.
12:23:04.325: [StreamFX] <filter::video_denoising> All supported providers failed to initialize, disabling effect.
12:23:04.325: [StreamFX] <nvidia::cv::cv> No supported NVIDIA SDK is installed to provide 'NVCVImage.dll'.
12:23:04.325: [StreamFX] <filter::video_superresolution> Failed to make NVIDIA Super-Resolution available due to error: Failed to load 'NVCVImage.dll'.
12:23:04.325: [StreamFX] <filter::video_superresolution> All supported Super-Resolution providers failed to initialize, disabling effect.
12:23:04.325: [StreamFX] <nvidia::cv::cv> No supported NVIDIA SDK is installed to provide 'NVCVImage.dll'.
12:23:04.325: [StreamFX] <filter::virtual_greenscreen> Failed to make NVIDIA Greenscreen available due to error: Failed to load 'NVCVImage.dll'.
12:23:04.325: [StreamFX] <filter::virtual_greenscreen> All supported Virtual Greenscreen providers failed to initialize, disabling effect.
12:23:04.325: [StreamFX] Loaded Version 0.12.0a134-g6853cc6a

You're a few alpha releases behind. Meaning update it. Read the plugin guide to know what's wrong in this.
Consider removing the plugin if your computer can't handle it.

Also, you probably need to do a clean install of the GPU driver, just in case.

Streaming at 300kbps a 1080p 60fps output is pointless. Even at 2500kbps is pointless. In this case is better to scale to 720p.

To verify your internet connection against Twitch servers is better to use this tool:
Anything bellow 90 quality is bad.
 

AnnieBot

New Member
Thank you guys for the help! I will do as you guys said and fix as many of these things as I can and if any issues persist, I will come back.
 
Top