Bug Report Testing a new way to ensure webcam/device sync

Status
Not open for further replies.

Lain

Forum Admin
Lain
Forum Moderator
Developer
I have a request for some people experiencing device/mic sync issues. I need some testing on a new feature.

The test versions (0.48.011+ as of this writing) present a new audio feature for devices. If you have audio sync issues with your webcam\elgato, there is now a new way to ensure device\audio sync (if you have have problems with it).

1.) Disable your mic in audio settings
2.) (If using a webcam) Go into the webcam device properties, and select your mic in the audio devices list on the right.
3.) Check "output to stream"
4.) Check "Use buffering" (0 milliseconds, otherwise it will delay the output)

If you use your mic directly through the device like this with buffering enabled, it will automatically force your webcam and mic data to sync up. Anyone who had the "progressively out of sync" issue should find that it now stays in sync.

Note that this -may- cause your video to be delayed to accommodate the mic delay, I may try to see if I can figure out a way to get mic data sent faster. However, mic data should definitely be in sync with the video. Please try it out and let me know how it goes.
 

totalcereal

New Member
This fixed my webcam delay. There was about a .10-.15 second delay before, now the delay is unnoticeable, if not nonexistent. My webcam is a Logitech C270 BTW.
 

Rleeson85

Member
See I want to do the way the OP mentioned, but using the Elgato you will need a delay already to match the game delay thats already there.
I used it before with it in the webcam and a mic as the webcams audio device and could not seem to get a sync.

I want to try again because it seems when I stream on Twitch I must use a 1400ms on my mic then a 1000ms on the webcam to get it all synced with the elgato
on Youtube I have to do 1400ms mic and 1200ms webcam which is very odd that its even needed to be changed.
 
Before I was having quite noticeable webcam delay but the rok lobster build has fixed it. But throughout the past few test build and even the initial release build my game audio is slightly delayed from the video. It wasn't always like this only recently and quite honestly I don't know why but for the past month it has been this way. I have uninstalled and reinstalled multiple times but to no avail.

My capture device is an Avermedia game broadcaster HD and the audio is delayed whether I use output to stream or audio to desktop (this is my usual choice).

Any help here would be greatly appreciated.
 

sambaker743

New Member
Hello, I gotta report this issue, but unfortunately that update and afterward I've been experiencing increasing delay on my AUX Mic, something that's never happened before. Some devices are unaffected, like my G35's mic, but this one among others now gets this delay.
It starts out small, but by the hour mark it's anywhere between 500-800ms behind, by 5 hours, it's between 3-6 Secs. Everything else is fine, and nothing changed besides OBS. This happens between my main PC and my laptop. I did try the device audio (setting the mic for the C985), but I lower the sounds bar, which also lowers the mic, making it not a good solution for me.
I've tried to plug the mic in a few different ports, so it couldn't be it (and it work fine everywhere else). The 0.48.007 Test Build that I saved and use for Local works flawlessly, with no desync whatsoever, even after hours of use. It's only in the .011+ builds that this had been happening, up until 0.50.06b.

My log file from the latest test vid I made locally (The desync is the same no matter what else I do):
Code:
Open Broadcaster Software v0.50.06b - 64bit ( ^ω^)
-------------------------------
CPU Name: AMD FX(tm)-8350 Eight-Core Processor
CPU Speed: 4515MHz
Physical Memory:  16304MB Total, 12013MB Free
stepping id: 0, model 2, family 15, type 0, extmodel 0, extfamily 3, HTT 1, logical cores 8, total cores 4
monitor 1: pos={0, 0}, size={1920, 1080}
monitor 2: pos={1920, 0}, size={1920, 1080}
Windows Version: 6.1 Build 7601 S
Aero is Enabled
------------------------------------------
Adapter 1
  Video Adapter: NVIDIA GeForce GTX 580
  Video Adapter Dedicated Video Memory: 1560739840
  Video Adapter Shared System Memory: 2683908096
