Bug Report Progressive audio delay [SOLVED]

MisterCeen

New Member
I have never had any problems with OBS up until recently. I think it was when I updated to, uhm, 0.471a where I noticed that the audio actually got delayed over time, on the stream. So I made sure to check every video after that, to see if the problem persisted, which it did. The delay is not only for a couple of seconds, it remains and gets worse the longer you stream, the offset gets worse and worse, gradually.

I'm not sure if something changed on my PC after I installed 0.471a. Because now when I'm trying earlier versions, I either get the same problem, or I get this error message (with earlier versions like 0.466a): http://i.imgur.com/lNs3Iye.jpg

Like I said, this problem only occurred when I updated to 0.471a, and the issue remains on every version now. I'm clueless.

I know my setup is outdated, but here's the log info from my latest streams. I was trying out different settings (fps, quality, downscale etc.) So none of these settings are the settings that I usually use.. But yeah, the problem remains. A growing audio delay.
Code:
Open Broadcaster Software v0.472b - 32bit (´・ω・`)
-------------------------------
CPU Name: AMD Phenom(tm) 9850 Quad-Core Processor
CPU Speed: 2499MHz
Physical Memory:  4095MB Total, 4095MB Free
stepping id: 3, model 2, family 15, type 0, extmodel 8, extfamily 0, HTT 1, logical cores 4, 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 9600 GSO
  Video Adapter Dedicated Video Memory: 1581842432
  Video Adapter Shared System Memory: 2683908096
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 960x540
------------------------------------------
Loading up D3D10...
Playback device {0.0.0.00000000}.{a1026aa7-ccf6-4d03-bef9-b42b356a126c}
------------------------------------------
Using desktop audio input: Speakers (Realtek High Definition Audio)
------------------------------------------
Using auxilary audio input: Microphone (Realtek High Definition Audio)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using Monitor Capture
x264: using cpu capabilities: MMX2 SSE2Fast FastShuffle SSEMisalign LZCNT
x264: profile High, level 3.1
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 960, height: 540
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 900
    buffer size: 900
    quality: 10
------------------------------------------
Bad timestamp detected, syncing audio to video time
Total frames rendered: 146, number of frames that lagged: 2 (1.37%) (it's okay for some frames to lag)
x264: frame I:1     Avg QP:19.76  size: 36655
x264: frame P:27    Avg QP:24.02  size:   197
x264: frame B:81    Avg QP:31.75  size:    67
x264: consecutive B-frames:  0.9%  0.0%  0.0% 99.1%
x264: mb I  I16..4: 31.6% 45.0% 23.4%
x264: mb P  I16..4:  0.8%  0.1%  0.0%  P16..4:  0.5%  0.0%  0.0%  0.0%  0.0%    skip:98.6%
x264: mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.2%  0.0%  0.0%  direct: 0.1%  skip:99.7%  L0:50.3% L1:48.2% BI: 1.5%
x264: 8x8 transform intra:37.3% inter:2.9%
x264: coded y,uvDC,uvAC intra: 58.8% 12.3% 10.0% inter: 0.1% 0.0% 0.0%
x264: i16 v,h,dc,p: 19% 76%  5%  1%
x264: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  7% 14% 62%  2%  3%  1%  1%  2%  7%
x264: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 50% 13%  1%  3%  2%  2%  1%  4%
x264: i8c dc,h,v,p: 71% 21%  7%  0%
x264: Weighted P-Frames: Y:0.0% UV:0.0%
x264: kb/s:104.32
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 960x540
------------------------------------------
Loading up D3D10...
Playback device {0.0.0.00000000}.{a1026aa7-ccf6-4d03-bef9-b42b356a126c}
------------------------------------------
Using desktop audio input: Speakers (Realtek High Definition Audio)
------------------------------------------
Using auxilary audio input: Microphone (Realtek High Definition Audio)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using Monitor Capture
x264: using cpu capabilities: MMX2 SSE2Fast FastShuffle SSEMisalign LZCNT
x264: profile High, level 3.1
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 960, height: 540
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 900
    buffer size: 900
    quality: 10
------------------------------------------
Bad timestamp detected, syncing audio to video time
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-fra.justin.tv/app
bufferTime: 2180, outputRateWindowTime: 1000, dropThreshold: 2680
Total frames rendered: 12435, number of frames that lagged: 6794 (54.64%) (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:57    Avg QP:20.09  size: 52155
x264: frame P:3540  Avg QP:21.65  size:  3910
x264: frame B:8801  Avg QP:25.15  size:   779
x264: consecutive B-frames:  4.8%  0.9%  2.6% 91.7%
x264: mb I  I16..4: 33.5% 21.5% 45.0%
x264: mb P  I16..4:  1.4%  1.2%  0.6%  P16..4: 10.5%  2.9%  1.9%  0.0%  0.0%    skip:81.5%
x264: mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  1.2%  0.6%  0.3%  direct: 0.7%  skip:97.1%  L0:36.5% L1:45.8% BI:17.7%
x264: 8x8 transform intra:31.4% inter:26.9%
x264: coded y,uvDC,uvAC intra: 60.1% 57.4% 35.1% inter: 2.3% 2.5% 0.8%
x264: i16 v,h,dc,p: 43% 31% 19%  8%
x264: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 19% 36%  4%  7%  5%  6%  5%  8%
x264: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 27% 20%  4%  9%  5%  6%  5%  8%
x264: i8c dc,h,v,p: 56% 25% 13%  7%
x264: Weighted P-Frames: Y:0.0% UV:0.0%
x264: kb/s:415.41
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 32.469 ms] [avg calls per frame: 1] [children: 99.3%] [unaccounted: 0.715%]
| scene->Preprocess - [66.1%] [avg time: 21.46 ms] [avg calls per frame: 1]
| video encoding and uploading - [33.2%] [avg time: 10.777 ms] [avg calls per frame: 1] [children: 33.1%] [unaccounted: 0.0493%]
| | CopyResource - [27.8%] [avg time: 9.038 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.166%] [avg time: 0.054 ms] [avg calls per frame: 0]
| | call to encoder - [5.08%] [avg time: 1.648 ms] [avg calls per frame: 0]
| | sending stuff out - [0.0647%] [avg time: 0.021 ms] [avg calls per frame: 0]
==============================================================

Code:
Open Broadcaster Software v0.472b - 32bit (´・ω・`)
-------------------------------
CPU Name: AMD Phenom(tm) 9850 Quad-Core Processor
CPU Speed: 2499MHz
Physical Memory:  4095MB Total, 4095MB Free
stepping id: 3, model 2, family 15, type 0, extmodel 8, extfamily 0, HTT 1, logical cores 4, 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 9600 GSO
  Video Adapter Dedicated Video Memory: 1581842432
  Video Adapter Shared System Memory: 2683908096
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device {0.0.0.00000000}.{a1026aa7-ccf6-4d03-bef9-b42b356a126c}
------------------------------------------
Using desktop audio input: Speakers (Realtek High Definition Audio)
------------------------------------------
Using auxilary audio input: Microphone (Realtek High Definition Audio)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using Monitor Capture
x264: using cpu capabilities: MMX2 SSE2Fast FastShuffle SSEMisalign LZCNT
x264: profile High, level 3.1
------------------------------------------
Video Encoding: x264
    fps: 25
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 900
    buffer size: 900
    quality: 10
