Question / Help My sound in obs is delayed.

Maksiol

New Member
When recording a screen in an obs studio my audio is not synchronized with the video. The sound is delayed by two andsometimes three seconds. It bothers me a lot to try many ways like: reinstalling the program, downloading different helpers to get rid ofthe delay, changing settings, etc.
As for my recording settings, they look like this:
obs settings eng.png

Is there any way to eliminate the delay.
I'm sorry for the mistakes.
 

Narcogen

Active Member
Please delete and repost. For some reason every word in your post is a link to a Polish-English dictionary.
 

Maksiol

New Member
i'm sorry about that.

When recording a screen in an obs studio my audio is not synchronized with the video. The sound is delayed by two and sometimes three
seconds. It bothers me a lot to try many ways like: reinstalling the program, downloading different helpers to get rid ofthe delay, changing
settings, etc.
As for my recording settings, they look like this:
View attachment 46343
Is there any way to eliminate the delay
 

Narcogen

Active Member
No output session in the log.

All I do see appears to be the failure of a game capture session on Fortnite, repeating for hours:

10:33:30.431: [game-capture: 'fortnite'] attempting to hook process: FortniteClient-Win64-Shipping.exe
10:33:30.447: [game-capture: 'fortnite'] capture stopped


No recording or streaming is ever performed.

So there's no way to tell how the recording is performed.

In general I'd say make sure your game is FPS capped and reduce your quality setting if the recording isn't smooth and synchronized. Audio delay is usually a function of system overload.
 

Narcogen

Active Member
Nope.

18:47:14.549: ==== Startup complete ===============================================
18:47:14.551: Service '' not found
18:47:14.567: All scene data cleared
18:47:14.567: ------------------------------------------------
18:47:14.609: WASAPI: Device 'Realtek HD Audio 2nd output (Realtek High Definition Audio)' initialized
18:47:14.652: adding 46 milliseconds of audio buffering, total audio buffering is now 46 milliseconds (source: Urządzenie audio)
18:47:14.652:
18:47:14.766: adding 46 milliseconds of audio buffering, total audio buffering is now 92 milliseconds (source: Mikrofon/Wejście liniowe)
18:47:14.766:
18:47:14.804: WASAPI: Device 'Mikrofon (Realtek High Definition Audio)' initialized
18:47:14.812: adding 23 milliseconds of audio buffering, total audio buffering is now 116 milliseconds (source: Mikrofon/Wejście liniowe)
18:47:14.812:
18:47:15.145: Switched to scene 'Scena'
18:47:15.146: ------------------------------------------------
18:47:15.146: Loaded scenes:
18:47:15.146: - scene 'Scena':
18:47:15.146: - source: 'Przechwytywanie ekranu' (monitor_capture)
18:47:15.146: - scene 'Scena 2':
18:47:15.146: - source: 'fortnite' (game_capture)
18:47:15.146: - scene 'Scena 3':
18:47:15.146: - source: 'Minecraft' (game_capture)
18:47:15.146: ------------------------------------------------
18:47:39.392: Settings changed (general)
18:47:39.392: ------------------------------------------------
18:47:41.874: ==== Shutting down ==================================================


This log shows the app starting up, loading a scene, then shutting down. No attempt to record or stream.
 

Narcogen

Active Member
Find the logfile of that session and upload it. It's likely that between the options "upload last log" and "upload current log" you've chosen the wrong one. Current log would be relevant while the app is still open after you've stopped recording. Last log would be relevant if the app has been quit after that session and reopened.

You can inspect the log yourself; if it includes a recording session there will be a line that indicates recording is starting.
 

Narcogen

Active Member
Also just a startup log.

15:58:13.096: ==== Startup complete ===============================================
15:58:13.098: Service '' not found
15:58:13.110: All scene data cleared
15:58:13.110: ------------------------------------------------
15:58:13.151: WASAPI: Device 'Realtek HD Audio 2nd output (Realtek High Definition Audio)' initialized
15:58:13.186: adding 46 milliseconds of audio buffering, total audio buffering is now 46 milliseconds (source: Urządzenie audio)
15:58:13.186:
15:58:13.324: adding 46 milliseconds of audio buffering, total audio buffering is now 92 milliseconds (source: Mikrofon/Wejście liniowe)
15:58:13.324:
15:58:13.367: WASAPI: Device 'Mikrofon (Realtek High Definition Audio)' initialized
15:58:13.370: adding 23 milliseconds of audio buffering, total audio buffering is now 116 milliseconds (source: Mikrofon/Wejście liniowe)
15:58:13.370:
15:58:13.726: Switched to scene 'Scena'
15:58:13.728: ------------------------------------------------
15:58:13.728: Loaded scenes:
15:58:13.728: - scene 'Scena':
15:58:13.728: - source: 'Przechwytywanie ekranu' (monitor_capture)
15:58:13.728: - scene 'Scena 2':
15:58:13.728: - source: 'fortnite' (game_capture)
15:58:13.728: - scene 'Scena 3':
15:58:13.728: - source: 'Minecraft' (game_capture)
15:58:13.728: ------------------------------------------------