=====Stream Start: 2013-04-25, 08:34:47===============================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1920x1080
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (2- Logitech G35 Headset)
Using 7.1 surround speaker setup (experimental)
------------------------------------------
Using auxilary audio input: Microphone (3- Samson C01U              )
------------------------------------------
Audio Encoding: AAC
    bitrate: 320
Using text output
Using bitmap image
------------------------------------------
    device: AVerMedia HD Capture C985 Bus 6,
    device id \\?\pci#ven_1af2&dev_a001&subsys_a0011af2&rev_00#4&23984c36&0&0058#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{957bd672-7934-4b55-b81a-3e22b14c679a},
    chosen type: YV12, usingFourCC: true, res: 1920x1080 - 1920x1080, frameIntervals: 333333-666666, fourCC: 'YV12'
    audio device: Disable,
    audio device id Disabled,

Using directshow input
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1920, height: 1080
    preset: veryfast
    CBR: no
    CFR: yes
    max bitrate: 60000
    buffer size: 60000
    quality: 10
------------------------------------------
Total frames rendered: 113339, number of frames that lagged: 28 (0.02%) (it's okay for some frames to lag)
Total duplicated frames: 12 (0.01%)
=====Stream End: 2013-04-25, 09:37:48=================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 5.977 ms] [avg calls per frame: 1] [children: 89.6%] [unaccounted: 10.4%]
| scene->Preprocess - [24.5%] [avg time: 1.463 ms] [avg calls per frame: 1]
| video encoding and uploading - [65.2%] [avg time: 3.895 ms] [avg calls per frame: 1] [children: 64.4%] [unaccounted: 0.736%]
| | CopyResource - [0.251%] [avg time: 0.015 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.0669%] [avg time: 0.004 ms] [avg calls per frame: 0]
| | call to encoder - [63.8%] [avg time: 3.812 ms] [avg calls per frame: 0]
| | sending stuff out - [0.335%] [avg time: 0.02 ms] [avg calls per frame: 0]
==============================================================

I will say OBS has been a godsend for me, esp since XSplit's always been a pile of almost-there-but-never-really-that-good. I've never had issues up until now, except for the video-not-working-in-Vegas-thing, but that was fixed long ago (thanks, by the way). Anything I can do to help, lemmie know.

I posted here because I didn't wanna fill the bug section with another topic.

EDIT 4/26: Just tried out the new 0.51 build, and it did indeed fix my Mic sync issue, I'd advice anyone else with the issue to upgrade ASAP. In hindsight, I should've waited a day before reporting on my issues, but eh, I wasn't sure what to really do. Thanks for all the good updates, OBS will really kill Xsplit in the long run (hopefully). It's the best streaming/recording software I've used so far, hell I even use it for my YouTube channel. Good stuff.
 

Artisane

New Member
I experienced the same audio delay on my mic after 7 hours of streaming last night. I tested it before the stream and it was in sync, but by the end of the cast, it was a couple of seconds delayed.

Microphone is a piped via phantom power through the mic port on my Xonar D2X. I don't remember this happening in the past and I didn't notice it until a couple of days ago. (0.50b)

I'll run .47b today and see if the issue goes away.

A perfect example from yesterday. The start of the cast was perfectly synced, but it was off by a noticeable amount by the 2 hour mark. By the 5 hour mark, you can hear an echo as the mic picks up the game sounds with a delay.

http://www.twitch.tv/artisane/b/395223057
 

hurkies

New Member
Jim I can confirm that the audio desync is fixed on 720p, but all the same settings on 1080p the audio desynch is back with 2 - 3 second delay. Will there be a fix? just got the Elgato and I would love to see it working on 1080p.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Desync should never occur when buffering is enabled due to the fact that it actually times the data to specifically output, so I'm wondering if it's a bug in the filter or something there.

As a workaround you can use the device audio time offset to adjust when your sound plays out of it
 

AndehX

Member
Having recently switch to an Elgato, I've had to add a delay to my mic and webcam, which I expected as I knew the elgato had about a 1.5 second delay when capturing video.

