Unable do stream in OBS 27+

Brayman4k

New Member
Hi! Everytime I update my OBS from 26.1.1 (That always worked really well) to the new 27 version (Including the new RC3), my stream ends randomly and I'm not able to start streaming again if I don't restart OBS.

Here's the LOG from the errors:

22:43:57.925: Last log entry repeated for 2 more lines
22:43:57.925: error: Input contains (near) NaN/+-Inf
22:43:57.925: [FFmpeg aac encoder: 'adv_archive_aac'] avcodec_encode_audio2 failed: Invalid argument
22:43:57.925: Error encoding with encoder 'adv_archive_aac'
22:43:57.926: [rtmp stream: 'adv_stream'] Encoder error, disconnecting
22:43:57.926: socket_thread_windows: Normal exit
22:43:57.926: error: Input contains (near) NaN/+-Inf
22:43:57.926: [FFmpeg aac encoder: 'adv_stream_aac'] avcodec_encode_audio2 failed: Invalid argument
22:43:57.926: Error encoding with encoder 'adv_stream_aac'
22:43:57.926: error: Input contains (near) NaN/+-Inf
22:43:57.926: [FFmpeg aac encoder: 'Track2'] avcodec_encode_audio2 failed: Invalid argument
22:43:57.926: Error encoding with encoder 'Track2'
22:43:57.929: Output 'adv_stream': stopping
22:43:57.929: Output 'adv_stream': Total frames output: 684666
22:43:57.929: Output 'adv_stream': Total drawn frames: 684791 (684808 attempted)
22:43:57.929: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 17 (0.0%)
22:43:57.931: stream_stopped_event
22:43:57.931: enabled: 0, is_streaming 0, streaming_output_enabled 1, streaming_transcripts_enabled 0, is_streaming_relevant: 0, is_recording 1, recording_output_enabled 1, recording_transcripts_enabled 0, is_recording_relevant: 1, is_virtualcam_on 0, virtualcam_transcripts_enabled 0, is_virtualcam_relevant 0, is_preview_open 0, is_text_output_relevant 0, scene_collection_name: , source: 'HyperX QuadCast', equal_settings 1, do_captioning 0
22:43:57.931: settings changed, disabling captioning
22:43:57.931: caption_output_writer_loop streaming done
22:43:57.938: ==== Streaming Stop ================================================
22:43:57.954: [ffmpeg muxer: 'adv_file_output'] Output of file 'A:/Streams/2021-09-22 19-33-44.mkv' stopped
22:43:57.954: Output 'adv_file_output': stopping
22:43:57.954: Output 'adv_file_output': Total frames output: 684787
22:43:57.954: Output 'adv_file_output': Total drawn frames: 684790 (684807 attempted)
22:43:57.954: Output 'adv_file_output': Number of lagged frames due to rendering lag/stalls: 17 (0.0%)
22:43:57.956: Video stopped, number of skipped frames due to encoding lag: 17/684805 (0.0%)
22:43:57.968: ==== Recording Stop ================================================
22:43:57.976: error: Input contains (near) NaN/+-Inf
22:43:57.976: [FFmpeg aac encoder: 'Track1'] avcodec_encode_audio2 failed: Invalid argument
22:43:57.976: Error encoding with encoder 'Track1'
22:44:11.726: recording_stopped_event
22:44:11.726: enabled: 0, is_streaming 0, streaming_output_enabled 1, streaming_transcripts_enabled 0, is_streaming_relevant: 0, is_recording 0, recording_output_enabled 1, recording_transcripts_enabled 0, is_recording_relevant: 0, is_virtualcam_on 0, virtualcam_transcripts_enabled 0, is_virtualcam_relevant 0, is_preview_open 0, is_text_output_relevant 0, scene_collection_name: , source: 'HyperX QuadCast', equal_settings 1, do_captioning 0
22:44:11.726: settings changed, disabling captioning
22:44:11.727: caption_output_writer_loop recording done
 

FerretBomb

Active Member
It looks like the AAC audio encoder is failing for some reason. You haven't included a complete logfile unfortunately, which includes important diagnostic information (like if you're using ffmpeg output with some honked-up settings that can make AAC crash). I'd recommend enabling the CoreAudio AAC encoder, if you haven't. Here are instructions on how to do that:

 

Brayman4k

New Member
It looks like the AAC audio encoder is failing for some reason. You haven't included a complete logfile unfortunately, which includes important diagnostic information (like if you're using ffmpeg output with some honked-up settings that can make AAC crash). I'd recommend enabling the CoreAudio AAC encoder, if you haven't. Here are instructions on how to do that:


Hi! Thanks for the help, my OBS stopped crashing, but for some reason my audio is muting randomly during my streams after installing the AAC encoder.

I'm attaching the full log of my last stream that my audio bugged.
 

Attachments

  • 2021-09-29 16-26-38.txt
    174.3 KB · Views: 15

FerretBomb

Active Member
From that log, it looks like Voicemeeter had some issues.
Unfortunately due to the amount of Lioranboard TSL spam it's extremely hard to read that log to tell what's really going on, or if another issue cropped up.
 
Top