Question / Help Sound gets desynced in long Video Files + General Questions

LaV

New Member
Hello everyone,

I have recently started using OBS to record footage of Video Games in window mode. Diablo 2 to be precise.

Sadly I had to notice that the sound was getting delayed throughout the entire video if the video has reached a specific length.

Here is a log of a video with the total length of 3:00:31 with audio-desync:
Code:
20:04:25: Open Broadcaster Software v0.522b - 64bit ( ^ω^)
20:04:25: -------------------------------
20:04:25: CPU Name: Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz
20:04:25: CPU Speed: 3192MHz
20:04:25: Physical Memory:  8087MB Total, 5348MB Free
20:04:25: stepping id: 9, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
20:04:25: monitor 1: pos={-1680, 0}, size={1680, 1050}
20:04:25: monitor 2: pos={0, 0}, size={1680, 1050}
20:04:25: Windows Version: 6.1 Build 7601 S
20:04:25: Aero is Disabled
20:04:25: -------------------------------
20:04:25: OBS Modules:
20:04:25: Base Address     Module
20:04:25: 000000003F690000 OBS.exe
20:04:25: 00000000EEC30000 OBSApi.dll
20:04:25: 00000000F4000000 DShowPlugin.dll
20:04:25: 00000000F3FD0000 GraphicsCapture.dll
20:04:25: 00000000F3FB0000 NoiseGate.dll
20:04:25: ------------------------------------------
20:04:25: Adapter 1
20:04:25:   Video Adapter: NVIDIA GeForce GTX 660 Ti
20:04:25:   Video Adapter Dedicated Video Memory: 2091319296
20:04:25:   Video Adapter Shared System Memory: 2147479552
20:04:25: ------------------------------------------
20:04:25: Adapter 2
20:04:25:   Video Adapter: Intel(R) HD Graphics
20:04:25:   Video Adapter Dedicated Video Memory: 67108864
20:04:25:   Video Adapter Shared System Memory: 1711276032
20:04:25: =====Stream Start: 2013-05-23, 20:04:25===============================================
20:04:25:   Multithreaded optimizations: On
20:04:25:   Base resolution: 800x600
20:04:25:   Output resolution: 800x600
20:04:25: ------------------------------------------
20:04:25: Loading up D3D10...
20:04:25: Playback device Default
20:04:25: ------------------------------------------
20:04:25: Using desktop audio input: Lautsprecher (Realtek High Definition Audio)
20:04:25: ------------------------------------------
20:04:25: Audio Encoding: AAC
20:04:25:     bitrate: 192
20:04:25: Using Window Capture
20:04:25: ------------------------------------------
20:04:25: Video Encoding: x264
20:04:25:     fps: 60
20:04:25:     width: 800, height: 600
20:04:25:     preset: veryfast
20:04:25:     CBR: yes
20:04:25:     CFR: no
20:04:25:     max bitrate: 1750
20:04:25: ------------------------------------------
20:04:27: Total frames rendered: 100, number of frames that lagged: 1 (1.00%) (it's okay for some frames to lag)
20:04:27: =====Stream End: 2013-05-23, 20:04:27=================================================
20:24:12: =====Stream Start: 2013-05-23, 20:24:12===============================================
20:24:12:   Multithreaded optimizations: On
20:24:12:   Base resolution: 800x600
20:24:12:   Output resolution: 800x600
20:24:12: ------------------------------------------
20:24:12: Loading up D3D10...
20:24:12: Playback device Default
20:24:12: ------------------------------------------
20:24:12: Using desktop audio input: Lautsprecher (Realtek High Definition Audio)
20:24:12: ------------------------------------------
20:24:12: Audio Encoding: AAC
20:24:12:     bitrate: 192
20:24:12: Using Window Capture
20:24:12: ------------------------------------------
20:24:12: Video Encoding: x264
20:24:12:     fps: 60
20:24:12:     width: 800, height: 600
20:24:12:     preset: veryfast
20:24:12:     CBR: yes
20:24:12:     CFR: no
20:24:12:     max bitrate: 1750
20:24:12: ------------------------------------------
23:24:45: Total frames rendered: 649960, number of frames that lagged: 11 (0.00%) (it's okay for some frames to lag)
23:25:04: =====Stream End: 2013-05-23, 23:25:04=================================================
23:47:03: 
23:47:03: Profiler results:
23:47:03: 
23:47:03: ==============================================================
23:47:03: frame - [100%] [avg time: 2.015 ms] [avg calls per frame: 1] [children: 82.7%] [unaccounted: 17.3%]
23:47:03: | scene->Preprocess - [36.7%] [avg time: 0.739 ms] [avg calls per frame: 1]
23:47:03: | video encoding and uploading - [46%] [avg time: 0.927 ms] [avg calls per frame: 1] [children: 45.6%] [unaccounted: 0.447%]
23:47:03: | | CopyResource - [0.794%] [avg time: 0.016 ms] [avg calls per frame: 0]
23:47:03: | | conversion to 4:2:0 - [3.23%] [avg time: 0.065 ms] [avg calls per frame: 0]
23:47:03: | | call to encoder - [39.4%] [avg time: 0.793 ms] [avg calls per frame: 0]
23:47:03: | | sending stuff out - [2.18%] [avg time: 0.044 ms] [avg calls per frame: 0]
23:47:03: ==============================================================
23:47:03:

Here's a log from a perfectly fine short-test-video with the same settings (Length: 0:00:36)
Code:
01:17:54: Open Broadcaster Software v0.522b - 64bit ( ^ω^)
01:17:54: -------------------------------
01:17:54: CPU Name: Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz
01:17:54: CPU Speed: 3192MHz
01:17:54: Physical Memory:  8087MB Total, 5726MB Free
01:17:54: stepping id: 9, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
01:17:54: monitor 1: pos={-1680, 0}, size={1680, 1050}
01:17:54: monitor 2: pos={0, 0}, size={1680, 1050}
01:17:54: Windows Version: 6.1 Build 7601 S
01:17:54: Aero is Disabled
01:17:54: -------------------------------
01:17:54: OBS Modules:
01:17:54: Base Address     Module
01:17:54: 000000003FAB0000 OBS.exe
01:17:54: 00000000EDAC0000 OBSApi.dll
01:17:54: 00000000F3830000 DShowPlugin.dll
01:17:54: 00000000F15B0000 GraphicsCapture.dll
01:17:54: 00000000F0550000 NoiseGate.dll
01:17:54: ------------------------------------------
01:17:54: Adapter 1
01:17:54:   Video Adapter: NVIDIA GeForce GTX 660 Ti
01:17:54:   Video Adapter Dedicated Video Memory: 2091319296
01:17:54:   Video Adapter Shared System Memory: 2147479552
01:17:54: ------------------------------------------
01:17:54: Adapter 2
01:17:54:   Video Adapter: Intel(R) HD Graphics
01:17:54:   Video Adapter Dedicated Video Memory: 67108864
01:17:54:   Video Adapter Shared System Memory: 1711276032
01:17:54: =====Stream Start: 2013-05-27, 01:17:54===============================================
01:17:54:   Multithreaded optimizations: On
01:17:54:   Base resolution: 800x600
01:17:54:   Output resolution: 800x600
01:17:54: ------------------------------------------
01:17:54: Loading up D3D10...
01:17:54: Playback device Default
01:17:54: ------------------------------------------
01:17:54: Using desktop audio input: Lautsprecher (Realtek High Definition Audio)
01:17:54: ------------------------------------------
01:17:54: Audio Encoding: AAC
01:17:54:     bitrate: 192
01:17:54: Using Window Capture
01:17:54: ------------------------------------------
01:17:54: Video Encoding: x264
01:17:54:     fps: 60
01:17:54:     width: 800, height: 600
01:17:54:     preset: veryfast
01:17:54:     CBR: yes
01:17:54:     CFR: no
01:17:54:     max bitrate: 1750
01:17:54: ------------------------------------------
01:18:31: Total frames rendered: 2250, number of frames that lagged: 2 (0.09%) (it's okay for some frames to lag)
01:18:31: =====Stream End: 2013-05-27, 01:18:31=================================================
01:18:35: 
01:18:35: Profiler results:
01:18:35: 
01:18:35: ==============================================================
01:18:35: frame - [100%] [avg time: 1.694 ms] [avg calls per frame: 1] [children: 79.2%] [unaccounted: 20.8%]
01:18:35: | scene->Preprocess - [39.7%] [avg time: 0.673 ms] [avg calls per frame: 1]
01:18:35: | video encoding and uploading - [39.5%] [avg time: 0.669 ms] [avg calls per frame: 1] [children: 39.1%] [unaccounted: 0.413%]
01:18:35: | | CopyResource - [0.826%] [avg time: 0.014 ms] [avg calls per frame: 0]
01:18:35: | | conversion to 4:2:0 - [0.413%] [avg time: 0.007 ms] [avg calls per frame: 0]
01:18:35: | | call to encoder - [37.5%] [avg time: 0.636 ms] [avg calls per frame: 0]
01:18:35: | | sending stuff out - [0.295%] [avg time: 0.005 ms] [avg calls per frame: 0]
01:18:35: ==============================================================
01:18:35:
Note: I have had perfectly fine recordings of lengths up to 2:19:07 without any audio desync.

I am not streaming, I use OBS to record videos.

Heres an album of my OBS Settings: http://imgur.com/a/PvkXm


Okay, lets get to my general questions:

Is it possible to record a window even though its in the background?
Are my settings okay? Can I configure something better? Did i configure something wrong? Can I be more efficient with bitrate or something?


Thanks in advance,
LaV



edit:


I've found R1CH's guide and tried it out. I will try recording a ~3,5h video later and see if its getting desynced


edit2:

I have recorded a 3:15 5,2gb test-video with crf=20 and didnt experience any desync
 
Top