Bug Report New Webcam causes growing delay

KOKOStern

Member
Using 0.466a

Everything was working fine with my old 720p Microsoft Lifecam HD-3000.

I just got a Logitech Pro C920 cam (it's the best on the market) and simply changed the Properties of my "Main Camera" Global Source to use that one instead.

I then recorded an hour long video (Local Recording) and the camera starts fine but as time goes on there is a growing delay. At the end of the video the camera is about 3-4 seconds behind the rest of the screen and the audio.

I'm guessing the delay might be caused by the fact that this Global Source setting was used for a different camera and was changed, but that's just a guess.

Should I delete this global source, create a new one and update all my scenes? Will that help?

Log File from today follows:

Code:
Open Broadcaster Software v0.466a - 32bit (´・ω・`)
-------------------------------
CPU Name: Intel(R) Core(TM) i7 CPU         920  @ 2.67GHz
CPU Speed: 2664MHz
Physical Memory:  4095MB Total, 2880MB Free
stepping id: 5, model 10, family 6, type 0, extmodel 0, extfamily 0, HTT 1, logical cores 8, total cores 4
Windows Version: 6.1 Build 7600 
Aero is Disabled
------------------------------------------
Adapter 1
  Video Adapter: NVIDIA GeForce GTX 660 Ti
  Video Adapter Dedicated Video Memory: 2091319296
  Video Adapter Shared System Memory: 2147479552
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1280x720
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: Microphone (USB Audio Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 192
Using Window Capture
------------------------------------------
    device: Logitech HD Pro Webcam C920,
    device id \\?\usb#vid_046d&pid_082d&mi_00#6&80a626e&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: RGB24, usingFourCC: false, res: 1280x720 - 1280x720, fps: 5-30, fourCC: 00000000

Using directshow input
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    max bitrate: 4000
    buffer size: 3000
    quality: 10
------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using Window Capture
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Total frames rendered: 15648, number of frames that lagged: 5 (0.03%) (it's okay for some frames to lag)
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1280x720
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: Microphone (USB Audio Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 192
Using Window Capture
------------------------------------------
    device: Logitech HD Pro Webcam C920,
    device id \\?\usb#vid_046d&pid_082d&mi_00#6&80a626e&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: RGB24, usingFourCC: false, res: 1280x720 - 1280x720, fps: 5-30, fourCC: 00000000

Using directshow input
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    max bitrate: 4000
    buffer size: 3000
    quality: 10
------------------------------------------
Total frames rendered: 1490, number of frames that lagged: 43 (2.89%) (it's okay for some frames to lag)
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1280x720
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: Microphone (USB Audio Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 192
Using Window Capture
------------------------------------------
    device: Logitech HD Pro Webcam C920,
    device id \\?\usb#vid_046d&pid_082d&mi_00#6&80a626e&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: RGB24, usingFourCC: false, res: 1280x720 - 1280x720, fps: 5-30, fourCC: 00000000

Using directshow input
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    max bitrate: 4000
    buffer size: 3000
    quality: 10
------------------------------------------
Total frames rendered: 118474, number of frames that lagged: 268 (0.23%) (it's okay for some frames to lag)
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 22.345 ms] [avg calls per frame: 1] [children: 96.8%] [unaccounted: 3.2%]
| scene->Preprocess - [56.6%] [avg time: 12.645 ms] [avg calls per frame: 1]
| video encoding and uploading - [40.2%] [avg time: 8.985 ms] [avg calls per frame: 1] [children: 6.28%] [unaccounted: 33.9%]
| | CopyResource - [0.0671%] [avg time: 0.015 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.143%] [avg time: 0.032 ms] [avg calls per frame: 0]
| | call to encoder - [6.04%] [avg time: 1.349 ms] [avg calls per frame: 0]
| | sending stuff out - [0.0313%] [avg time: 0.007 ms] [avg calls per frame: 0]
==============================================================
 

micechal

Member
Have you seen this: obsproject.com/forum/viewtopic.php?f=18&t=1036 ? Try fiddling with the preferred output type option.
 

KOKOStern

Member
Changed the Output Type and now recording myself to check if it's better.

Edit: recorded myself for 42 minutes and there is still a delay that gets worse with time.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
the test version is more for base audio/video sync, not so much for some webcam that starts buffering its data further and further. usually if the webcam starts buffering the image it has something to do with the driver of the webcam.. very annoying actually. I may try to add an option to make it ignore timing information so hopefully it won't buffer
 

KOKOStern

Member
Oh, was gonna try the test version but if there's no point I won't.

I think the two major brands for webcams are the Logitech branch and the Microsoft Lifecams and the drivers for the entire line-up is the same. Maybe you can try and deal with those?

Anyways I'd love any kind of solution as I simply can't use my new camera ATM...
 

KOKOStern

Member
I have just discovered a way of causing delay, it might help.

Start off a Local Recording and then go to the camera options and change a few things in similar fashion to what's written in the guide micechal linked - viewtopic.php?f=18&t=1036

Since you're dealing with camera stuff it will immediately go out of sync and I've managed to get even a 10 second delay with this method.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
I implemented a potential fix for this in the latest test version (0.467a test 3), in the device source properties, could you enable "No buffering (test)" and see if it changes anything?
 

KOKOStern

Member
Got 0.467a (test 5).

Started recording, changed zoom level on camera which caused a momentary stutter --> lag behind about 0.5 a second.

Started recording from scratch once again. Now on 10 min of recording without touching anything, showing signs of lag once more.

Edit: here's the log:

Code:
Open Broadcaster Software v0.467a (test 5) - 64bit ( ^ω^)
-------------------------------
CPU Name: Intel(R) Core(TM) i7 CPU         920  @ 2.67GHz
CPU Speed: 2664MHz
Physical Memory:  6142MB Total, 2985MB Free
stepping id: 5, model 10, family 6, type 0, extmodel 0, extfamily 0, HTT 1, logical cores 8, total cores 4
Windows Version: 6.1 Build 7600 
Aero is Disabled
------------------------------------------
Adapter 1
  Video Adapter: NVIDIA GeForce GTX 660 Ti
  Video Adapter Dedicated Video Memory: 2091319296
  Video Adapter Shared System Memory: 2147479552
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1280x720
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
------------------------------------------
Using desktop audio input: Speakers (Realtek High Definition Audio)
------------------------------------------
Using auxilary audio input: Microphone (USB Audio Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 192
Using text output
Using Monitor Capture
------------------------------------------
    device: Logitech HD Pro Webcam C920,
    device id \\?\usb#vid_046d&pid_082d&mi_00#6&80a626e&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: MJPG, usingFourCC: false, res: 1280x720 - 1280x720, fps: 5-30, fourCC: 'MJPG'

Disabling buffering (hopefully)
Using directshow input
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 4000
    buffer size: 4000
    quality: 10
------------------------------------------
Total frames rendered: 47, number of frames that lagged: 1 (2.13%) (it's okay for some frames to lag)
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1280x720
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
------------------------------------------
Using desktop audio input: Speakers (Realtek High Definition Audio)
------------------------------------------
Using auxilary audio input: Microphone (USB Audio Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 192
Using text output
Using Monitor Capture
------------------------------------------
    device: Logitech HD Pro Webcam C920,
    device id \\?\usb#vid_046d&pid_082d&mi_00#6&80a626e&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: MJPG, usingFourCC: false, res: 1280x720 - 1280x720, fps: 5-30, fourCC: 'MJPG'

Disabling buffering (hopefully)
Using directshow input
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 4000
    buffer size: 4000
    quality: 10
------------------------------------------
Total frames rendered: 2867, number of frames that lagged: 2 (0.07%) (it's okay for some frames to lag)
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1280x720
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
------------------------------------------
Using desktop audio input: Speakers (Realtek High Definition Audio)
------------------------------------------
Using auxilary audio input: Microphone (USB Audio Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 192
Using text output
Using Monitor Capture
------------------------------------------
    device: Logitech HD Pro Webcam C920,
    device id \\?\usb#vid_046d&pid_082d&mi_00#6&80a626e&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: MJPG, usingFourCC: false, res: 1280x720 - 1280x720, fps: 5-30, fourCC: 'MJPG'

Disabling buffering (hopefully)
Using directshow input
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 4000
    buffer size: 4000
    quality: 10
------------------------------------------
Total frames rendered: 11082, number of frames that lagged: 4 (0.04%) (it's okay for some frames to lag)
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 14.556 ms] [avg calls per frame: 1] [children: 96.5%] [unaccounted: 3.54%]
| scene->Preprocess - [30.9%] [avg time: 4.504 ms] [avg calls per frame: 1]
| video encoding and uploading - [65.5%] [avg time: 9.536 ms] [avg calls per frame: 1] [children: 8.91%] [unaccounted: 56.6%]
| | CopyResource - [0.0893%] [avg time: 0.013 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.206%] [avg time: 0.03 ms] [avg calls per frame: 0]
| | call to encoder - [8.59%] [avg time: 1.251 ms] [avg calls per frame: 0]
| | sending stuff out - [0.0206%] [avg time: 0.003 ms] [avg calls per frame: 0]
==============================================================
 

KOKOStern

Member
Tried I420 and there is a very small delay that came from changing settings but doesn't get worse with time.

At least it doesn't seem to as I just recorded an hour and a half and there is no delay at the start, a bit after messing with settings and still a bit after the whole time.

Code:
Open Broadcaster Software v0.467a (test 5) - 64bit ( ^ω^)
-------------------------------
CPU Name: Intel(R) Core(TM) i7 CPU         920  @ 2.67GHz
CPU Speed: 2664MHz
Physical Memory:  6142MB Total, 3231MB Free
stepping id: 5, model 10, family 6, type 0, extmodel 0, extfamily 0, HTT 1, logical cores 8, total cores 4
Windows Version: 6.1 Build 7600 
Aero is Disabled
------------------------------------------
Adapter 1
  Video Adapter: NVIDIA GeForce GTX 660 Ti
  Video Adapter Dedicated Video Memory: 2091319296
  Video Adapter Shared System Memory: 2147479552
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1280x720
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
------------------------------------------
Using desktop audio input: Speakers (Realtek High Definition Audio)
------------------------------------------
Using auxilary audio input: Microphone (USB Audio Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 192
Using bitmap image
Using text output
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 4000
    buffer size: 4000
    quality: 10
------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using text output
Using Monitor Capture
------------------------------------------
    device: Logitech HD Pro Webcam C920,
    device id \\?\usb#vid_046d&pid_082d&mi_00#6&80a626e&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: I420, usingFourCC: false, res: 1280x720 - 1280x720, fps: 5-30, fourCC: 'I420'

Disabling buffering (hopefully)
Using directshow input
Total frames rendered: 86, number of frames that lagged: 4 (4.65%) (it's okay for some frames to lag)
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1280x720
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
------------------------------------------
Using desktop audio input: Speakers (Realtek High Definition Audio)
------------------------------------------
Using auxilary audio input: Microphone (USB Audio Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 192
Using text output
Using Monitor Capture
------------------------------------------
    device: Logitech HD Pro Webcam C920,
    device id \\?\usb#vid_046d&pid_082d&mi_00#6&80a626e&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: I420, usingFourCC: false, res: 1280x720 - 1280x720, fps: 5-30, fourCC: 'I420'

Disabling buffering (hopefully)
Using directshow input
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 4000
    buffer size: 4000
    quality: 10
------------------------------------------
Total frames rendered: 173, number of frames that lagged: 1 (0.58%) (it's okay for some frames to lag)
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1280x720
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
------------------------------------------
Using desktop audio input: Speakers (Realtek High Definition Audio)
------------------------------------------
Using auxilary audio input: Microphone (USB Audio Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 192
Using text output
Using Monitor Capture
------------------------------------------
    device: Logitech HD Pro Webcam C920,
    device id \\?\usb#vid_046d&pid_082d&mi_00#6&80a626e&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: I420, usingFourCC: false, res: 1280x720 - 1280x720, fps: 5-30, fourCC: 'I420'

Disabling buffering (hopefully)
Using directshow input
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 4000
    buffer size: 4000
    quality: 10
------------------------------------------
Total frames rendered: 170625, number of frames that lagged: 10 (0.01%) (it's okay for some frames to lag)
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 13.96 ms] [avg calls per frame: 1] [children: 96.4%] [unaccounted: 3.6%]
| scene->Preprocess - [28.2%] [avg time: 3.937 ms] [avg calls per frame: 1]
| video encoding and uploading - [68.2%] [avg time: 9.52 ms] [avg calls per frame: 1] [children: 9.18%] [unaccounted: 59%]
| | CopyResource - [0.107%] [avg time: 0.015 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.0788%] [avg time: 0.011 ms] [avg calls per frame: 0]
| | call to encoder - [8.97%] [avg time: 1.252 ms] [avg calls per frame: 0]
| | sending stuff out - [0.0215%] [avg time: 0.003 ms] [avg calls per frame: 0]
==============================================================
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
You'll probably just have to adjust your mic time to match the webcam if that's possible
 

KOKOStern

Member
Amm how exactly would I do that? And if the mic and webcam will be in sync but still in delay from the screen capping I'm doing, that won't really help me...
 

EasyGaming

New Member
Hey ho :)
Hmm, same problem with the same webcam.
I try differend solutions, fps and outputs...

If i only have my webcam in the scene, the delay is very small. (about 0.5sec - up to 2-3 sec over time)
But if i have my webcam, a bitmap, a scrolling text and a game capture in the scene, the delay is higher. (1-2 sec up to 3-4)

I hope u find a way to fix it. (The 0.467a Test 6 No Buffering didn't work)

Thx. (Sry... My english... xD )


Code:
Open Broadcaster Software v0.467a (test 6) - 64bit ( ^ω^)
-------------------------------
CPU Name: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
CPU Speed: 3392MHz
Physical Memory:  16295MB Total, 13687MB Free
stepping id: 7, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
Windows Version: 6.1 Build 7601 S
Aero is Disabled
------------------------------------------
Adapter 1
  Video Adapter: NVIDIA GeForce GTX 570
  Video Adapter Dedicated Video Memory: 1293352960
  Video Adapter Shared System Memory: 2952671232
------------------------------------------
Adapter 2
  Video Adapter: Intel(R) HD Graphics 3000
  Video Adapter Dedicated Video Memory: 67108864
  Video Adapter Shared System Memory: 1711276032
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1920x1080
------------------------------------------
Loading up D3D10...
Playback device ＀
------------------------------------------
Using desktop audio input: Lautsprecher (Realtek High Definition Audio)
------------------------------------------
Using auxilary audio input: Kopfhörermikrofon (AKG Perception 120 USB)
------------------------------------------
Audio Encoding: AAC
    bitrate: 160
Using bitmap image
------------------------------------------
    device: Logitech HD Pro Webcam C920,
    device id \\?\usb#vid_046d&pid_082d&mi_00#7&2fd1f0c6&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: RGB24, usingFourCC: false, res: 800x600 - 800x600, fps: 5-30, fourCC: 00000000

Using directshow input
Using Monitor Capture
Using bitmap image
Using text output
Using bitmap image
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1920, height: 1080
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 3700
    buffer size: 3700
    quality: 10
------------------------------------------
------------------------------------------
    device: Logitech HD Pro Webcam C920,
    device id \\?\usb#vid_046d&pid_082d&mi_00#7&2fd1f0c6&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: MJPG, usingFourCC: false, res: 1920x1080 - 1920x1080, fps: 5-30, fourCC: 'MJPG'

Disabling buffering (hopefully)
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using Monitor Capture
Warning -- DShowPlugin: Invalid device: name 'Dualpix HD720p for Notebooks', path '\\?\usb#vid_06f8&pid_300b&mi_00#7&4690625&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global'
Warning -- D3D10Texture::CreateTexture: CreateTexture2D failed, result = 0x80070057
Using directshow input
Using bitmap image
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
------------------------------------------
    device: Dxtory Video 1,
    device id (null),
    chosen type: RGB32, usingFourCC: false, res: 1920x1080 - 1920x1080, fps: 30-30, fourCC: 00000000

Using directshow input
------------------------------------------
    device: Logitech HD Pro Webcam C920,
    device id \\?\usb#vid_046d&pid_082d&mi_00#7&2fd1f0c6&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: RGB24, usingFourCC: false, res: 1920x1080 - 1920x1080, fps: 5-30, fourCC: 00000000

Using directshow input
Using bitmap image
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using bitmap image
------------------------------------------
    device: Logitech HD Pro Webcam C920,
    device id \\?\usb#vid_046d&pid_082d&mi_00#7&2fd1f0c6&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: MJPG, usingFourCC: false, res: 1920x1080 - 1920x1080, fps: 5-30, fourCC: 'MJPG'

Disabling buffering (hopefully)
Using directshow input
Using Monitor Capture
Using bitmap image
Using text output
Using bitmap image
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
------------------------------------------
    device: Logitech HD Pro Webcam C920,
    device id \\?\usb#vid_046d&pid_082d&mi_00#7&2fd1f0c6&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: RGB24, usingFourCC: false, res: 640x480 - 640x480, fps: 5-30, fourCC: 00000000

Using directshow input
Total frames rendered: 5489, number of frames that lagged: 13 (0.24%) (it's okay for some frames to lag)
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 8.664 ms] [avg calls per frame: 1] [children: 90%] [unaccounted: 10%]
| scene->Preprocess - [55.3%] [avg time: 4.794 ms] [avg calls per frame: 1]
| video encoding and uploading - [34.7%] [avg time: 3.004 ms] [avg calls per frame: 1] [children: 25.8%] [unaccounted: 8.84%]
| | CopyResource - [0.0808%] [avg time: 0.007 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.0346%] [avg time: 0.003 ms] [avg calls per frame: 0]
| | call to encoder - [25.7%] [avg time: 2.227 ms] [avg calls per frame: 0]
| | sending stuff out - [0.0115%] [avg time: 0.001 ms] [avg calls per frame: 0]
==============================================================
 

jwagner01

New Member
I'm not sure how much I can add to this issue but just in case:

In my tinkering with OBS I've found that I'm also experiencing the aforementioned delay in video - running on both 0.466 stable and 0.467 alpha test 11. I have two identical USB Microsoft Lifecams used in two different scenes. My testing only includes previewing the stream - not actually streaming or recording.

I did notice that if I start the preview and don't switch scenes the delay grows very slowly. Conversely if I switch scenes after starting preview a significant delay is immediately noticeable when switching back to the initial scene. eg. scene1 -> scene2 -> scene1 = laggy scene1. scene2 does not appear to lag in this scenario (not sure if it grows over time, haven't been able to test that yet).

Definitely seems like driver/buffering issue as I don't experience this with input from my Blackmagic Intensity Pro. I'm glad to provide any further info if necessay. :)

Log:
Code:
Open Broadcaster Software v0.467a (test 11) - 64bit ( ^ω^)
-------------------------------
CPU Name: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
CPU Speed: 3300MHz
Physical Memory:  7876MB Total, 5864MB Free
stepping id: 7, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
Windows Version: 6.1 Build 7601 S
Aero is Enabled
------------------------------------------
Adapter 1
  Video Adapter: Intel(R) HD Graphics 3000
  Video Adapter Dedicated Video Memory: 268435456
  Video Adapter Shared System Memory: 1577058304
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1280x720
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device ꏠ'
------------------------------------------
Using desktop audio input: Speakers (Realtek High Definition Audio)
------------------------------------------
Using auxilary audio input: Line In (Realtek High Definition Audio)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
------------------------------------------
    device: Microsoft LifeCam Cinema,
    device id \\?\usb#vid_045e&pid_075d&mi_00#7&28d31f62&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
    chosen type: MJPG, usingFourCC: false, res: 1280x720 - 1280x720, fps: 7.5-30, fourCC: 'MJPG'

Using directshow input
Using bitmap image
using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX

profile High, level 3.1

------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 1000
    buffer size: 1000
    quality: 8
------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
------------------------------------------
    device: Microsoft LifeCam Cinema (2),
    device id \\?\usb#vid_045e&pid_075d&mi_00#7&a599221&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
    chosen type: MJPG, usingFourCC: false, res: 1280x720 - 1280x720, fps: 7.5-30, fourCC: 'MJPG'

Using directshow input
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using bitmap image
Total frames rendered: 542, number of frames that lagged: 1 (0.18%) (it's okay for some frames to lag)
frame I:3     Avg QP:27.67  size: 26338

frame P:149   Avg QP:25.53  size:  5931

frame B:352   Avg QP:26.19  size:  1376

consecutive B-frames:  1.6% 15.0%  1.8% 81.6%

mb I  I16..4: 27.5% 58.7% 13.8%

mb P  I16..4:  4.4%  4.9%  0.1%  P16..4: 30.7%  6.8%  2.2%  0.0%  0.0%    skip:51.0%

mb B  I16..4:  0.2%  0.2%  0.0%  B16..8:  3.9%  0.7%  0.0%  direct:14.6%  skip:80.3%  L0:40.9% L1:48.1% BI:11.0%

8x8 transform intra:52.9% inter:42.0%

coded y,uvDC,uvAC intra: 21.4% 52.6% 14.9% inter: 1.6% 19.4% 0.1%

i16 v,h,dc,p: 54% 25% 13%  8%

i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 20% 42%  3%  3%  3%  3%  3%  3%

i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 24% 14%  7%  5%  6%  5%  5%  7%

i8c dc,h,v,p: 65% 18% 15%  2%

Weighted P-Frames: Y:4.0% UV:4.0%

kb/s:682.07

=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 10.03 ms] [avg calls per frame: 1] [children: 91.8%] [unaccounted: 8.24%]
| scene->Preprocess - [32.6%] [avg time: 3.269 ms] [avg calls per frame: 1]
| video encoding and uploading - [59.2%] [avg time: 5.935 ms] [avg calls per frame: 1] [children: 14.4%] [unaccounted: 44.8%]
| | CopyResource - [0.877%] [avg time: 0.088 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.588%] [avg time: 0.059 ms] [avg calls per frame: 0]
| | call to encoder - [12.9%] [avg time: 1.298 ms] [avg calls per frame: 0]
| | sending stuff out - [0.00997%] [avg time: 0.001 ms] [avg calls per frame: 0]
==============================================================
 

KOKOStern

Member
So! 0.47a downloaded today and I've already recorded about 4 hours (more then one session) of webcam in Local Recording just to test things out.

MJPG still has a HUGE delay.

I420 seems to work best, but still has a growing delay that just happens. I have "Force audio to sync to video time" on!

This means I still can't use my new C920 and have to resort to my old crappy Lifecam HD.

Jim I'm sad :(

Log file follows. Please let me know of ANYTHING I can do to help you solve this. Any information at all.

Code:
Open Broadcaster Software v0.47a - 32bit (´・ω・`)
-------------------------------
CPU Name: Intel(R) Core(TM) i7 CPU         920  @ 2.67GHz
CPU Speed: 2664MHz
Physical Memory:  4095MB Total, 2553MB Free
stepping id: 5, model 10, family 6, type 0, extmodel 0, extfamily 0, HTT 1, logical cores 8, total cores 4
Windows Version: 6.1 Build 7600 
Aero is Disabled
------------------------------------------
Adapter 1
  Video Adapter: NVIDIA GeForce GTX 660 Ti
  Video Adapter Dedicated Video Memory: 2091319296
  Video Adapter Shared System Memory: 2147479552
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1280x720
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (Realtek High Definition Audio)
------------------------------------------
Using auxilary audio input: Microphone (USB Audio Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 192
------------------------------------------
    device: Logitech HD Pro Webcam C920,
    device id \\?\usb#vid_046d&pid_082d&mi_00#6&80a626e&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: I420, usingFourCC: false, res: 1280x720 - 1280x720, fps: 5-30, fourCC: 'I420'

Using directshow input
Using Monitor Capture
Using text output
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 4000
    buffer size: 4000
    quality: 10
------------------------------------------
Syncing audio to video time
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
------------------------------------------
    device: Logitech HD Pro Webcam C920,
    device id \\?\usb#vid_046d&pid_082d&mi_00#6&80a626e&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: I420, usingFourCC: false, res: 1280x720 - 1280x720, fps: 5-30, fourCC: 'I420'

Using directshow input
Warning -- DShowPlugin: control->Run failed, result = 8007001F
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using Monitor Capture
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using text output
Using bitmap image
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using text output
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using Monitor Capture
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using Window Capture
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using Monitor Capture
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using Monitor Capture
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using text output
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using Monitor Capture
Total frames rendered: 1503, number of frames that lagged: 4 (0.27%) (it's okay for some frames to lag)
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1280x720
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (Realtek High Definition Audio)
------------------------------------------
Using auxilary audio input: Microphone (USB Audio Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 192
Using text output
------------------------------------------
    device: Logitech HD Pro Webcam C920,
    device id \\?\usb#vid_046d&pid_082d&mi_00#6&80a626e&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: I420, usingFourCC: false, res: 1280x720 - 1280x720, fps: 5-30, fourCC: 'I420'

Using directshow input
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 4000
    buffer size: 4000
    quality: 10
------------------------------------------
Syncing audio to video time
Total frames rendered: 709, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1280x720
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (Realtek High Definition Audio)
------------------------------------------
Using auxilary audio input: Microphone (USB Audio Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 192
------------------------------------------
    device: Logitech HD Pro Webcam C920,
    device id \\?\usb#vid_046d&pid_082d&mi_00#6&80a626e&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: I420, usingFourCC: false, res: 1280x720 - 1280x720, fps: 5-30, fourCC: 'I420'

Using directshow input
Using Monitor Capture
Using text output
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 4000
    buffer size: 4000
    quality: 10
------------------------------------------
Syncing audio to video time
Total frames rendered: 153712, number of frames that lagged: 12 (0.01%) (it's okay for some frames to lag)
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1280x720
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (Realtek High Definition Audio)
------------------------------------------
Using auxilary audio input: Microphone (USB Audio Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 192
------------------------------------------
    device: Logitech HD Pro Webcam C920,
    device id \\?\usb#vid_046d&pid_082d&mi_00#6&80a626e&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: MJPG, usingFourCC: false, res: 1280x720 - 1280x720, fps: 5-30, fourCC: 'MJPG'

Using directshow input
Using Monitor Capture
Using text output
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 4000
    buffer size: 4000
    quality: 10
------------------------------------------
Syncing audio to video time
Total frames rendered: 1021, number of frames that lagged: 2 (0.20%) (it's okay for some frames to lag)
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1280x720
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (Realtek High Definition Audio)
------------------------------------------
Using auxilary audio input: Microphone (USB Audio Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 192
------------------------------------------
    device: Logitech HD Pro Webcam C920,
    device id \\?\usb#vid_046d&pid_082d&mi_00#6&80a626e&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: I420, usingFourCC: false, res: 1280x720 - 1280x720, fps: 5-30, fourCC: 'I420'

Using directshow input
Using Monitor Capture
Using text output
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 4000
    buffer size: 4000
    quality: 10
------------------------------------------
Syncing audio to video time
Total frames rendered: 262563, number of frames that lagged: 9 (0.00%) (it's okay for some frames to lag)
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 12.558 ms] [avg calls per frame: 1] [children: 95.8%] [unaccounted: 4.2%]
| scene->Preprocess - [29.6%] [avg time: 3.715 ms] [avg calls per frame: 1]
| video encoding and uploading - [66.2%] [avg time: 8.316 ms] [avg calls per frame: 1] [children: 10.3%] [unaccounted: 55.9%]
| | CopyResource - [0.111%] [avg time: 0.014 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.0717%] [avg time: 0.009 ms] [avg calls per frame: 0]
| | call to encoder - [10.1%] [avg time: 1.271 ms] [avg calls per frame: 0]
| | sending stuff out - [0.0398%] [avg time: 0.005 ms] [avg calls per frame: 0]
==============================================================
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
I just don't get it. I have a C920 and I just don't have a problem. I don't know what's going on here. Why is this happening for some and not others? I am completely baffled

Also it only happens for webcams.. Capture cards don't even get this and I have no clue why
 

KOKOStern

Member
Start local recording and go mess around (and i mean just crazy messing around) with the camera configuration, in terms of zoom, saturation, exposure, brightness, everything and see if there's any delay caused by that at all.

Edit: I just thought of something. I will now record myself for an hour or so, with both cameras at the same time, and see what happens.

I hope this helps somehow!
 
Top