Question / Help weird audio de-sync

RedQueen

New Member
Hello, I have experienced a weird audio de-sync when I play "Sniper Elite V2" in where I fire a rifle and you see it impact, but don't hear the shot until several seconds after, and it only happens with this game. I have played Command & Conquer games with identical settings in OBS without issue, the sound and video match up perfectly in other games. Is there a known issue with Sniper Elite, or some kind of special setting it needs to correctly sync? I know my computer isn't that great for streaming, but just odd it's only this game and it averages 25-30fps.


as for that log file...


Code:
04:15:12: Open Broadcaster Software v0.592b - 64bit ( ^ω^)
04:15:12: -------------------------------
04:15:12: CPU Name: Intel(R) Core(TM)2 Duo CPU     P8700  @ 2.53GHz
04:15:12: CPU Speed: 2527MHz
04:15:12: Physical Memory:  6143MB Total, 3739MB Free
04:15:12: stepping id: 10, model 23, family 6, type 0, extmodel 0, extfamily 0, HTT 1, logical cores 2, total cores 2
04:15:12: monitor 1: pos={0, 0}, size={1176, 664}
04:15:12: Windows Version: 6.1 Build 7601 S
04:15:12: Aero is Enabled
04:15:12: -------------------------------
04:15:12: OBS Modules:
04:15:12: Base Address     Module
04:15:12: 000000003F620000 OBS.exe
04:15:12: 00000000EB830000 OBSApi.dll
04:15:12: 00000000F43E0000 DShowPlugin.dll
04:15:12: 00000000FA5A0000 GraphicsCapture.dll
04:15:12: 00000000F4C70000 NoiseGate.dll
04:15:12: 00000000F4DA0000 PSVPlugin.dll
04:15:12: ------------------------------------------
04:15:12: Adapter 1
04:15:12:   Video Adapter: NVIDIA GeForce GTX 260M  
04:15:12:   Video Adapter Dedicated Video Memory: 1050214400
04:15:12:   Video Adapter Shared System Memory: 2952284160
04:15:12:   Video Adapter Output 1: pos={0, 0}, size={1176, 664}, attached=true
04:15:12: =====Stream Start: 2014-01-31, 04:15:12===============================================
04:15:12:   Multithreaded optimizations: On
04:15:12:   Base resolution: 806x628
04:15:12:   Output resolution: 804x628
04:15:12: ------------------------------------------
04:15:12: Loading up D3D10 on NVIDIA GeForce GTX 260M (Adapter 1)...
04:15:12: ------------------------------------------
04:15:12: Audio Format: 48000hz
04:15:12: Playback device {0.0.0.00000000}.{53c6d8c5-68f1-4b0d-908d-d5b599b2f4c9}
04:15:12: ------------------------------------------
04:15:12: Using desktop audio input: Speakers (Realtek High Definition Audio)
04:15:12: ------------------------------------------
04:15:12: Audio Encoding: AAC
04:15:12:     bitrate: 128
04:15:12: Using Window Capture
04:15:12: Scene buffering time set to 700
04:15:12: ------------------------------------------
04:15:12: Video Encoding: x264
04:15:12:     fps: 30
04:15:12:     width: 804, height: 628
04:15:12:     preset: ultrafast
04:15:12:     profile: main
04:15:12:     keyint: 60
04:15:12:     CBR: yes
04:15:12:     CFR: yes
04:15:12:     max bitrate: 1200
04:15:12:     buffer size: 1200
04:15:12: ------------------------------------------
04:15:12: MMDeviceAudioSource: Frequency for device 'Speakers (Realtek High Definition Audio)' is 384000, samples per sec is 48000
04:15:12: Syncing audio to video time (WARNING: you should not be doing this if you are just having webcam desync, that's a separate issue)
04:15:17: Using RTMP service: Twitch / Justin.tv
04:15:17:   Server selection: rtmp://live-jfk.justin.tv/app
04:15:17:   Interface: Atheros AR928X Wireless Network Adapter (802.11, 54 mbps)
04:15:17: Completed handshake with rtmp://live-jfk.justin.tv/app in 187 ms.
04:15:17: SO_SNDBUF was at 261360
04:15:17: SO_SNDBUF is now 65536
04:18:27: Total frames encoded: 5739, total frames duplicated: 1775 (30.93%)
04:18:27: Number of frames skipped due to encoder lag: 22 (0.38%)
04:18:27: Total frames rendered: 4820, number of late frames: 131 (2.72%) (it's okay for some frames to be late)
04:18:27: RTMPPublisher::SocketLoop: Aborting due to WSAEnumNetworkEvents failure, 10038
04:18:27: Average send payload: 4058 bytes, average send interval: 24 ms
04:18:27: Number of times waited to send: 0, Waited for a total of 0 bytes
04:18:27: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
04:18:27: Number of bytes sent: 31535331
04:18:27: 
04:18:27: Profiler time results:
04:18:27: 
04:18:27: ==============================================================
04:18:27: video thread frame - [100%] [avg time: 22.417 ms] [children: 96.6%] [unaccounted: 3.42%]
04:18:27: | scene->Preprocess - [40.4%] [avg time: 9.052 ms]
04:18:27: | GPU download and conversion - [56.2%] [avg time: 12.598 ms] [children: 56.1%] [unaccounted: 0.138%]
04:18:27: | | flush - [0.343%] [avg time: 0.077 ms]
04:18:27: | | CopyResource - [55.6%] [avg time: 12.461 ms]
04:18:27: | | conversion to 4:2:0 - [0.129%] [avg time: 0.029 ms]
04:18:27: Convert444Thread - [100%] [avg time: 1.517 ms] [children: 98.9%] [unaccounted: 1.12%]
04:18:27: | Convert444toNV12 - [98.9%] [avg time: 1.5 ms]
04:18:27: encoder thread frame - [100%] [avg time: 2.694 ms]
04:18:27: ==============================================================
04:18:27: 
04:18:27: 
04:18:27: Profiler CPU results:
04:18:27: 
04:18:27: ==============================================================
04:18:27: video thread frame - [cpu time: avg 3.935 ms, total 18969.7 ms] [avg calls per frame: 1]
04:18:27: | scene->Preprocess - [cpu time: avg 0.174 ms, total 842.401 ms] [avg calls per frame: 1]
04:18:27: | GPU download and conversion - [cpu time: avg 3.11 ms, total 14991.7 ms] [avg calls per frame: 1]
04:18:27: | | flush - [cpu time: avg 0.029 ms, total 140.401 ms] [avg calls per frame: 1]
04:18:27: | | CopyResource - [cpu time: avg 3.068 ms, total 14788.9 ms] [avg calls per frame: 1]
04:18:27: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
04:18:27: Convert444Thread - [cpu time: avg 0.964 ms, total 4648.83 ms] [avg calls per frame: 1]
04:18:27: | Convert444toNV12 - [cpu time: avg 0.958 ms, total 4617.63 ms] [avg calls per frame: 1]
04:18:27: encoder thread frame - [cpu time: avg 1.282 ms, total 7332.05 ms] [avg calls per frame: 1]
04:18:27: ==============================================================
04:18:27: 
04:18:27: =====Stream End: 2014-01-31, 04:18:27=================================================
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
In, the log, it says that you are using the option in advanced "sync audio timestamps to video time", which may actually be less accurate timing than if you have it off:

04:15:12: Syncing audio to video time (WARNING: you should not be doing this if you are just having webcam desync, that's a separate issue)
 

RedQueen

New Member
unfortunately that did not work, still had delayed audio. However I did an experiment and found something odd.... if I start OBS and launch a different game (C&C Generals: Zero Hour) but then exit that game and start Sniper Elite, there is no lag or sync issues. Any idea on that? or is it just a mild annoyance I will have to deal with?
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
I actually don't quite know. If that sync option both on or off doesn't change anything, then I would have to see the computer directly. I'm actually legitimately confused, because that never really happens.
 
Top