Question / Help Audio out of sync with the video

JayPower

New Member
Hey guys, I'm having some trouble with my audio. It's not synchronized to my video. This is not just the audio from my mic, but all the sound is out of sync with the video.
I have MP3 with 128 bit rate as audio encoding, 10 quality with 3k bitrate and buffer size as video encoding.
I'm streaming in 1920x1080 resolution with 60fps.
My Desktop and microphone audio Device is set to default.
I have multithreaded optimization enabled with process piority class set to normal.
My video CPU preset is set to very fast.
I have "Force audio to sync to video time enabled", but it's not working. I do have "use higher quality resampling" enabled.

I think I have the rest of the setting at the default and I'm streaming on twitch.tv if that would matter. I would really appreciate some help. Please tell me if I'm missed mentioning important settings.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
The "force audio to sync to video time" is meant as a last resort feature in cases like these, you use it in combination with "global audio offset" below it. The default audio timing from your computer should in theory always be more accurate, but I would need to see a log file. I can't do much without a log file
 

JayPower

New Member
Hi Jim, sorry for the late reply.

Here's a log from a short 20second file output only broadcast where the audio was out of sync.

Code:
Open Broadcaster Software v0.472b - 32bit (´・ω・`)
-------------------------------
CPU Name: Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
CPU Speed: 3392MHz
Physical Memory:  4095MB Total, 2192MB Free
stepping id: 7, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
monitor 1: pos={0, 0}, size={1920, 1080}
monitor 2: pos={1920, 0}, size={1280, 1024}
Windows Version: 6.1 Build 7601 S
Aero is Enabled
------------------------------------------
Adapter 1
  Video Adapter: NVIDIA GeForce GTX 460 SE
  Video Adapter Dedicated Video Memory: 1025966080
  Video Adapter Shared System Memory: 2410948608
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1920x1080
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Luidsprekers (Realtek High Definition Audio)
------------------------------------------
Using auxilary audio input: Microfoon (5- Samson C01U              )
------------------------------------------
Audio Encoding: MP3
    bitrate: 128
Using bitmap image
Using Monitor Capture
------------------------------------------
    device: Logitech HD Webcam C270,
    device id \\?\usb#vid_046d&pid_0825&mi_00#7&19019598&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: RGB24, usingFourCC: false, res: 1280x960 - 1280x960, fps: 5-30, fourCC: 00000000

Using directshow input
Using graphics capture
x264: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
x264: profile High, level 4.2
------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1920, height: 1080
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 3000
    buffer size: 3000
    quality: 10
------------------------------------------
Syncing audio to video time
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using bitmap image
Using bitmap image
Using bitmap image
Using text output
Using text output
Using text output
Using text output
------------------------------------------
    device: Logitech HD Webcam C270,
    device id \\?\usb#vid_046d&pid_0825&mi_00#7&19019598&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: RGB24, usingFourCC: false, res: 1280x960 - 1280x960, fps: 5-30, fourCC: 00000000

Using directshow input
Using Monitor Capture
Using bitmap image
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using bitmap image
Using Monitor Capture
------------------------------------------
    device: Logitech HD Webcam C270,
    device id \\?\usb#vid_046d&pid_0825&mi_00#7&19019598&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: RGB24, usingFourCC: false, res: 1280x960 - 1280x960, fps: 5-30, fourCC: 00000000

Using directshow input
Using graphics capture
SharedTexCapture hooked
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using bitmap image
Using bitmap image
Using bitmap image
Using text output
Using text output
Using text output
Using text output
------------------------------------------
    device: Logitech HD Webcam C270,
    device id \\?\usb#vid_046d&pid_0825&mi_00#7&19019598&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: RGB24, usingFourCC: false, res: 1280x960 - 1280x960, fps: 5-30, fourCC: 00000000

Using directshow input
Using Monitor Capture
Using bitmap image
Total frames rendered: 21295, number of frames that lagged: 940 (4.41%) (it's okay for some frames to lag)
x264: frame I:87    Avg QP:20.21  size:179424
x264: frame P:5453  Avg QP:22.97  size:  3866
x264: frame B:15718 Avg QP:26.94  size:   631
x264: consecutive B-frames:  1.3%  0.2%  0.3% 98.2%
x264: mb I  I16..4: 18.0% 33.9% 48.1%
x264: mb P  I16..4:  0.6%  0.1%  0.0%  P16..4:  5.4%  1.2%  0.2%  0.0%  0.0%    skip:92.4%
x264: mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  1.4%  0.4%  0.0%  direct: 0.5%  skip:97.6%  L0:27.2% L1:34.3% BI:38.5%
x264: 8x8 transform intra:27.1% inter:22.8%
x264: coded y,uvDC,uvAC intra: 62.7% 37.6% 21.7% inter: 0.7% 0.8% 0.1%
x264: i16 v,h,dc,p: 61% 24% 12%  3%
x264: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 18% 32%  4%  7%  4%  4%  6%  9%
x264: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 22% 12%  9%  8%  6%  7%  7%  8%
x264: i8c dc,h,v,p: 65% 21% 12%  2%
x264: Weighted P-Frames: Y:0.0% UV:0.0%
x264: kb/s:957.82
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1920x1080
------------------------------------------
Loading up D3D10...
Playback device {0.0.0.00000000}.{b61b3bee-b47f-4029-b413-0217ea2bc0f4}
------------------------------------------
Using desktop audio input: Realtek HDMI Output (Realtek High Definition Audio)
------------------------------------------
Using auxilary audio input: Microfoon (5- Samson C01U              )
------------------------------------------
Audio Encoding: MP3
    bitrate: 128
Using text output
Using text output
Using text output
Using text output
------------------------------------------
    device: Logitech HD Webcam C270,
    device id \\?\usb#vid_046d&pid_0825&mi_00#7&19019598&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: RGB24, usingFourCC: false, res: 1280x960 - 1280x960, fps: 5-30, fourCC: 00000000

Using directshow input
Using Window Capture
Using bitmap image
x264: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
x264: profile High, level 4.2
------------------------------------------
Video Encoding: x264
    fps: 60
    width: 1920, height: 1080
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 3000
    buffer size: 3000
    quality: 10
------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Syncing audio to video time
Using bitmap image
------------------------------------------
    device: Logitech HD Webcam C270,
    device id \\?\usb#vid_046d&pid_0825&mi_00#7&19019598&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: RGB24, usingFourCC: false, res: 1280x960 - 1280x960, fps: 5-30, fourCC: 00000000

Using directshow input
Using graphics capture
SharedTexCapture hooked
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using text output
Using text output
Using text output
Using text output
------------------------------------------
    device: Logitech HD Webcam C270,
    device id \\?\usb#vid_046d&pid_0825&mi_00#7&19019598&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: RGB24, usingFourCC: false, res: 1280x960 - 1280x960, fps: 5-30, fourCC: 00000000

Using directshow input
Using Window Capture
Using bitmap image
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using bitmap image
------------------------------------------
    device: Logitech HD Webcam C270,
    device id \\?\usb#vid_046d&pid_0825&mi_00#7&19019598&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: RGB24, usingFourCC: false, res: 1280x960 - 1280x960, fps: 5-30, fourCC: 00000000

Using directshow input
Using graphics capture
SharedTexCapture hooked
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using text output
Using text output
Using text output
Using text output
------------------------------------------
    device: Logitech HD Webcam C270,
    device id \\?\usb#vid_046d&pid_0825&mi_00#7&19019598&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: RGB24, usingFourCC: false, res: 1280x960 - 1280x960, fps: 5-30, fourCC: 00000000

Using directshow input
Using Window Capture
Using bitmap image
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using bitmap image
------------------------------------------
    device: Logitech HD Webcam C270,
    device id \\?\usb#vid_046d&pid_0825&mi_00#7&19019598&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: RGB24, usingFourCC: false, res: 1280x960 - 1280x960, fps: 5-30, fourCC: 00000000

Using directshow input
Using graphics capture
SharedTexCapture hooked
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using text output
Using text output
Using text output
Using text output
------------------------------------------
    device: Logitech HD Webcam C270,
    device id \\?\usb#vid_046d&pid_0825&mi_00#7&19019598&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: RGB24, usingFourCC: false, res: 1280x960 - 1280x960, fps: 5-30, fourCC: 00000000

Using directshow input
Using Window Capture
Using bitmap image
Total frames rendered: 1003, number of frames that lagged: 19 (1.89%) (it's okay for some frames to lag)
x264: frame I:7     Avg QP:22.90  size:140587
x264: frame P:263   Avg QP:24.61  size: 10044
x264: frame B:701   Avg QP:31.97  size:  1159
x264: consecutive B-frames:  3.6%  0.2%  0.6% 95.6%
x264: mb I  I16..4: 26.1% 39.0% 34.8%
x264: mb P  I16..4:  1.6%  1.0%  0.5%  P16..4:  8.6%  2.5%  1.1%  0.0%  0.0%    skip:84.6%
x264: mb B  I16..4:  0.1%  0.0%  0.0%  B16..8:  2.1%  0.7%  0.1%  direct: 0.4%  skip:96.6%  L0:39.1% L1:41.6% BI:19.3%
x264: 8x8 transform intra:35.0% inter:21.0%
x264: coded y,uvDC,uvAC intra: 59.4% 31.3% 16.1% inter: 1.3% 1.4% 0.4%
x264: i16 v,h,dc,p: 47% 27% 22%  5%
x264: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13% 16% 35%  4%  9%  4%  5%  5%  8%
x264: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 21% 15%  9%  9%  6%  7%  5%  6%
x264: i8c dc,h,v,p: 66% 20% 12%  2%
x264: Weighted P-Frames: Y:2.3% UV:2.3%
x264: kb/s:1477.26
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 10.404 ms] [avg calls per frame: 1] [children: 89.8%] [unaccounted: 10.2%]
| scene->Preprocess - [28.2%] [avg time: 2.939 ms] [avg calls per frame: 1]
| video encoding and uploading - [61.5%] [avg time: 6.4 ms] [avg calls per frame: 1] [children: 35.9%] [unaccounted: 25.6%]
| | CopyResource - [0.125%] [avg time: 0.013 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.0384%] [avg time: 0.004 ms] [avg calls per frame: 0]
| | call to encoder - [35.7%] [avg time: 3.718 ms] [avg calls per frame: 0]
| | sending stuff out - [0.00961%] [avg time: 0.001 ms] [avg calls per frame: 0]
==============================================================

I hope this is helpful.
 
Top