Bug Report [Audio] Random cuts and distortion using Saffire Pro 40

lorcas

New Member
Hello,

I was looking for a replacement to XSplit and found this. I like the program a lot, allows me to stream without in game lag or frame drops. There is only one problem that keeps me from streaming at all which is audio problems with my Focusrite Saffire Pro 40 audio interface.

I currently have a few problems:
- Audio clicks and cuts, this isn't reflected on stream.
- Audio starts distorting heavily and usually stays until I close all programs using audio. This is also not reflected on stream.
- Mic distortion which happens on stream and in other programs (I use TS3).

All of these only happens when I use the Saffire audio interface as default input/output device in windows. In this stream, I switch my default output to my onboard soundcard. The microphone still gets the distortion (see 14:00) while the sound I get in my headphones is perfect throughout. Since I changed the default output mid stream, the stream gets no audio other than my mic. I did a test after using my onboard soundcard as output and my Saffire as default input and didn't see any issues both locally and on stream (i listened to myself talk randomly while gaming for 17 minutes... quite painful).

Anyway, there seems to be an issue when I start the stream while using both input and output on my Saffire audio interface. I don't get any issues when only the input is on the Saffire audio interface.

Here's the logs that I have. I switched the windows default audio mid stream but that doesn't show in the logs so you'll have to trust me (or watch me for 18 minutes to see that I do it on stream) :P
Code:
Open Broadcaster Software v0.466a - 32bit (´・ω・`)
-------------------------------
CPU Name: Intel(R) Core(TM) i7 CPU         920  @ 2.67GHz
CPU Speed: 2672MHz
Physical Memory:  4095MB Total, 3801MB Free
stepping id: 5, model 10, family 6, type 0, extmodel 0, extfamily 0, HTT 1, logical cores 8, total cores 4
Windows Version: 6.1 Build 7600 
Aero is Disabled
------------------------------------------
Adapter 1
  Video Adapter: ATI Radeon HD 4870
  Video Adapter Dedicated Video Memory: 1064308736
  Video Adapter Shared System Memory: 2948132864
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: Saffire Audio (Saffire Audio)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
------------------------------------------
    device: Logitech HD Pro Webcam C910,
    device id \\?\usb#vid_046d&pid_0821&mi_02#7&283de09f&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: RGB24, usingFourCC: false, res: 1280x960 - 1280x960, fps: 5-15, fourCC: 00000000

Using directshow input
Using Window Capture
Using bitmap image
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    max bitrate: 2500
    buffer size: 2500
    quality: 10
------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using graphics capture
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using graphics capture
------------------------------------------
    device: Logitech HD Pro Webcam C910,
    device id \\?\usb#vid_046d&pid_0821&mi_02#7&283de09f&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: RGB24, usingFourCC: false, res: 1280x960 - 1280x960, fps: 5-15, fourCC: 00000000

Using directshow input
Using bitmap image
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
------------------------------------------
    device: Logitech HD Pro Webcam C910,
    device id \\?\usb#vid_046d&pid_0821&mi_02#7&283de09f&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: RGB24, usingFourCC: false, res: 1280x960 - 1280x960, fps: 5-15, fourCC: 00000000

Using directshow input
Using Window Capture
Using bitmap image
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using Monitor Capture
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using text output
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using Monitor Capture
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using text output
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
------------------------------------------
    device: Logitech HD Pro Webcam C910,
    device id \\?\usb#vid_046d&pid_0821&mi_02#7&283de09f&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: RGB24, usingFourCC: false, res: 1280x960 - 1280x960, fps: 5-15, fourCC: 00000000

Using directshow input
Using Window Capture
Using bitmap image
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using graphics capture
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using graphics capture
------------------------------------------
    device: Logitech HD Pro Webcam C910,
    device id \\?\usb#vid_046d&pid_0821&mi_02#7&283de09f&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: RGB24, usingFourCC: false, res: 1280x960 - 1280x960, fps: 5-15, fourCC: 00000000

Using directshow input
Using bitmap image
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using Monitor Capture
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using text output
Total frames rendered: 12588, number of frames that lagged: 39 (0.31%) (it's okay for some frames to lag)
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: Saffire Audio (Saffire Audio)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using text output
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    max bitrate: 2500
    buffer size: 2500
    quality: 10
------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
------------------------------------------
    device: Logitech HD Pro Webcam C910,
    device id \\?\usb#vid_046d&pid_0821&mi_02#7&283de09f&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: RGB24, usingFourCC: false, res: 1280x960 - 1280x960, fps: 5-15, fourCC: 00000000

Using directshow input
Using Window Capture
Using bitmap image
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-iad.justin.tv/app
bufferTime: 2269, outputRateWindowTime: 1000, dropThreshold: 2769
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using text output
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using Monitor Capture
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
------------------------------------------
    device: Logitech HD Pro Webcam C910,
    device id \\?\usb#vid_046d&pid_0821&mi_02#7&283de09f&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: RGB24, usingFourCC: false, res: 1280x960 - 1280x960, fps: 5-15, fourCC: 00000000

Using directshow input
Using Window Capture
Using bitmap image
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using graphics capture
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
------------------------------------------
    device: Logitech HD Pro Webcam C910,
    device id \\?\usb#vid_046d&pid_0821&mi_02#7&283de09f&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: RGB24, usingFourCC: false, res: 1280x960 - 1280x960, fps: 5-15, fourCC: 00000000

Using directshow input
Using Window Capture
Using bitmap image
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using graphics capture
SharedTexCapture hooked
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
------------------------------------------
    device: Logitech HD Pro Webcam C910,
    device id \\?\usb#vid_046d&pid_0821&mi_02#7&283de09f&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: RGB24, usingFourCC: false, res: 1280x960 - 1280x960, fps: 5-15, fourCC: 00000000

Using directshow input
Using Window Capture
Using bitmap image
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using graphics capture
SharedTexCapture hooked
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using graphics capture
------------------------------------------
    device: Logitech HD Pro Webcam C910,
    device id \\?\usb#vid_046d&pid_0821&mi_02#7&283de09f&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: RGB24, usingFourCC: false, res: 1280x960 - 1280x960, fps: 5-15, fourCC: 00000000

Using directshow input
Using bitmap image
SharedTexCapture hooked
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
------------------------------------------
    device: Logitech HD Pro Webcam C910,
    device id \\?\usb#vid_046d&pid_0821&mi_02#7&283de09f&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: RGB24, usingFourCC: false, res: 1280x960 - 1280x960, fps: 5-15, fourCC: 00000000

Using directshow input
Using Window Capture
Using bitmap image
Total frames rendered: 13999, number of frames that lagged: 498 (3.56%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to bStopping
Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: Saffire Audio (Saffire Audio)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
------------------------------------------
    device: Logitech HD Pro Webcam C910,
    device id \\?\usb#vid_046d&pid_0821&mi_02#7&283de09f&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: RGB24, usingFourCC: false, res: 1280x960 - 1280x960, fps: 5-15, fourCC: 00000000

Using directshow input
Using Window Capture
Using bitmap image
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    max bitrate: 2500
    buffer size: 2500
    quality: 10
------------------------------------------
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-iad.justin.tv/app
bufferTime: 2418, outputRateWindowTime: 1000, dropThreshold: 2918
Total frames rendered: 2151, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to bStopping
Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 8.199 ms] [avg calls per frame: 1] [children: 88.8%] [unaccounted: 11.2%]
| scene->Preprocess - [49.2%] [avg time: 4.033 ms] [avg calls per frame: 1]
| video encoding and uploading - [39.7%] [avg time: 3.251 ms] [avg calls per frame: 1] [children: 16.6%] [unaccounted: 23%]
| | CopyResource - [0.183%] [avg time: 0.015 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.061%] [avg time: 0.005 ms] [avg calls per frame: 0]
| | call to encoder - [16.3%] [avg time: 1.334 ms] [avg calls per frame: 0]
| | sending stuff out - [0.11%] [avg time: 0.009 ms] [avg calls per frame: 0]
==============================================================

Thanks for your help and time developing this kick ass software.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
I am not entirely sure if I've heard of any others with this specific problem before. Do you use any other apps that access the mic?
 

lorcas

New Member
The only other program using the mic is Teamspeak 3 which I use to communicate with my friends. I guess I could try without it and see if it still happens.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Yea, I would be kind of curious to know or not. I'm not entirely sure why this would be happening as I'm just doing nothing but reading the audio
 

lorcas

New Member
Alright so I gave it another go without TS3. The only programs reading from my mic was OBS and Windows itself.

I still get the same thing. In the short streaming session I did I got the clicks and audio cuts as well as local distortion but the stream audio looked fine. Slight clicking but no where near what I experience locally. One thing I noticed though with the clicking I get in my headphones is that whenever I do a preview stream or start stream (aka I turn on the preview window), I start getting the audio defects. When I stop it but leave OBS opened, audio goes back to normal. I've yet to get the distortion lasting until I close all applications again (perhaps process was hung when it happened). Anyway, perhaps the mic distortion on stream was caused by TS3, but the rest of the symptoms are still there.

Another thing I noticed when I get the audio cuts is that OBS freezes as a whole. Preview screen stops and the meters on mic/headphones freeze and resumes when audio starts again. These cuts are usually 1-2 seconds long.

Hope this helps. Let me know if you want me to run more tests.

ps: I don't think I provided this, but I am running the latest drivers for the audio interface.

edit: link to stream test... but like I said, you won't hear much as nothing really showed up on stream this time.

edit2: Noticed microphone cuts at 2:08 until 2:45 when the game was loading. The game was loading at that point but the processors and general computer resources weren't dramatically overused (well below 60% on everything). At that time I had audio distortion locally.
 
Top