I don't seem to have any sync issues though. I simply set my webcam buffer to 1400ms, and my microphone buffer to 1400ms, and everything syncs up nicely. Only thing I wish I could also buffer, was the sound device that my skype conversation comes through, as everything is buffered to match the Elgato, except the people im talking to on skype.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
you should be able to buffer mic data as well with "mic time offset" in audio settings.
 

AndehX

Member
yeah, thats basically what I do. Other than that, I have no issues syncing up webcam/mic/video with my elgato
 

Username117

New Member
Hi,

Just wanted to say I love OBS and support it 110% - so I'm more than willing to give all the help I can. (:

Right, so I noticed that when using the mic delay for OBS after streaming for a long time it gets out of sync.

My setup:
Elgato Gamecap HD
Current OBS build (0.522)
Mic delay: 1600ms
Use buffering enabled for capture card (0 ms)

Again, this only occurs after streaming for long periods! - A simple reset of the stream (by pressing stop streaming and start streaming) fixes it right away. I'm not sure the exact time it takes for it to occur, but it has happened to me twice already.

Do you know what's causing this? If not, just throwing it on the table so you know it's out there and needs fixing if its not just on my end. (:

Thanks!
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
I don't quite know what's causing it unfortunately, but I will check the code
 

GrayEighty

New Member
Same thing is happening to me as for Username117 above.

Using the method Jim described:
1.) Disable your mic in audio settings
2.) (If using a webcam) Go into the webcam device properties, and select your mic in the audio devices list on the right.
3.) Check "output to stream"
4.) Check "Use buffering" (0 milliseconds, otherwise it will delay the output)

Elgato Gamecapture HD
OBS version: 0.522b
Audio Time Offset: 1500
Use Output format: I420
Use Buffering: 0ms

Log file from my latest stream, streamed for about 2+ hours.
Sync was fine at the beginning, not sure when it became desynced.

