Question / Help An encoder error occurred while streaming

ZenWithBen

New Member
Hi there! I was hoping to maybe get some help. My issue started yesterday and out of nowhere every time i switch a scene while streaming it would end my stream, and then it would say stopping recording even though I was not recording, it would give me an error notice that said "an encoder error occurred while streaming" and then obs would freeze up and I would have to close it out using task manger. I never had any problems with OBS until now. This came out of nowhere.

https://obsproject.com/logs/HFbqTPTCHlGNnWu0
 

ZenWithBen

New Member

Well first off thank you so much! That absolutely worked and I appreciate your help. Second, why did that work? Why did that happen when everything has been working fine? I guess I don't understand why I needed to download that encoder to fix something that was working fine and all of a sudden broke for what reason.
 

R1CH

Forum Admin
Developer
The default encoder was failing because somehow an invalid audio sample was given to it:
Code:
12:27:00 PM.019: error:   Input contains (near) NaN/+-Inf
12:27:00 PM.019: [FFmpeg aac encoder: 'Track1'] avcodec_encode_audio2 failed: Invalid argument

The CoreAudio codec seems to handle this case without erroring out the whole encoder. We're not sure yet what causes the NaN issue.
 

LTGonline

New Member
The default encoder was failing because somehow an invalid audio sample was given to it:
Code:
12:27:00 PM.019: error:   Input contains (near) NaN/+-Inf
12:27:00 PM.019: [FFmpeg aac encoder: 'Track1'] avcodec_encode_audio2 failed: Invalid argument

The CoreAudio codec seems to handle this case without erroring out the whole encoder. We're not sure yet what causes the NaN issue.
Hey R1CH, I am running into the same issue mostly when I play assassins creed origins and lego DC supervillains. Same encoder error message. I followed the above and it reflected in my logs but unfortunately, the errors keep coming.
 

LTGonline

New Member
Hey R1CH, I am running into the same issue mostly when I play assassins creed origins and lego DC supervillains. Same encoder error message. I followed the above and it reflected in my logs but unfortunately, the errors keep coming.
Nevermind, problem solved.
 

FrettyJay

New Member
Hi there! I was hoping to maybe get some help. My issue started yesterday and out of nowhere every time i switch a scene while streaming it would end my stream, and then it would say stopping recording even though I was not recording, it would give me an error notice that said "an encoder error occurred while streaming" and then obs would freeze up and I would have to close it out using task manger. I never had any problems with OBS until now. This came out of nowhere.

https://obsproject.com/logs/HFbqTPTCHlGNnWu0
Hey I was having the same issue with my laptop but my laptop keeps saying that my charger keeps plugging and unplugging itself, are you having that issue as well?
 
Top