Question / Help Help OBS audio cuts out during stream

mrgoochio

New Member
Hey guys, I have a problem with my stream. For some reason my audio gets garbled and starts skipping/robot voicing and I continue streaming until my viewers tell me its messed up and it fixes right away when I stop and start my stream back on. Its quite frustrating because I lose a lot of viewers when I restart and some people may leave without saying anything.

You can see the problem in this VOD if you skip to about 1hr44min. Looks like it happened right when I re-opened BF3.

This VOD shows that it starts at about 1hr40min while I'm in game.. audio just starts getting garbled so it's not when I open/close/alt tab

It doesn't only happen in BF3, here I am streaming league and it occurs at about 1hr24min25sec into the stream and eventually my sound goes completely dead at 1hr39min45sec

Anybody have any idea what's going on and how to fix it?

p.s. this occurs with both the 32bit and 64bit versions of obs using latest version from website. Also using a dual PC streaming setup with an avermedia live gamer HD cap card.
 

hilalpro

Member
make sure to disable any windows audio enhancements on both pc's playback devices and put the default format at cd quality.
also try not to go above aac 128kbps on obs's encoding settings

if this doesn't help post a log file
viewtopic.php?f=6&t=97
 

mrgoochio

New Member
hilalpro said:
make sure to disable any windows audio enhancements on both pc's playback devices and put the default format at cd quality.
also try not to go above aac 128kbps on obs's encoding settings

if this doesn't help post a log file
viewtopic.php?f=6&t=97
Set all my devices back to default / 48,000 and AAC 128kbps and it still occurs. I reinstalled xsplit to test with.. haven't had that much time logged on xsplit but xsplit seems to work fine. I prefer OBS and will post a log when I'm back on my desktop but still looking forward to some other suggestions
 

mrgoochio

New Member
Code:
Open Broadcaster Software v0.471b - 64bit ( ^ω^)
-------------------------------
CPU Name: Intel(R) Core(TM) i7 CPU       K 875  @ 2.93GHz
CPU Speed: 2933MHz
Physical Memory:  8181MB Total, 7393MB Free
stepping id: 5, model 14, family 6, type 0, extmodel 0, extfamily 0, HTT 1, logical cores 8, total cores 4
monitor 1: pos={0, 0}, size={1920, 1080}
Windows Version: 6.1 Build 7601 S
Aero is Disabled
------------------------------------------
Adapter 1
  Video Adapter: NVIDIA GeForce 7950 GX2 
  Video Adapter Dedicated Video Memory: 529522688
  Video Adapter Shared System Memory: 2130116608