09:21:02: Open Broadcaster Software v0.522b - 32bit (´・ω・`)
09:21:02: -------------------------------
09:21:02: CPU Name: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
09:21:02: CPU Speed: 3292MHz
09:21:02: Physical Memory: 4095MB Total, 4095MB Free
09:21:02: stepping id: 7, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
09:21:02: monitor 1: pos={0, 0}, size={1680, 1050}
09:21:02: Windows Version: 6.1 Build 7601 S
09:21:02: Aero is Disabled
09:21:02: -------------------------------
09:21:02: OBS Modules:
09:21:02: Base Address Module
09:21:02: 012F0000 OBS.exe
09:21:02: 702F0000 OBSApi.dll
09:21:02: 725B0000 DShowPlugin.dll
09:21:02: 73760000 GraphicsCapture.dll
09:21:02: 73740000 NoiseGate.dll
09:21:02: ------------------------------------------
09:21:02: Adapter 1
09:21:02: Video Adapter: NVIDIA GeForce GTX 660 Ti
09:21:02: Video Adapter Dedicated Video Memory: 2091319296
09:21:02: Video Adapter Shared System Memory: 2147479552
09:21:02: =====Stream Start: 2013-05-21, 09:21:02===============================================
09:21:02: Multithreaded optimizations: On
09:21:02: Base resolution: 1280x720
09:21:02: Output resolution: 1280x720
09:21:02: ------------------------------------------
09:21:02: Loading up D3D10...
09:21:02: Playback device Default
09:21:02: ------------------------------------------
09:21:02: Using desktop audio input: Högtalare (ASUS Xonar D1 Audio Device)
09:21:02: ------------------------------------------
09:21:02: Audio Encoding: AAC
09:21:02: bitrate: 192
09:21:03: ------------------------------------------
09:21:03: device: Logitech HD Pro Webcam C920,
09:21:03: device id \\?\usb#vid_046d&pid_082d&mi_00#7&bd60053&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
09:21:03: chosen type: I420, usingFourCC: false, res: 1280x720 - 1280x720, frameIntervals: 333333-2000000, fourCC: 'I420'
09:21:03: audio device: Mikrofon (6- USB PnP Sound Devi,
09:21:03: audio device id (null),
09:21:03:
09:21:03: device audio info - bits per sample: 16, channels: 2, samples per sec: 44100, block size: 4
09:21:03: Using directshow input
09:21:03: ------------------------------------------
09:21:03: device: Elgato Game Capture HD,
09:21:03: device id {39F50F4C-99E1-464a-B6F9-D605B4FB5918},
09:21:03: chosen type: UYVY, usingFourCC: false, res: 1280x720 - 1280x720, frameIntervals: 333333-333333, fourCC: 'UYVY'
09:21:03:
09:21:03: device audio info - bits per sample: 16, channels: 2, samples per sec: 48000, block size: 4
09:21:03: Using directshow input
09:21:03: ------------------------------------------
09:21:03: Video Encoding: x264
09:21:03: fps: 30
09:21:03: width: 1280, height: 720
09:21:03: preset: veryfast
09:21:03: CBR: no
09:21:03: CFR: no
09:21:03: max bitrate: 3000
09:21:03: buffer size: 1000
09:21:03: quality: 10
09:21:03: ------------------------------------------
09:21:05: Using RTMP service: Twitch / Justin.tv
09:21:05: Server selection: rtmp://live-lhr-backup.justin.tv/app
09:21:07: SO_SNDBUF was at 8192
09:21:07: SO_SNDBUF is now 65536
11:38:59: Total frames rendered: 248233, number of frames that lagged: 6 (0.00%) (it's okay for some frames to lag)
11:38:59: RTMPPublisher::SocketLoop: Aborting due to bStopping
11:38:59: Number of times waited to send: 0, Waited for a total of 0 bytes
11:38:59: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
11:39:02: =====Stream End: 2013-05-21, 11:39:02=================================================
11:39:06:
11:39:06: Profiler results:
11:39:06:
11:39:06: ==============================================================
11:39:06: frame - [100%] [avg time: 2.726 ms] [avg calls per frame: 1] [children: 97.6%] [unaccounted: 2.42%]
11:39:06: | scene->Preprocess - [49.9%] [avg time: 1.361 ms] [avg calls per frame: 1]
11:39:06: | video encoding and uploading - [47.7%] [avg time: 1.299 ms] [avg calls per frame: 1] [children: 45%] [unaccounted: 2.64%]
11:39:06: | | CopyResource - [2.09%] [avg time: 0.057 ms] [avg calls per frame: 0]
11:39:06: | | conversion to 4:2:0 - [0.477%] [avg time: 0.013 ms] [avg calls per frame: 0]
11:39:06: | | call to encoder - [41.7%] [avg time: 1.136 ms] [avg calls per frame: 0]
11:39:06: | | sending stuff out - [0.77%] [avg time: 0.021 ms] [avg calls per frame: 0]
11:39:06: ==============================================================
11:39:06:
 

Grinnz

New Member
A friend of mine is trying to use OBS for streaming the output of a Dazzle DVC 90 and a Logitech C270 webcam. The audio and video of the two devices seems to randomly go out of sync.

Setting a delay on the audio and video of the Dazzle of about 200ms worked at first (this much is expected to sync two devices) but after a while the webcam video needed a delay as well of 150ms (in relation to its own audio). The next time the stream was started the dazzle audio delay needed to be lowered (so it had less delay than the dazzle video). After streaming for a while the webcam video needed its delay removed again (back to 0 for webcam video and audio), and eventually the webcam audio needed a delay added.

This is with having each audio device enabled in the device's own settings. There seems to be two issues here: the audio and video of a device going out of sync with each other, and the two devices going out of sync with each other, either after streaming for a long time or after restarting the stream. Only one audio or video device is going out of sync at a time. There don't appear to be any noticeable sync issues when streaming the two devices with Xsplit so not sure what it is doing differently.
 

Ben_92

New Member
I am having the same exact issue as Username117 (above) Please Help! I have the most updated version of OBS.
 
Status
Not open for further replies.
Top