From the Help menu, choose "Show Log Files". It will open a folder with your recent logs.

Sort the list by date. Open each one, latest first. Look through them for a line entry that indicates that recording or streaming is starting, and then another one that indicates it is stopping.

After OBS stops a stream or recording session, it then writes into the log information about performance that is used to troubleshoot. It mentions "lagged" or "dropped" frames in rendering, encoding, or uploading.

Without that information it's not easy to guess what is causing your issue. If you don't run OBS, start an output session, observe your problem, and then stop the output session (recording OR streaming) then this information is not in the log. If you do that, and information is still not in the log, then it is the wrong log file-- go to the next one.
 

Maksiol

New Member
This is what it was all about


18:47:45.646: ---------------------------------
18:47:45.646: ==== Startup complete ===============================================
18:47:45.648: Service '' not found
18:47:45.658: All scene data cleared
18:47:45.659: ------------------------------------------------
18:47:45.699: WASAPI: Device 'Realtek HD Audio 2nd output (Realtek High Definition Audio)' initialized
18:47:45.745: adding 46 milliseconds of audio buffering, total audio buffering is now 46 milliseconds (source: Urządzenie audio)
18:47:45.745:
18:47:45.894: WASAPI: Device 'Mikrofon (Realtek High Definition Audio)' initialized
18:47:46.131: Switched to scene 'Scena'
18:47:46.132: ------------------------------------------------
18:47:46.132: Loaded scenes:
18:47:46.132: - scene 'Scena':
18:47:46.132: - source: 'Przechwytywanie ekranu' (monitor_capture)
18:47:46.132: - scene 'Scena 2':
18:47:46.132: - source: 'fortnite' (game_capture)
18:47:46.132: - scene 'Scena 3':
18:47:46.132: - source: 'Minecraft' (game_capture)
18:47:46.132: ------------------------------------------------
18:47:56.931: adding 23 milliseconds of audio buffering, total audio buffering is now 69 milliseconds (source: Mikrofon/Wejście liniowe)
18:47:56.931:
09:59:15.526: adding 23 milliseconds of audio buffering, total audio buffering is now 92 milliseconds (source: Urządzenie audio)
09:59:15.526:
12:42:30.299: ==== Shutting down ==================================================
12:42:30.335: Switched to scene '(null)'
12:42:30.343: WASAPI: Device 'Realtek HD Audio 2nd output (Realtek High Definition Audio)' Terminated
12:42:30.356: WASAPI: Device 'Mikrofon (Realtek High Definition Audio)' Terminated
12:42:30.524: All scene data cleared
12:42:30.524: ------------------------------------------------
 

Narcogen

Active Member
If the log doesn't contain lines like this:

08:58:23.633: ==== Streaming Start ===============================================
08:58:29.714: [rtmp stream: 'adv_stream'] User stopped the stream
08:58:29.715: Output 'adv_stream': stopping
08:58:29.715: Output 'adv_stream': Total frames output: 154
08:58:29.715: Output 'adv_stream': Total drawn frames: 183
08:58:29.717: ==== Streaming Stop ================================================


Then either you're not pressing the record or stream buttons, or you're not providing the correct log. The
 

Maksiol

New Member
18:41:40.096: ==== Recording Start ===============================================
18:41:40.096: [ffmpeg muxer: 'adv_file_output'] Writing file 'C:/Users/Win10/Videos/Captures/2019-07-22 18-41-39.mp4'...
18:42:31.934: Stopping recording due to hotkey
18:42:32.208: [ffmpeg muxer: 'adv_file_output'] Output of file 'C:/Users/Win10/Videos/Captures/2019-07-22 18-41-39.mp4' stopped
18:42:32.209: Output 'adv_file_output': stopping
18:42:32.209: Output 'adv_file_output': Total frames output: 3111
18:42:32.209: Output 'adv_file_output': Total drawn frames: 3127
18:42:32.209: ==== Recording Stop ================================================
 

Narcogen

Active Member
I would suggest switching to simple output mode, indistinguishable quality, large file size, and seeing if the problem persists.

The original log shows a certain amount of audio buffering that could indicate CPU overload.
 

Narcogen

Active Member
Then reduce either canvas resolution or frame rate, or lower the quality setting. If OBS is causing sound to go out of sync, then the most common reason is that the computer is being asked to do more than it can.

The other possibility is that something is delaying the sound before it enters OBS.
 

Maksiol

New Member
I'm sorry, the sound was normal, but only in the first two movies.
It's still delayed.
I tried to change the resolution,but it didn't help
 
Top