Question / Help Audio Sync problems

Ziteseve

New Member
So hi!

Im a newblet streamer and im having issues getting my audio to sync (both mic and game audio) are about 1-1.5 sec behind the video even towards the end of a 2 hour stream its still only 1-2 seconds behind so at least its staying consistent but is there a way to delay video to force a sync?
 

Ziteseve

New Member
Here is the log (i have tried adjusting a few settings here and there but nothing seems to work.)

Code:
18:53:30: No Intel graphics adapter visible in QSVHelper.exe, Optimus problem?
18:53:30: CUDA loaded successfully
18:53:30: 2 CUDA capable devices found
18:53:30: [ GPU #0 - < GeForce GTX 680 > has Compute SM 3.0, NVENC Available ]
18:53:30: [ GPU #1 - < GeForce GTX 680 > has Compute SM 3.0, NVENC Available ]
18:55:19: Open Broadcaster Software v0.613b - 64bit ( ^ω^)
18:55:19: -------------------------------
18:55:19: CPU Name: Intel(R) Core(TM) i7-3820 CPU @ 3.60GHz
18:55:19: CPU Speed: 3599MHz
18:55:19: Physical Memory:  16384MB Total, 10173MB Free
18:55:19: stepping id: 7, model 45, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
18:55:19: monitor 1: pos={0, 0}, size={1920, 1080}
18:55:19: Windows Version: 6.1 Build 7601 S
18:55:19: Aero is Enabled
18:55:19: -------------------------------
18:55:19: OBS Modules:
18:55:19: Base Address     Module
18:55:19: 000000003F880000 OBS.exe
18:55:19: 00000000F1D20000 OBSApi.dll
18:55:19: 00000000F99D0000 DShowPlugin.dll
18:55:19: 00000000F99A0000 GraphicsCapture.dll
18:55:19: 00000000FAFF0000 NoiseGate.dll
18:55:19: 00000000F9980000 PSVPlugin.dll
18:55:19: ------------------------------------------
18:55:19: Adapter 1
18:55:19:   Video Adapter: NVIDIA GeForce GTX 680
18:55:19:   Video Adapter Dedicated Video Memory: 4187684864
18:55:19:   Video Adapter Shared System Memory: 4026531840
18:55:19:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
18:58:35: =====Stream Start: 2014-04-07, 18:58:35===============================================
18:58:35:   Multithreaded optimizations: On
18:58:35:   Base resolution: 1280x720
18:58:35:   Output resolution: 1280x720
18:58:35: ------------------------------------------
18:58:35: Loading up D3D10 on NVIDIA GeForce GTX 680 (Adapter 1)...
18:58:35: ------------------------------------------
18:58:35: Audio Format: 44100 Hz
18:58:35: ------------------------------------------
18:58:35: Audio Channels: 2 Ch
18:58:35: Playback device Default
18:58:35: ------------------------------------------
18:58:35: Using desktop audio input: Speakers (2- Sennheiser 3D G4ME1)
18:58:35: ------------------------------------------
18:58:35: Using auxilary audio input: Blue Yeti (BLUE YETI PRO Audio)
18:58:36: ------------------------------------------
18:58:36: Audio Encoding: AAC
18:58:36:     bitrate: 128
18:58:36: Using graphics capture
18:58:36: Using text output
18:58:36: Using text output
18:58:36: Scene buffering time set to 60
18:58:36: ------------------------------------------
18:58:36: Video Encoding: x264
18:58:36:     fps: 30
18:58:36:     width: 1280, height: 720
18:58:36:     preset: fast
18:58:36:     profile: main
18:58:36:     keyint: 250
18:58:36:     CBR: no
18:58:36:     CFR: no
18:58:36:     max bitrate: 1700
18:58:36:     buffer size: 2000
18:58:36:     quality: 7
18:58:36: ------------------------------------------
18:58:36: Syncing audio to video time (WARNING: you should not be doing this if you are just having webcam desync, that's a separate issue)
18:58:37: SharedTexCapture hooked
18:58:39: Using RTMP service: Twitch / Justin.tv
18:58:39:   Server selection: rtmp://live-jfk.justin.tv/app
18:58:39:   Interface: Intel(R) 82574L Gigabit Network Connection (ethernet, 1000 mbps)
18:58:39: Completed handshake with rtmp://live-jfk.justin.tv/app in 239 ms.
18:58:39: SO_SNDBUF was at 8192
18:58:39: SO_SNDBUF is now 65536
18:58:41: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 34860 / 233472)
18:59:26: =====Stream End (recording continues): 2014-04-07, 18:59:26=========================
18:59:26: RTMPPublisher::SocketLoop: Graceful loop exit
18:59:26: Average send payload: 5130 bytes, average send interval: 26 ms
18:59:26: Number of times waited to send: 0, Waited for a total of 0 bytes
18:59:26: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
18:59:26: Number of bytes sent: 8536632
18:59:30: Total frames encoded: 1605, total frames duplicated: 1 (0.06%)
18:59:30: Total frames rendered: 1606, number of late frames: 1 (0.06%) (it's okay for some frames to be late)
18:59:30: 
18:59:30: Profiler time results:
18:59:30: 
18:59:30: ==============================================================
18:59:30: video thread frame - [100%] [avg time: 1.364 ms] [children: 57%] [unaccounted: 43%]
18:59:30: | scene->Preprocess - [52.2%] [avg time: 0.712 ms]
18:59:30: | GPU download and conversion - [4.84%] [avg time: 0.066 ms] [children: 3.37%] [unaccounted: 1.47%]
18:59:30: | | flush - [2.57%] [avg time: 0.035 ms]
18:59:30: | | CopyResource - [0.66%] [avg time: 0.009 ms]
18:59:30: | | conversion to 4:2:0 - [0.147%] [avg time: 0.002 ms]
18:59:30: Convert444Threads - [100%] [avg time: 0.321 ms] [children: 99.1%] [unaccounted: 0.935%]
18:59:30: | Convert444toNV12 - [99.1%] [avg time: 0.318 ms]
18:59:30: encoder thread frame - [100%] [avg time: 0.886 ms] [children: 2.6%] [unaccounted: 97.4%]
18:59:30: | sending stuff out - [2.6%] [avg time: 0.023 ms]
18:59:30: ==============================================================
18:59:30: 
18:59:30: 
18:59:30: Profiler CPU results:
18:59:30: 
18:59:30: ==============================================================
18:59:30: video thread frame - [cpu time: avg 0.767 ms, total 1232.41 ms] [avg calls per frame: 1]
18:59:30: | scene->Preprocess - [cpu time: avg 0.699 ms, total 1123.21 ms] [avg calls per frame: 1]
18:59:30: | GPU download and conversion - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
18:59:30: | | flush - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
18:59:30: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
18:59:30: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
18:59:30: Convert444Threads - [cpu time: avg 0.262 ms, total 842.405 ms] [avg calls per frame: 2]
18:59:30: | Convert444toNV12 - [cpu time: avg 0.252 ms, total 811.205 ms] [avg calls per frame: 2]
18:59:30: encoder thread frame - [cpu time: avg 0.126 ms, total 202.801 ms] [avg calls per frame: 1]
18:59:30: | sending stuff out - [cpu time: avg 0.019 ms, total 31.201 ms] [avg calls per frame: 1]
18:59:30: ==============================================================
18:59:30: 
18:59:30: =====Stream End: 2014-04-07, 18:59:30=================================================
 

Jack0r

The Helping Squad
Change your scene buffering time back to 700, that could explain the audio sync problems.
The rest looks pretty ok. Any reason why you changed it to 60?
 

Ziteseve

New Member
Change your scene buffering time back to 700, that could explain the audio sync problems.
The rest looks pretty ok. Any reason why you changed it to 60?


Was checking to see if that would fix it (it did not) i think im going to do a fresh install :/ i dont have any issues with Xsplit for streaming but i prefer all the settings you get with obs so im determined to get it to work!

Changing it back did not work.

Fresh install did not work....

Fresh install after complete uninstall of temp/profile info did not work (so even with the Default settings im still getting a 2 sec delay on audio in both live streams and local recordings. :(

Updated all my drivers literally going to just give up go back to fail ass xsplit :(


Edit- 4 hours later i think i figured it out... instead of only a 700 scene delay i needed a 2000 scene delay and everything seems to match up.
 
Last edited:

Jack0r

The Helping Squad
Thanks for reporting back, thats definitely very interesting. I will link this topic to the other moderators and devs!
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Thank you for being patient with it/us. I also recommend the platform clock trick, which improves computer timing.

Run a command prompt as admin, and type
bcdedit /set useplatformclock true

Then reboot. Can help in many cases of computer timing issues. Can also be removed with: bcdedit /deletevalue useplatformclock

if you wish to remove it.
 
Top