Bug Report "An encoding error occurred while streaming"

Kynan383

New Member
Hello,

First off I want to say that I already made a thread about this in October, but it got completely ignored.
So I decided to finally wipe all my hard drives and reinstall windows, but even doing that didn't fix the problem, so here I am again with another thread.
I asked on twitter and Richard Stanway (sysadmin and developer for OBS) told me to install the CoreAudio for AAC, which I was also told to do by a popular streamer who noticed my tweet, but that didn't fix it as I "crashed" 2 times during the stream today (once after 1h09, and the other time 2h31 after restarting OBS and the stream).

What happens is that, randomly, I will get an error message from OBS saying "An encoding error occurred while streaming" without any details, and I have to force close OBS because it stays stuck on "ending stream" even though I didn't click the button, and even if I close the OBS windows, it stays open in my task manager (where I have to force close it if I want to restart it and continue streaming).

I hope this time someone will help me out and tell me what the heck I'm doing wrong because the CoreAudio thing didn't fix it.

For reference I stream using NVENC (new) at 8000Kbit/s, I have an i7-4790k and a GTX 1070 with 16Gb of RAM.
Also please note that WHATEVER settings I use (at least with NVENC), the crashes still happen randomly. I don't use x264 because my CPU is getting a bit too old to handle that + a game.

Please help.
 

Attachments

  • 2020-01-20 15-46-58.txt
    15.3 KB · Views: 105

BluePeer

Member
i had nearly similary issue with obs and nvenc (but not with the inbuild with the ffmpeq)
from time to time it crashed on dual record and stream with nvenc and gameplay
Nothing was on limits Vram was only little bit high at arround 99% but made no issues if i used inbuld nvenc and ffmpeq
so i was think must be something strange

But after i changed ingame the viewdistance -10% and the shadow level from 100% to 25% the issue is gone (GPU/VRAM) load same as before so it looked for me like the card get internal a bottlenec between the cuda/stream cores and the nvenc part

give it a try and reduce all gamesettings to minimal if it then works without issues you know the point of work

Edit: My card is a 1660 Super 6GB and the game is 10 Years old runed before without issues on a 950 2GB
 

Kynan383

New Member
I stream a game called osu! which is a 2D rhythm game that has such low requirements that it runs at over 2000fps while streaming and almost 3000fps off-stream. I don't think the 10% (not even) GPU usage and VRAM usage it requires is the issue.

I will give the driver a try and tell you if I get any crashes during tomorrow's stream, thanks !
 

Kynan383

New Member
I guess I'll check my VRAM usage during the stream tomorrow, but I highly doubt that's the issue considering osu! doesn't even use 10% of my GPU and you can't even turn off any kind of settings because they're already off by default to minimise frametime (we're talking about a game running at 0.3ms frametime off-stream and 0.7ms on-stream so not really anything laggy nor more optimizable).
 

Kynan383

New Member
Alright so I streamed 6 hours today and got no crashes at all, so I'm going to assume that the driver fixed it, thank you !
 

R1CH

Forum Admin
Developer
Glad you got it fixed! Thanks for the feedback, good to know the hotfix driver also helps with other games.
 
Top