Question / Help Audio in file recordings is 2000 ms "AHEAD" all the time, the stream is fine. is this a design?

I3ordo

Member
Correction:
The audio sync problem is on track 1 which is send to the stream. Weirdly stream dont have the issue only the recorded file's track 1.

old message:
this is an audio problem and i have to add 2000ms to audio tracks (6 in total) to fix it. However the stream is fine so i am thinking the 2000öms difference is due to my audio devices using timestamps and they all try to cater to the latest timestamp to have a uniform latency with the video so that fixing it would be easier in post.

. is this the truth?
 
Last edited:

I3ordo

Member
streaming is first
game audio2
MIC 3
Discord 4
Media like web broswers or vlc media 5
Anootation SFX 6
 

Suslik V

Active Member
Do you make recordings of the streaming track as well? I mean, is this first track also playbacks ahead of the video?
 

Suslik V

Active Member
?! You want to say that the streaming track inside recorded file also playbacks ahead of the video? And if you watch raw stream live - then there is no delays of the video?
 

I3ordo

Member
?! You want to say that the streaming track inside recorded file also playbacks ahead of the video? And if you watch raw stream live - then there is no delays of the video?
Exactly,

I have 6 tracks on recording including the one sent to stream and track 1 which is for stream is fixed 2000ms ahead so i put "2000ms" in vlc to be able to watch it and stream does not have that issue.

Maybe twitch's encoder is fixing the audio issue automatically? All my sounds use have the "use timestamps" ticked.
 
Last edited:

I3ordo

Member
Correction:

Track 1 (stream) s audio is ahead 2000ms each time.
track 2 (game) is in sync
track 3 (MIC) is in sync
track 4(Discord) is in sync
track 5 (Media) is in sync
Track 6 (SFX) is in sync.

The Stream uses Track 1 and there is no audio sync issue on stream as i check through browser.
Only the recording's first track is 2000ms ahead and it is same for every recording no matter the lenght.

ps: I am using .ts for recording which is better for starting up immediately which gray artifact covering initial frames.
 

Suslik V

Active Member
This is when offset for each source at 2000ms already set (at Advanced Audio Properties)? Or this is without any adjustments?
 

Suslik V

Active Member
Can you post example of such video from OBS Studio (not edited file; short one)? I want to playback it on my end.
 

I3ordo

Member
if i just click the file i send you , it opens it in a browser just fine. very bad quality video quality compared to source but anyway. But if you download the actual created file and play it via: VLC, first track is 2000ms ahead (just tested), quicktimeplayer also, if u play it with window's Movies and Tv applicatiıon. The video starts with track 2 (which dont have that sync)

Maybe switch to track 1 which i use for streams, that track has sync issue about 2000ms. which is absurdly 2000ms ahead of the video.
 
Last edited:

koala

Active Member
The issue is present in the video file, @Suslik V - I loaded it into Audacity and it is clearly visible that the audio in track 1 is 2000 ms ahead of track 2 and 3. Track 1 is a mixed version of track 2 and 3. I don't know what is happening, though.

1539783689634.png
 

Suslik V

Active Member
I see it during edit too, but one of my players (mpv-i686-20150411), playbacks first two audio tracks in time... only 1st and 3rd has mentioned 2 seconds difference. So, I asked to be sure.

I have few more questions:
1) Is this recorded with hardware NVENC?
2) Is this only happens during replay buffer recordings?

Maybe log-file from this recording will be helpful?

@koala , Can you reproduce this? I had made couple of tests and unable to reproduce it. And as far as I know, the streaming track is just copied to the recording without any processing (that the reason why you don't need to set in OBS Studio audio bitrate for streaming track other than for recording).
 

Suslik V

Active Member
The file has info about the BT.601 matrix and this is not typical for OBS Studio with default settings. I think, some additional info needed to see what happens here.
 

I3ordo

Member
I made a bunch of tests and can conclude that it ONLY happens when i STREAM. It does not happen when i just record.

Whether it is x264 or NVENC or IQS for stream and NVENC or IQS (did not try x264 for record).for record.
using the replay buffer or not does not make a difference.

I checked the stream there is no audio issue on both streams (i mean i am using restream for casting to Twtch and YT at the same time.) I streamed to twitch only too and same result.

I shut down ps4remoteplay.exe and did a windows capture of "firefox" instead but same result:

When i stream, my local recording's track 1 is unsynced regardless of encoders, video sources used.

i am using voicemeeter and 3 virtual cables. game audio is set to VM which is default one, all sound sources use MME and i noticed that the sync is alot less when all virtual cables and hardware outputs use MME , yet the stream s audio is perfectly synced.
 

koala

Active Member
Unfortunately, I was not able to reproduce.
@I3ordo Did you configure any stream delay in Settings->Advanced? It's the only place in all OBS I find where you can configure something that has to do with some delay that is related to streaming and that may affect audio.
Could you post a log that includes a session of a stream with such a delay?
 

I3ordo

Member
No i have not used any option to add delay to anything.

Things i will try today;

make a single track recording
make 6 track recording but without virtual audio sources
make 6 track recording using WDM audio sources only.(last time, i was using a mix of WDM and MME, and last ltest was with MME only the sync issue was below 200ms on track 1, stream was (maşallah) fine.
 
Top