Bug Report Mic Audio Sync Issues In .461a

NovaWar

New Member
While testing to see if not using the buffer would alleviate the stream resetting issue (which it didn't as I mentioned in a different thread moments ago) my viewers found there to be a fairly severe delay in audio in relation to the webcam video.

I think there may be some webcam issues in general as sometimes the webcam is silky smooth when using OBS and other times it's a bit of a mess (this is regardless of webcam settings and identical lighting in the room).

If you want to see the syncing issue here's an example:

http://www.youtube.com/watch?v=q6nAzCW8S9E
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Could I see a log file? Just want to check something in there to see if it's what I think it is (timestamping related issue)
 

NovaWar

New Member
Here's a fresh one from tonight:




Open Broadcaster Software v0.461a - 64bit ( ^ω^)
-------------------------------
CPU Name: Intel(R) Core(TM) i7-2700K CPU @ 3.50GHz
CPU Speed: 3500MHz
Physical Memory: 16366MB Total, 11655MB Free
stepping id: 7, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
Windows Version: 6.1 Build 7601 S
Aero is Disabled
------------------------------------------
Adapter 1
Video Adapter: NVIDIA GeForce GTX 670
Video Adapter Dedicated Video Memory: 4232773632
Video Adapter Shared System Memory: 4017371136
------------------------------------------
Adapter 2
Video Adapter: NVIDIA GeForce GTX 460
Video Adapter Dedicated Video Memory: 1026097152
Video Adapter Shared System Memory: 3220975616
=====Stream Start=====================================================================
Multithreaded optimizations: On
Base resolution: 1920x1080
Output resolution: 1920x1080
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: ZOOM Recording Mixer (3- ZOOM H Series Audio)
------------------------------------------
Audio Encoding: AAC
bitrate: 320
Using bitmap image
------------------------------------------
device: Microsoft LifeCam Cinema,
device id \\?\usb#vid_045e&pid_075d&mi_00#9&11c269d4&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
chosen type: YUY2, usingFourCC: false, res: 800x600 - 800x600, fps: 7.5-15, fourCC: 'YUY2'

Using directshow input
------------------------------------------
Video Encoding: x264
fps: 30
width: 1920, height: 1080
preset: faster
CBR: no
max bitrate: 5680
buffer size: 5680
quality: 10
------------------------------------------
bufferTime: 1849, outputRateWindowTime: 1000, dropThreshold: 2349
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
------------------------------------------
device: Dxtory Video 1,
device id (null),
chosen type: RGB32, usingFourCC: false, res: 1920x1080 - 1920x1080, fps: 30-30, fourCC: 00000000

Using directshow input
Using bitmap image
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
Using Monitor Capture
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
Using Monitor Capture
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
Using Monitor Capture
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
Using Monitor Capture
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
RTMPPublisher::SocketLoop: Socket error, send() returned -1, GetLastError() 10053
Total frames rendered: 272097, number of frames that lagged: 58529 (21.51%) (it's okay for some frames to lag)
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: 1920x1080
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: ZOOM Recording Mixer (3- ZOOM H Series Audio)
------------------------------------------
Audio Encoding: AAC
bitrate: 320
Using bitmap image
------------------------------------------
device: Microsoft LifeCam Cinema,
device id \\?\usb#vid_045e&pid_075d&mi_00#9&11c269d4&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
chosen type: YUY2, usingFourCC: false, res: 800x600 - 800x600, fps: 7.5-15, fourCC: 'YUY2'

Using directshow input
------------------------------------------
Video Encoding: x264
fps: 30
width: 1920, height: 1080
preset: faster
CBR: no
max bitrate: 5680
buffer size: 5680
quality: 10
------------------------------------------
Total frames rendered: 97, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
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: 23.83 ms] [avg calls per frame: 1] [children: 99.2%] [unaccounted: 0.835%]
| scene->Preprocess - [40.5%] [avg time: 9.641 ms] [avg calls per frame: 1]
| video encoding and uploading - [58.7%] [avg time: 13.99 ms] [avg calls per frame: 1] [children: 9.74%] [unaccounted: 49%]
| | CopyResource - [0.0546%] [avg time: 0.013 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.0755%] [avg time: 0.018 ms] [avg calls per frame: 0]
| | call to encoder - [9.54%] [avg time: 2.274 ms] [avg calls per frame: 0]
| | sending stuff out - [0.0671%] [avg time: 0.016 ms] [avg calls per frame: 0]
==============================================================
 

NovaWar

New Member
Here's one from the night before when it happened:

Open Broadcaster Software v0.461a - 64bit ( ^ω^)
-------------------------------
CPU Name: Intel(R) Core(TM) i7-2700K CPU @ 3.50GHz
CPU Speed: 3500MHz
Physical Memory: 16366MB Total, 10774MB Free
stepping id: 7, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
Windows Version: 6.1 Build 7601 S
Aero is Disabled
------------------------------------------
Adapter 1
Video Adapter: NVIDIA GeForce GTX 670
Video Adapter Dedicated Video Memory: 4232773632
Video Adapter Shared System Memory: 4017371136
------------------------------------------
Adapter 2
Video Adapter: NVIDIA GeForce GTX 460
Video Adapter Dedicated Video Memory: 1026097152
Video Adapter Shared System Memory: 3220975616
=====Stream Start=====================================================================
Multithreaded optimizations: On
Base resolution: 1920x1080
Output resolution: 1920x1080
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: ZOOM Recording Mixer (3- ZOOM H Series Audio)
------------------------------------------
Audio Encoding: AAC
bitrate: 320
------------------------------------------
device: Dxtory Video 1,
device id (null),
chosen type: RGB32, usingFourCC: false, res: 1920x1080 - 1920x1080, fps: 30-30, fourCC: 00000000

Using directshow input
Using bitmap image
------------------------------------------
Video Encoding: x264
fps: 30
width: 1920, height: 1080
preset: faster
CBR: no
max bitrate: 5680
buffer size: 5680
quality: 10
------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
Using Monitor Capture
------------------------------------------
device: Microsoft LifeCam Cinema,
device id \\?\usb#vid_045e&pid_075d&mi_00#9&11c269d4&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
chosen type: YUY2, usingFourCC: false, res: 800x600 - 800x600, fps: 7.5-15, fourCC: 'YUY2'

Using directshow input
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
Using bitmap image
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
Using Monitor Capture
bufferTime: 1729, outputRateWindowTime: 1000, dropThreshold: 2229
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
Using Monitor Capture
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
Using Monitor Capture
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
Using Monitor Capture
Total frames rendered: 221963, number of frames that lagged: 6418 (2.89%) (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: 18.73 ms] [avg calls per frame: 1] [children: 99.1%] [unaccounted: 0.913%]
| scene->Preprocess - [33.1%] [avg time: 6.199 ms] [avg calls per frame: 1]
| video encoding and uploading - [66%] [avg time: 12.36 ms] [avg calls per frame: 1] [children: 11.9%] [unaccounted: 54.1%]
| | CopyResource - [0.0694%] [avg time: 0.013 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.0908%] [avg time: 0.017 ms] [avg calls per frame: 0]
| | call to encoder - [11.7%] [avg time: 2.188 ms] [avg calls per frame: 0]
| | sending stuff out - [0.0961%] [avg time: 0.018 ms] [avg calls per frame: 0]
==============================================================
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Hm, very interesting. Your mic is still behind the video despite the fact that I implemented specific timestamping code for microphones to prevent this from occuring. Definitely not the video's problem here. This is most interesting. Did you create this via the MP4 file output, and then just upload it to youtube? MP4's currently have a weird sync issue at the moment I'm still trying to pinpoint.

If not, and this was happening on a live stream as well, then maybe some time you could come around the chat and help me determine what the cause is if none of those things are the case and the mic is definitely off
 

NovaWar

New Member
It's strange in that it's fine today (according to the viewers anyway). That video was uploaded straight from twitch and I THINK their storage is all in FLV. It was there during the stream either way according to those watching.

Yeah I pop in to chat every now and then when I'm doing my emails and stuff in the morning but I think you don't get up usually until another couple of hours after. I'll try and pop in when I know you're up and we'll see if we can hammer something out.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
hm, so basically the problem only happens on youtube after you upload it? do the twitch vods show any problems before that? stream is okay?
 

NovaWar

New Member
Nono, I'm just commenting on how it is at the moment. I'm actually live right now hahaha.

I'm saying it happens on the live stream and carries over to the archive so it's not a rendering issue or something.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Wow threads get buried fast.. Could you check out 0.463a test 4, nova? Or anyone? Could anyone who had mic sync issues in 0.458-0.461 test out 0.463a test 4 and tell me if it fixed the problem or not?
 

NovaWar

New Member
I misread that hahahaha. I thought this was a mic sync fix. I'm not using the live gamer hd but i am using the hauppauge so i'll give it a shot!
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
for you specifically, this is for the mic sync issue. not capture card audio.
 
Top