obs-studio icon indicating copy to clipboard operation
obs-studio copied to clipboard

Out of Sync Audio / Video

Open Glog78 opened this issue 12 years ago • 14 comments

here is a example Video -> user current git + xcomposite capture on linux. Else everything was great. So can't wait for more options in the gui. Thanx for the work.

Glog78 avatar May 16 '14 03:05 Glog78

I am getting this out of sync issue as well on the display capture for Mac

drekryan avatar May 16 '14 14:05 drekryan

Latest Git Version worked wonderfull on a twitch test stream. Thanx alot.

Glog78 avatar May 23 '14 20:05 Glog78

Using the latest Git I still get delay on Twitch (which varies between 80 and 400ms according to a friend who watched the stream) as well as some really weird echo issues on hitbox. None of these issues come up if I just record the stream to a local file though.

Weegee avatar May 24 '14 09:05 Weegee

If anyone has this issue, you must specify which operating system, because they each use different libraries for capturing audio. It's important because it helps indicate whether it's an issue with the specific audio capture for that operating system or not.

Also, you need to state if you were recording and streaming at the same time, because there might be an issue with multiple outputs at the moment (which I think I'm about to patch)

jp9000 avatar May 24 '14 13:05 jp9000

@jp9000 It's on Linux in my case, I've been discussing this issue with @fryshorts for some time now :)

Weegee avatar May 24 '14 16:05 Weegee

@jp9000 With a mac, I still get audio out of sync issues. The audio is pretty far behind the video (about 5-10 seconds)

Rainy37 avatar Jun 23 '14 22:06 Rainy37

I had this issue with my stream on Linux, it worked fine in one game, then I loaded up another and the audio was distorted, tried another game and there was ~1 second delay. Rebooting OBS seemed to fix it.

sirsquidfly avatar Jul 09 '14 10:07 sirsquidfly

@Rain37 - I know this is kind of far back now, but audio should definitely not be out of sync on mac, let alone 5-10 seconds. I haven't heard other cases of this yet. Are you still getting this with the latest official builds, or are you building it yourself? Also, could you also include a github gist logfile generated via the help menu?

jp9000 avatar Aug 05 '14 22:08 jp9000

This is still an issue for me on Linux. The streams will be in sync immediately after starting obs, and will get more and more out of sync over time. Closing and reopening obs fixes it. I'm using I believe the official build, from https://launchpad.net/~btbn/+archive/ubuntu/obs-studio on Ubuntu 14.04 x86_64.

According to the filename, this video was taken at 5:43:39, I'm not sure if that's start time or end time, and is in sync: http://youtu.be/eVm9_0H_-Bg

This one from 5:49:36, and is not in sync. This is from the same session of obs, and the same session of the game, just 6 or so minutes later: http://youtu.be/tN8yYydk5Hg

Neither recordings had any dropped frames. This does happen within a single recording as well.

I don't really know if this is a bug with obs, or one with pulseaudio, but I'm kind of convinced it's the latter at this point. I had similar issues when recording audio and video directly from ffmpeg, and I wasn't able to find a fix. I had hoped it was simply because ffmpeg was being bad, but I seem to still have the same issues with obs.

jacobmischka avatar Aug 07 '14 11:08 jacobmischka

@jp9000 I used the most recent version and I don't know why but whenever I start streaming, the display capture freezes.

Rainy37 avatar Aug 07 '14 16:08 Rainy37

unless there's specific code to keep the audio in sync it will slowly de-sync over time. not sure if it's a pulseaudio bug or what but the only streaming linux gui that i have success with which keeps the various streams in sync is simplescreenrecorder and that's because he actually has code written to keep the streams in sync.

ubuntuaddicted avatar Aug 07 '14 21:08 ubuntuaddicted

https://github.com/MaartenBaert/ssr/blob/master/src/AV/Output/Synchronizer.cpp I believe that is how SSR keeps everything on sync, which works really well.

nikod avatar Aug 08 '14 08:08 nikod

Is there any update on this?

jacobmischka avatar Aug 17 '14 04:08 jacobmischka

Ubuntu 14.04 with PulseAudio I have this problem with any audio captured from other applications. The microphone input seems synced with the video though, which is interesting. Seems to get worse as I stream longer.

chizu avatar Aug 22 '14 08:08 chizu