Question / Help Can't switch scenes while streaming DJ setup ( Encoder error, drops stream)

Anihlist

New Member
Hi,

Hopefully someone can help me. I have my issue somewhat narrowed down but I can't figure a solution. First I'll explain my setup. I'm running a windows PC with more than enough power in every aspect. I'm running audio from a Rane 72 mixer from it's main out to inputs 1 & 2 (front) of a focusrite 18i8 interface. the audio is then routed to OBS from the interface. This setup works fine other than the fact that I get that encoder error and my stream drops as soon as I switch scenes to any other scene with the audio input capture on it. I've posted a pic of the actual error and another to a picture of the windows microphone privacy settings. If I have the toggle set to off I can stream and switch scenes just fine but then I cannot receive the audio signal. I believe this has something to do with the fact that obs is trying to use the disabled mic from my cam instead of the audio I set it to receive. It's possible that assumption is wrong but I doubt it. I had the same setup working before just fine with a Rane 68 mixer but since then there have been multiple updates to serato, obs, windows, 72 firmware etc...Pleaase help me to be able to switch scenes again!?

Here is the log file after I replicated the issue...Thanks in advance

Hhttps://obsproject.com/logs/WSKEeWi6ZjVoOmX3opefully
 

Attachments

  • Encoding error.JPG
    Encoding error.JPG
    13.5 KB · Views: 37
  • Mic Privacy settings.JPG
    Mic Privacy settings.JPG
    64.7 KB · Views: 36

FerretBomb

Active Member
Looks like your logfile link got a bit mangled there, in the middle of the word 'Hopefully'.

9:27:17.980: error: Input contains (near) NaN/+-Inf
19:27:17.980: [FFmpeg aac encoder: 'simple_aac'] avcodec_encode_audio2 failed: Invalid argument
19:27:17.980: Error encoding with encoder 'simple_aac'
19:27:17.980: [rtmp stream: 'simple_stream'] Encoder error, disconnecting
Interesting. It does look like one of your sources is doing something it REALLY shouldn't, but doesn't list which one.
Does this only happen when swapping to your Serato scene? Could you try making two new blank scenes and switch back and forth between them to test if this is a global issue, or related to one of your in-scene sources?

I'd assume that it's something about your 'Input Audio Capture' source going screwy, at first blush.
You can also try installing the third-party CoreAudio AAC encoder and see if that might play better with things. Here's a quick how-to for that (and you'll get better quality audio to boot):
 

Anihlist

New Member
Good catch on the link...Not sure how that happened...and thanks for responding.. It only occurs when switching to any scene containing my audio input capture. I've tried to start from a clean slate twice and it reproduces the same way every time. but yes if there is no audio input capture, scene switching is fine.
 

FerretBomb

Active Member
Good catch on the link...Not sure how that happened...and thanks for responding.. It only occurs when switching to any scene containing my audio input capture. I've tried to start from a clean slate twice and it reproduces the same way every time. but yes if there is no audio input capture, scene switching is fine.
Try installing CoreAudio. It may fix the issue, or at least give more detailed information. But yeah, from the error I'm guessing that your device is sending something along that OBS really dislikes/can't cope with (a null in something that should never be null, or a non-number value in what should be a numeric register).
You might also try installing Voicemeeter Banana, and use it as a buffer layer between the physical device and OBS via routing the input to a virtual device. Possible that VM can deal with whatever the device is sending that's tripping OBS up.
 

carlmmii

Active Member
Code:
19:25:19.528: [DShow Device: 'Video Capture Device'] settings updated: 
19:25:19.528:     video device: Logi Capture
19:25:19.528:     video path: @device:sw:{860BB310-5D01-11D0-BD3B-00A0C911CE86}\{4A2FEA90-B0A0-438E-8BC3-D84157660D0A}
19:25:19.528:     resolution: 1920x1080
19:25:19.528:     flip: 0
19:25:19.528:     fps: 30.00 (interval: 333333)
19:25:19.528:     format: NV12
19:25:19.754:     using video device audio: no
19:25:19.754:     audio device: Focusrite USB (Focusrite USB Audio)
19:25:19.754:     sample rate: 44100
19:25:19.754:     channels: 2
19:25:19.754:     audio type: Capture

Code:
19:25:43.795: [DShow Device: 'Video Capture Device'] settings updated: 
19:25:43.795:     video device: c922 Pro Stream Webcam
19:25:43.795:     video path: \\?\usb#vid_046d&pid_085c&mi_00#9&33109b08&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global
19:25:43.795:     resolution: 1920x1080
19:25:43.795:     flip: 0
19:25:43.795:     fps: 30.00 (interval: 333333)
19:25:43.795:     format: MJPEG
19:25:43.894:     using video device audio: no
19:25:43.894:     audio device: Focusrite USB (Focusrite USB Audio)
19:25:43.894:     sample rate: 44100
19:25:43.894:     channels: 2
19:25:43.894:     audio type: Capture

Don't route your focusrite through cameras. Instead, add an Audio Input Source for your scenes as need (or add it globally in the Settings->Audio section).
 

Anihlist

New Member
Code:
19:25:19.528: [DShow Device: 'Video Capture Device'] settings updated: 
19:25:19.528:     video device: Logi Capture
19:25:19.528:     video path: @device:sw:{860BB310-5D01-11D0-BD3B-00A0C911CE86}\{4A2FEA90-B0A0-438E-8BC3-D84157660D0A}
19:25:19.528:     resolution: 1920x1080
19:25:19.528:     flip: 0
19:25:19.528:     fps: 30.00 (interval: 333333)
19:25:19.528:     format: NV12
19:25:19.754:     using video device audio: no
19:25:19.754:     audio device: Focusrite USB (Focusrite USB Audio)
19:25:19.754:     sample rate: 44100
19:25:19.754:     channels: 2
19:25:19.754:     audio type: Capture

Code:
19:25:43.795: [DShow Device: 'Video Capture Device'] settings updated: 
19:25:43.795:     video device: c922 Pro Stream Webcam
19:25:43.795:     video path: \\?\usb#vid_046d&pid_085c&mi_00#9&33109b08&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global
19:25:43.795:     resolution: 1920x1080
19:25:43.795:     flip: 0
19:25:43.795:     fps: 30.00 (interval: 333333)
19:25:43.795:     format: MJPEG
19:25:43.894:     using video device audio: no
19:25:43.894:     audio device: Focusrite USB (Focusrite USB Audio)
19:25:43.894:     sample rate: 44100
19:25:43.894:     channels: 2
19:25:43.894:     audio type: Capture

Don't route your focusrite through cameras. Instead, add an Audio Input Source for your scenes as need (or add it globally in the Settings->Audio section).

I'm sorry but I don't understand what you're saying. I am receiving my audio signal into obs with an audio input capture on the scene.
 
Top