------------------------------------------
Adapter 2
  Video Adapter: NVIDIA GeForce 7950 GX2 
  Video Adapter Dedicated Video Memory: 529522688
  Video Adapter Shared System Memory: 2130116608
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1920x1080
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Headphones (High Definition Audio Device)
------------------------------------------
Using auxilary audio input: Microphone (High Definition Audio Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using Slide Show
Using bitmap image
------------------------------------------
    device: VIMICRO USB PC Camera (ZC0301PLH),
    device id \\?\usb#vid_0ac8&pid_303b#6&c450ec6&0&4#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
    chosen type: RGB24, usingFourCC: false, res: 1280x960 - 1280x960, fps: 6-100, fourCC: 00000000

Using directshow input
------------------------------------------
    device: AVerMedia HD Capture C985 Bus 5,
    device id \\?\pci#ven_1af2&dev_a001&subsys_a0011af2&rev_00#4&28684531&0&0028#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{957bd672-7934-4b55-b81a-3e22b14c679a},
    chosen type: YV12, usingFourCC: true, res: 1920x1080 - 1920x1080, fps: 15-30, fourCC: 'YV12'

    device audio info - bits per sample: 16, channels: 2, samples per sec: 48000, block size: 4
Using directshow input
x264: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
x264: profile High, level 4.0
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1920, height: 1080
    preset: faster
    CBR: no
    CFR: no
    max bitrate: 4500
    buffer size: 4500
    quality: 10
------------------------------------------
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-lax-backup.justin.tv/app
bufferTime: 1400, outputRateWindowTime: 1000, dropThreshold: 1900
Total frames rendered: 216492, number of frames that lagged: 128050 (59.15%) (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%)
x264: frame I:881   Avg QP:21.69  size:236109
x264: frame P:69281 Avg QP:23.99  size: 25721
x264: frame B:146276 Avg QP:28.37  size:  5614
x264: consecutive B-frames:  5.2%  9.7% 13.0% 72.1%
x264: mb I  I16..4: 21.3% 24.7% 53.9%
x264: mb P  I16..4:  3.0%  4.1%  3.0%  P16..4: 17.5%  4.0%  1.7%  0.0%  0.0%    skip:66.6%
x264: mb B  I16..4:  0.1%  0.2%  0.4%  B16..8:  3.0%  1.3%  0.4%  direct: 1.2%  skip:93.4%  L0:37.3% L1:49.2% BI:13.5%
x264: 8x8 transform intra:37.4% inter:30.8%
x264: coded y,uvDC,uvAC intra: 66.8% 62.3% 37.0% inter: 4.2% 4.2% 0.8%
x264: i16 v,h,dc,p: 31% 31% 27% 12%
x264: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13% 15% 29%  7%  7%  7%  8%  6%  8%
x264: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 18% 19%  8%  9%  8%  9%  7%  8%
x264: i8c dc,h,v,p: 58% 21% 14%  7%
x264: Weighted P-Frames: Y:0.0% UV:0.0%
x264: ref P L0: 81.0% 19.0%
x264: ref B L0: 83.7% 16.3%
x264: ref B L1: 93.7%  6.3%
x264: kb/s:2936.09
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1920x1080
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Headphones (High Definition Audio Device)
------------------------------------------
Using auxilary audio input: Microphone (High Definition Audio Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using Slide Show
Using bitmap image
------------------------------------------
    device: VIMICRO USB PC Camera (ZC0301PLH),
    device id \\?\usb#vid_0ac8&pid_303b#6&c450ec6&0&4#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
    chosen type: RGB24, usingFourCC: false, res: 1280x960 - 1280x960, fps: 6-100, fourCC: 00000000

Using directshow input
------------------------------------------
    device: AVerMedia HD Capture C985 Bus 5,
    device id \\?\pci#ven_1af2&dev_a001&subsys_a0011af2&rev_00#4&28684531&0&0028#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{957bd672-7934-4b55-b81a-3e22b14c679a},
    chosen type: YV12, usingFourCC: true, res: 1920x1080 - 1920x1080, fps: 15-30, fourCC: 'YV12'

    device audio info - bits per sample: 16, channels: 2, samples per sec: 48000, block size: 4
Using directshow input
x264: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
x264: profile High, level 4.0
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1920, height: 1080
    preset: faster
    CBR: no
    CFR: no
    max bitrate: 4500
    buffer size: 4500
    quality: 10
------------------------------------------
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-lax-backup.justin.tv/app
bufferTime: 1405, outputRateWindowTime: 1000, dropThreshold: 1905
Total frames rendered: 3522, number of frames that lagged: 1967 (55.85%) (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%)
x264: frame I:16    Avg QP:18.46  size:221465
x264: frame P:1028  Avg QP:20.66  size: 15744
x264: frame B:2424  Avg QP:22.72  size:  1913
x264: consecutive B-frames:  4.4%  4.6%  7.6% 83.4%
x264: mb I  I16..4: 29.6% 27.3% 43.1%
x264: mb P  I16..4:  3.3%  7.2%  2.0%  P16..4: 15.4%  2.2%  1.0%  0.0%  0.0%    skip:68.9%
x264: mb B  I16..4:  0.1%  0.1%  0.2%  B16..8:  1.4%  0.4%  0.1%  direct: 1.1%  skip:96.5%  L0:39.5% L1:51.1% BI: 9.3%
x264: 8x8 transform intra:53.0% inter:34.3%
x264: coded y,uvDC,uvAC intra: 65.9% 22.7% 9.2% inter: 1.9% 4.0% 0.2%
x264: i16 v,h,dc,p: 63% 22% 11%  4%
x264: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 39% 16% 27%  3%  3%  3%  3%  3%  4%
x264: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 23% 16%  7%  8%  7%  8%  6%  7%
x264: i8c dc,h,v,p: 81% 10%  7%  2%
x264: Weighted P-Frames: Y:0.1% UV:0.0%
x264: ref P L0: 84.8% 15.2%
x264: ref B L0: 84.3% 15.7%
x264: ref B L1: 94.3%  5.7%
x264: kb/s:1600.40
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 34.661 ms] [avg calls per frame: 1] [children: 98.7%] [unaccounted: 1.34%]
| scene->Preprocess - [30.1%] [avg time: 10.438 ms] [avg calls per frame: 1]
| video encoding and uploading - [68.5%] [avg time: 23.757 ms] [avg calls per frame: 1] [children: 68.5%] [unaccounted: 0.0548%]
| | CopyResource - [60.1%] [avg time: 20.845 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.075%] [avg time: 0.026 ms] [avg calls per frame: 0]
| | call to encoder - [8.23%] [avg time: 2.851 ms] [avg calls per frame: 0]
| | sending stuff out - [0.0462%] [avg time: 0.016 ms] [avg calls per frame: 0]
==============================================================
 

hilalpro

Member
you're getting alot of lagged frames especially for a dual setup.

the preset should be veryfast lower the fps by 5. and give obs.exe a high priority from task manager
 

mrgoochio

New Member
I know I'm getting a lot of lagged frames but the stream quality looks perfectly fine not sure why that is. CPU usage doesn't hit anywhere near max throughout the stream even on Faster. Obs already is set to a high priority within the program. Still doesn't explain why audio is cutting out though.. so far no problems with xsplit
 

hilalpro

Member
threads priority class is different from process priority, cpu usage doesn't really matter if you can't get frames time down enough to stabilize at 30fps.
analyzing your vod the fps jitter all over the place and the sync offset time is really high sometimes, that's the issue.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
I unfortunately don't have a solid answer for your rather unusual situation at the moment, I doubt crossfire is involved as that's more a graphics issue than a sound issue, and as long as your framerate isn't super low or something I doubt it would have an effect on sound. I don't know for sure
 

Grimio

Member
Jim said:
I unfortunately don't have a solid answer for your rather unusual situation at the moment, I doubt crossfire is involved as that's more a graphics issue than a sound issue, and as long as your framerate isn't super low or something I doubt it would have an effect on sound. I don't know for sure
He has over 50% lagged frames, I suspect it's because of crossfire(the lagged frames part, don't know if it will help with the sound).
 