------------------------------------------
Bad timestamp detected, syncing audio to video time
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-fra.justin.tv/app
bufferTime: 2222, outputRateWindowTime: 1000, dropThreshold: 2722
Total frames rendered: 32392, number of frames that lagged: 15520 (47.91%) (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:133   Avg QP:26.80  size: 59117
x264: frame P:9340  Avg QP:26.47  size:  8872
x264: frame B:22885 Avg QP:32.55  size:  2057
x264: consecutive B-frames:  4.4%  2.4%  4.4% 88.8%
x264: mb I  I16..4: 21.0% 46.1% 32.9%
x264: mb P  I16..4:  2.2%  2.5%  0.9%  P16..4: 15.0%  3.7%  2.2%  0.0%  0.0%    skip:73.6%
x264: mb B  I16..4:  0.1%  0.1%  0.1%  B16..8:  2.2%  1.4%  0.4%  direct: 1.0%  skip:94.6%  L0:38.2% L1:44.3% BI:17.5%
x264: 8x8 transform intra:43.8% inter:26.9%
x264: coded y,uvDC,uvAC intra: 60.7% 63.6% 33.9% inter: 3.5% 4.1% 1.3%
x264: i16 v,h,dc,p: 29% 32% 29% 10%
x264: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 12% 18% 36%  4%  7%  5%  6%  5%  8%
x264: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 25% 23%  4%  9%  5%  6%  5%  7%
x264: i8c dc,h,v,p: 55% 23% 15%  7%
x264: Weighted P-Frames: Y:0.0% UV:0.0%
x264: kb/s:809.88
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 41.38 ms] [avg calls per frame: 1] [children: 99.5%] [unaccounted: 0.512%]
| scene->Preprocess - [67.7%] [avg time: 28.026 ms] [avg calls per frame: 1]
| video encoding and uploading - [31.8%] [avg time: 13.142 ms] [avg calls per frame: 1] [children: 31.7%] [unaccounted: 0.0387%]
| | CopyResource - [24.8%] [avg time: 10.247 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.0942%] [avg time: 0.039 ms] [avg calls per frame: 0]
| | call to encoder - [6.81%] [avg time: 2.817 ms] [avg calls per frame: 0]
| | sending stuff out - [0.0556%] [avg time: 0.023 ms] [avg calls per frame: 0]
==============================================================
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Re: Progressive audio delay. [I added log file]

