Question / Help Audio/Video sync issue

yurizemira

New Member
I'm sorry if this has been asked before but most other instances, I'm seeing this with a webcam.

I've been streaming my game to twitch via OBS Studio. First several times worked fine. I'd record as well as stream and there were no issues. But with the last couple of streams, my audio has been out of sync with my video in my recording. But not on the stream. The stream doesn't have any delay at all. I monitor for dropped frames and CPU usage and all are acceptable. I haven't changed my settings at all since this started. Both game audio and my mic audio are off, though, usually a second or two before the video. So I'll hear my character jump before he does. But again, this is only on the recording I do while I stream. It starts immediately and doesn't fix itself at all. I don't have any video or audio delay options selected.

I have attached a log file, hopefully it is the correct file. It is dated for around the time my stream ended tonight.
 

Attachments

  • 2017-04-20 17-57-35.txt
    19 KB · Views: 301

yurizemira

New Member
Is there any fix for this? I really prefer to upload my recorded gameplay since it's a more stable quality but I've been relying on my twitch exporting to youtube which isn't ideal.
 

yurizemira

New Member
This just happened again with my stream. Streamed without any issues but the recorded video was lagging behind the audio. I had gone through to check on the "use device timestamps" setting and it did not work for me. Didn't make any difference. Please, can someone offer some insight? This is so frustrating.
 

Attachments

  • 2017-04-21 18-48-47.txt
    30 KB · Views: 112

yurizemira

New Member
I'd really appreciate some thoughts or help with this before my next stream. I don't mean to pester but this is causing a lot more work with streaming.
 
Are there any multiple audio device outputs being used? Are your video settings configured properly not to lag back? If the recording is lagging ITSELF check your framerate and bitrate settings. If the audio is clipping and if you are using a noisegate, check that it is configured properly
 

yurizemira

New Member
I have my main mic audio channel active, all others disabled. One gameplay audio recording open. No dropped frames, no visible lag during stream or recording. I keep my bitrate lower than needed to prevent stream hiccups. CPU usage is like max 40% (I've personally never seen it above 32%) and I run OBS, Origin, and my game. It's like the video starts a second or two after the audio does. Neither are set to have any delay. I assume my video displays are set to not lag back as, again, when I record without streaming, everything is fine. Audio does not clip at all and I do not use a noise gate. No obvious errors except sound being a second ahead of video. Thanks!
 

yurizemira

New Member
Many thanks for the reply! My source for desktop audio is my headphone output. I have either that option or my graphics card. My source audio is the mic jack. From what I understand from your video, that fixed your issue, to switch from default to your headphones? In my case, it's been my headphones for as long as I've been streaming.
 

yurizemira

New Member
Unfortunately I just confirmed that the issue is still going. I was streaming and audio was synced up. But in my recording, it was off. Source of the audio was my headset. I've included my most recent log again, just in case.
 

Attachments

  • 2017-04-27 17-56-03.txt
    23.8 KB · Views: 90

yurizemira

New Member
I believe I noticed the issue but I have no idea how to correct it. When I press "start stream", my stream starts right away but my recording lags about 2-3 seconds before it starts. I checked my settings and noticed my streaming output keyframe intervals was set at 2 seconds but my recording was 0. I changed my recording to 2 as well and now the two are only a second apart but they're still not together. I even switched both output profile and recording profile to match, though I don't think that makes a difference. Any know why I'm still off and what I can do to fix it?
 

Quantum Thoth

New Member
Hi yurizemira, I'm having the same issue where the video is lagging behind the audio. However, in my case it's when I'm recording a local video. Would you be able to post what your settings are for Output, Audio, and Advanced?
 

wbig

New Member
I experience out-of-sync audio on my recorded OBS clips. My live are fine. I did some research a few months ago about this and it seems to be a common issue. If I play my OBS recorded clips in a player ( I usually use VLC media player), then they are still in sync. However, if I use one of my editors (PowerDirector16, or Premier Pro CC), then the audio is out of sync. A work-around is to run the file through Handbrake first, before using the file in a video editor. The explanations I saw were that the issue is related to the manner in which OBS handles frame rates. Handbrake, in the process of compacting the file, can convert the OBS created file into a fps (I use 30) format that is understandable to the rest of the universe.
~Howard
WBIG.Tv
Buffalo, NY
 

pgerhard

New Member
Had the same issue, my stream is fine (also the downloaded file from the stream). Audio/video is sync. But the issue is with the recorded (record video button) file, which isn't compressed. The audio lags -0.400 s behind the video (this can be checked by adjusting the audio/vid in VLC).

If I would modify the audio settings directly in OBS, would the audio / video be syn only on the recorded file and unsync on the stream?
 

MCBYT

Member
Had the same issue, my stream is fine (also the downloaded file from the stream). Audio/video is sync. But the issue is with the recorded (record video button) file, which isn't compressed. The audio lags -0.400 s behind the video (this can be checked by adjusting the audio/vid in VLC).

If I would modify the audio settings directly in OBS, would the audio / video be syn only on the recorded file and unsync on the stream?
I had a similar problem related to RAM. How much RAM do you have? Low amounts might end up cutting bits of audio out, so when you stream the bit of audio is just blank noise but in the saved files the audio is moved to fill the gap, unsyncing the audio. It may also be an issue with a variable frame rate. The stream should never be unsynced, just possible glitchy,
 
Top