Question / Help Lag Spikes (all of a sudden)

NiteWriter

New Member
Hi all,

So, I don't know if I just wasn't noticing it before or what, but all of a sudden I'm noticing a major performance hit while streaming. While running around in-game, I'm seeing FPS hits of 10 frames or more every few seconds. The stream itself reflects this with a frozen screen or severe lag, although viewers can hear me. I've done everything I can so far... I've lowered bitrate and resolution and CPU usage preset to the lowest settings, all to no avail.

Thanks,

N
 

Attachments

  • 2016-07-13 00-37-17.txt
    33.5 KB · Views: 16

dacoder

Member
Your webcam, try streaming with it unplugged:
"01:03:11.710: ---------------------------------
01:03:11.710: [DShow Device: 'Webcam'] settings updated:
01:03:11.710: video device: Logitech HD Webcam C525
01:03:11.710: video path: \\?\usb#vid_046d&pid_0826&mi_02#7&144019a9&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083}
01:03:11.710: resolution: 640x480
01:03:11.710: fps: 30.00 (interval: 333333)
01:03:11.710: format: I420
01:03:11.720: DShow: Run failed, device already in use (0x8007001F): A device attached to the system is not functioning."
 

NiteWriter

New Member
Your webcam, try streaming with it unplugged:
"01:03:11.710: ---------------------------------
01:03:11.710: [DShow Device: 'Webcam'] settings updated:
01:03:11.710: video device: Logitech HD Webcam C525
01:03:11.710: video path: \\?\usb#vid_046d&pid_0826&mi_02#7&144019a9&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083}
01:03:11.710: resolution: 640x480
01:03:11.710: fps: 30.00 (interval: 333333)
01:03:11.710: format: I420
01:03:11.720: DShow: Run failed, device already in use (0x8007001F): A device attached to the system is not functioning."

That helped quite a lot. Watching the stream, it's still stuttering... but while in the game the lag spikes are pretty much gone. Any idea what's wrong with my webcam or how to fix the issue? I just got it last week... ugh.

Thanks so much.
 

dacoder

Member
I have heard rumors of Logitech webcams causing troubles. I myself have a c920, and it will sometimes not work, unplugging / replugging solves it for me. Then restarting OBS after that.
This only happens to me when i restart my PC, nowadays I just keep it running 24/7.
 

NiteWriter

New Member
I've noticed that too, unplugging/replugging makes my cam show up, but it was showing up when I took that log file. I guess I should have restarted OBS after. Bizarre.

Thanks though. Just have to figure out why the viewer is seeing a laggy stream.
 

dacoder

Member
Looking further into your log file shows me this:
"Output 'adv_stream': Number of skipped frames due to encoding lag: 9498 (40.7%)"

Can you upload a log file of you streaming with your webcam unplugged, so I know that is not a factor here.
If it remains the same, that will be your issue causing the laggy stream.
 
Top