Mic audio? Doesn't happen with 0.47? (you can get older versions on the sourceforge page if necessary to check)
 

MisterCeen

New Member
Re: Progressive audio delay. [I added log file]

Solved! Double confirmed - it works properly again!

I tried out 0.465 and everything seems to be running fine now, all of a sudden. Although I did go to recording devices > properties on stereo mix. And under "Enhancements" I disabled all effects.. I noticed something called "DC offset output" that was activated, as well as "immediate mode". I turned all that off and tried out 0.465 and it's working now, based on the test I did: http://www.twitch.tv/misterceen/b/369983634

But I guess the stereo mix has nothing to do with this? Since OBS doesn't use stereo mix, right? Anyways, looks like it's working anyways. Everything above 0.465 was giving me audio delay on the stream.

Here's the log:
Code:
Open Broadcaster Software v0.465a - 32bit (´・ω・`)
-------------------------------
CPU Name: AMD Phenom(tm) 9850 Quad-Core Processor
CPU Speed: 2499MHz
Physical Memory:  4095MB Total, 4095MB Free
stepping id: 3, model 2, family 15, type 0, extmodel 8, extfamily 0, HTT 1, logical cores 4, total cores 4
Windows Version: 6.1 Build 7601 S
Aero is Disabled
------------------------------------------
Adapter 1
  Video Adapter: NVIDIA GeForce 9600 GSO
  Video Adapter Dedicated Video Memory: 1581842432
  Video Adapter Shared System Memory: 2683908096
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1920x1080
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: Microphone (Realtek High Definition Audio)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using Monitor Capture
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1920, height: 1080
    preset: veryfast
    CBR: no
    max bitrate: 1000
    buffer size: 1000
    quality: 8
------------------------------------------
Total frames rendered: 209, number of frames that lagged: 188 (89.95%) (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: Microphone (Realtek High Definition Audio)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using Monitor Capture
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    max bitrate: 900
    buffer size: 900
    quality: 7
------------------------------------------
Total frames rendered: 25, number of frames that lagged: 4 (16.00%) (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: Microphone (Realtek High Definition Audio)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using Monitor Capture
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    max bitrate: 900
    buffer size: 900
    quality: 7
------------------------------------------
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-ams.justin.tv/app
bufferTime: 2327, outputRateWindowTime: 1000, dropThreshold: 2827
Total frames rendered: 3067, number of frames that lagged: 1585 (51.68%) (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: Microphone (Realtek High Definition Audio)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using Monitor Capture
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    max bitrate: 900
    buffer size: 900
    quality: 7
------------------------------------------
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-ams.justin.tv/app
bufferTime: 2071, outputRateWindowTime: 1000, dropThreshold: 2571
Total frames rendered: 19525, number of frames that lagged: 19291 (98.80%) (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: 47.101 ms] [avg calls per frame: 1] [children: 98.6%] [unaccounted: 1.4%]
| scene->Preprocess - [61.8%] [avg time: 29.12 ms] [avg calls per frame: 1]
| video encoding and uploading - [36.8%] [avg time: 17.321 ms] [avg calls per frame: 1] [children: 36.7%] [unaccounted: 0.0403%]
| | CopyResource - [29.9%] [avg time: 14.079 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.229%] [avg time: 0.108 ms] [avg calls per frame: 0]
| | call to encoder - [6.54%] [avg time: 3.082 ms] [avg calls per frame: 0]
| | sending stuff out - [0.0701%] [avg time: 0.033 ms] [avg calls per frame: 0]
==============================================================
 
Top