encoder error

KucingPucing

New Member
Hello,
ive been getting encoder errors in my recording and live streaming session,
the error pops up irregularly maybe around 3-4 sessions only 1 sessions will create this error,

here is my latest log file :
log file
the error in the file shows :
17:58:37.962: error: Input contains (near) NaN/+-Inf
17:58:37.962: [FFmpeg aac encoder: 'simple_aac'] avcodec_encode_audio2 failed: Invalid argument
17:58:37.962: Error encoding with encoder 'simple_aac'

is this caused by audio aac encoder? if i install itunes will it fix the problem?
or is it my gpu encoder nvenc?
since the OBS analyzer points up to my GPU :

D0304042-1680-45A1-819E-CBB2B3DBF444.jpeg

ive switched from advance mode to simple mode (without changing any option in simple mode) without any success (still get the errors).

thank you.
 

PaiSand

Active Member
No need to install itunes just for the aac encoder. Read the guide for it and only install what it says to install from the itunes installer.

Anyway, the error points to an error on the video driver, not the audio. Verify you have the latest nvidia driver.
 
Last edited:

KucingPucing

New Member
No need to install itunes just for the aac encoder. Read the guide for it and only install what it says to install from the itunes installer.

Anyway, the error points to an error on the video driver, not the audio. Verify you have the latest nvidia driver.
yes i do have latest deiver installed, if it is a GPU error like it said on analyzer, why the error points to aac encoder? or is there any error lines in the log which refers to GPU error?
 

koala

Active Member
This is from your log:
Code:
17:58:37.962: error:   Input contains (near) NaN/+-Inf
17:58:37.962: [FFmpeg aac encoder: 'simple_aac'] avcodec_encode_audio2 failed: Invalid argument
17:58:37.962: Error encoding with encoder 'simple_aac'
17:58:37.962: [rtmp stream: 'simple_stream'] Encoder error, disconnecting
This is clearly an audio stream error - the ffmpeg aac encoder (aac is audio!) gets invalid audio data, chokes on that and terminates with an error. If the OBS logfile analyzer isn't seeing this as audio issue, it's a bug in the analyzer.

Your invalid audio data comes from some defective media you import as one of your sources. Identify the media file or web source and repair/replace that file. Using the CoreAudio AAC encoder might also help as workaround, because it doesn't terminate encoding on invalid data, it seems it just skips over it.
 

KucingPucing

New Member
This is from your log:
Code:
17:58:37.962: error:   Input contains (near) NaN/+-Inf
17:58:37.962: [FFmpeg aac encoder: 'simple_aac'] avcodec_encode_audio2 failed: Invalid argument
17:58:37.962: Error encoding with encoder 'simple_aac'
17:58:37.962: [rtmp stream: 'simple_stream'] Encoder error, disconnecting
This is clearly an audio stream error - the ffmpeg aac encoder (aac is audio!) gets invalid audio data, chokes on that and terminates with an error. If the OBS logfile analyzer isn't seeing this as audio issue, it's a bug in the analyzer.

Your invalid audio data comes from some defective media you import as one of your sources. Identify the media file or web source and repair/replace that file. Using the CoreAudio AAC encoder might also help as workaround, because it doesn't terminate encoding on invalid data, it seems it just skips over it.
i installed old version of itunes yesterday for the aac encoder and did 1 live stream without encoder error, i really hope it fix the problem.
 
Top