mrgoochio

New Member
The card in the computer is an old card leftover that I used to build the streaming rig. Its an nvidia geforce 7950gx2 which is a single card with dual gpu's that runs in SLI. My very old setup ran dual 7950gx2's for a quad SLI setup. This stream PC is using 1 card. IIRC, the SLI is already disabled. I changed OBS preset to very fast and still experienced about 30% lagged frames. I tried streaming in xsplit and observing the VODs, there seems to be significantly less jitter. I'm still testing the audio problem as its a bit tough since it takes multiple hours of streaming before the audio starts to get garbled (usually around 1hr45min before it starts. I will be experimenting with enabling/disabling SLI to see about the lagged frames in OBS.
 

mrgoochio

New Member
Enabling and disabling SLI still results in massive lagged frames. I don't know why I'm having this issue.. Audio problem still remains and now I have two problems on my hands! Any ideas?
 

hilalpro

Member
how is your dual streaming setup exactly ?
when adding the video device do you output the audio to the stream or to desktop ?
 

mrgoochio

New Member
Cap card in streaming computer. HDMI cord from gaming computer's HDMI slot on primary gfx card (gaming computer runs dual gtx 670's in SLI) to the HDMI in on the cap card. Gaming PC is connected to gaming monitor via DVI. Gaming computer runs at 120hz with the screen cloned for the cap card. My audio passes through the HDMI with the "listen to this device" method. The video device in OBS has audio outputting to the stream. Should it be to the stream computer's desktop?
 

Grimio

Member
Okay, there is one problem you will have if your capture card can't do 120Hz as well. When downscaling refresh rate(even something as simple as 120Hz->60Hz) you will probably experience extreme screen tearing, and I don't know how to solve it(neither does official avermedia support). The only way is to use the exact same refresh rate on both screens.
 

mrgoochio

New Member
The screen tearing is minimal in my experience streaming for the last few months. It's pretty obvious if I'm streaming video playback or sometimes when playing FPS, but for games like league, sc2, or diablo type games its no problem at all. Screen tearing is just inherent when downscaling 120hz->60hz as you said and not really an issue I have with my stream. I wonder if the "lagged frames" come from the downscaling though? Audio cutting in and out and eventually dying is my #1 concern right now, then the frame lag is second. Screen tearing is acceptable and theres not much I can do about it aside from going back to 60Hz on my gaming PC (which I don't plan on doing)
 

hilalpro

Member
if you can, disable windows audio enhancements effects on all the involved playback devices for gaming pc / streaming pc including stereo mix from the recording devices and force a 44100k sampling rate for whatever devices that allows it.


and then re add the capture card to obs with no sound add the audio separately from settings >audio pick the digital device for your capture card.
 

mrgoochio

New Member
I have already disabled windows audio enhancement effects per your advice and now forced 44100k sampling rate (previously forced 48000k).

My streaming PC does not show any digital devices for the capture card even though the capture card is installed there. The Avermedia Live Gamer HD shows up in my gaming PC in the playback tab so I'm not sure how I can add this to OBS.
 
Top