Question / Help FPS Drop & Audio cutoff during streaming

MajorPayne

New Member
Recently when streaming my games, either fps (Call of duty) or LoL, my frames drop dramatically after 3min or so. When I first dl this program and set the settings to my liking, it never had this problem till now. What is the problem and need solution.

Encoding: CBR checked. Quality [8] Max bitrate [1500] buffer size [2500]
Broadcast: twitch.tv
Video: 1280x720 filter [bilinear (fastest)] FPS [60]

Speedtest: http://www.speedtest.net/result/2728458370.png or

Just all of a sudden it started dropping frames out of nowhere and never did that the first couple of weeks I had OBS. Also my original max bitrate [2500] buffer size [3500] and that never had any problems and it had CBR checked.
 

MajorPayne

New Member
Re: Frame drop

dodgepong said:
Do you think you could post your log? http://obsproject.com/forum/viewtopic.php?f=5&t=97

Also, can you run a speed test at http://testmy.net?

Looks like your upload speeds are having issues and you can't stream at the bit rate you were trying to stream at before anymore.

Code:
15:46:40: Open Broadcaster Software v0.522b - 32bit (´・ω・`)
15:46:40: -------------------------------
15:46:40: CPU Name: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
15:46:40: CPU Speed: 3510MHz
15:46:40: Physical Memory:  4036MB Total, 1716MB Free
15:46:40: stepping id: 9, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
15:46:40: monitor 1: pos={1920, 0}, size={1920, 1080}
15:46:40: monitor 2: pos={0, 0}, size={1920, 1080}
15:46:40: Windows Version: 6.1 Build 7601 S
15:46:40: Aero is Enabled
15:46:40: -------------------------------
15:46:40: OBS Modules:
15:46:40: Base Address     Module
15:46:40: 01300000         OBS.exe
15:46:40: 6CC40000         OBSApi.dll
15:46:40: 6D580000         DShowPlugin.dll
15:46:40: 6D4F0000         GraphicsCapture.dll
15:46:40: 6D4D0000         NoiseGate.dll
15:46:40: ------------------------------------------
15:46:40: Adapter 1
15:46:40:   Video Adapter: NVIDIA GeForce GTX 680
15:46:40:   Video Adapter Dedicated Video Memory: 2091581440
15:46:40:   Video Adapter Shared System Memory: 1847943168
15:46:40: =====Stream Start: 2013-05-24, 15:46:40===============================================
15:46:40:   Multithreaded optimizations: On
15:46:40:   Base resolution: 1920x1080
15:46:40:   Output resolution: 1280x720
15:46:40: ------------------------------------------
15:46:40: Loading up D3D10...
15:46:40: Playback device {0.0.0.00000000}.{18700ac2-b8a0-4342-b9d9-668ac6a7d4c5}
15:46:40: ------------------------------------------
15:46:40: Using desktop audio input: Speakers (ASTRO Gaming USB MixAmp)
15:46:40: ------------------------------------------
15:46:40: Using auxilary audio input: Microphone (ASTRO Gaming USB MixAmp)
15:46:40: ------------------------------------------
15:46:40: Audio Encoding: AAC
15:46:40:     bitrate: 128
15:46:40: Using bitmap image
15:46:41: ------------------------------------------
15:46:41:     device: Elgato Game Capture HD,
15:46:41:     device id {39F50F4C-99E1-464a-B6F9-D605B4FB5918},
15:46:41:     chosen type: UYVY, usingFourCC: false, res: 1280x720 - 1280x720, frameIntervals: 333333-333333, fourCC: 'UYVY'
15:46:41: 
15:46:41:     device audio info - bits per sample: 16, channels: 2, samples per sec: 48000, block size: 4
15:46:42: Using directshow input
15:46:42: ------------------------------------------
15:46:42: Video Encoding: x264
15:46:42:     fps: 60
15:46:42:     width: 1280, height: 720
15:46:42:     preset: superfast
15:46:42:     CBR: yes
15:46:42:     CFR: no
15:46:42:     max bitrate: 1000
15:46:42: ------------------------------------------
Warning -- MMDeviceAudioSource::GetBuffer: GetNextPacketSize failed, result = 88890004
15:48:56: Total frames rendered: 8026, number of frames that lagged: 29 (0.36%) (it's okay for some frames to lag)
15:48:59: =====Stream End: 2013-05-24, 15:48:59=================================================
15:49:04: =====Stream Start: 2013-05-24, 15:49:04===============================================
15:49:04:   Multithreaded optimizations: On
15:49:04:   Base resolution: 1920x1080
15:49:04:   Output resolution: 1280x720
15:49:04: ------------------------------------------
15:49:04: Loading up D3D10...
15:49:04: Playback device {0.0.0.00000000}.{18700ac2-b8a0-4342-b9d9-668ac6a7d4c5}
15:49:04: ------------------------------------------
15:49:04: Using desktop audio input: Speakers (ASTRO Gaming USB MixAmp)
15:49:04: ------------------------------------------
15:49:04: Using auxilary audio input: Microphone (ASTRO Gaming USB MixAmp)
15:49:04: ------------------------------------------
15:49:04: Audio Encoding: AAC
15:49:04:     bitrate: 128
15:49:04: Using bitmap image
15:49:04: ------------------------------------------
15:49:04:     device: Elgato Game Capture HD,
15:49:04:     device id {39F50F4C-99E1-464a-B6F9-D605B4FB5918},
15:49:04:     chosen type: UYVY, usingFourCC: false, res: 1280x720 - 1280x720, frameIntervals: 333333-333333, fourCC: 'UYVY'
15:49:04: 
15:49:04:     device audio info - bits per sample: 16, channels: 2, samples per sec: 48000, block size: 4
15:49:04: Using directshow input
15:49:04: ------------------------------------------
15:49:04: Video Encoding: x264
15:49:04:     fps: 60
15:49:04:     width: 1280, height: 720
15:49:04:     preset: superfast
15:49:04:     CBR: yes
15:49:04:     CFR: no
15:49:04:     max bitrate: 1000
15:49:04: ------------------------------------------
15:49:36: Using RTMP service: Twitch / Justin.tv
15:49:36:   Server selection: rtmp://live-lax.justin.tv/app
15:49:37: SO_SNDBUF was at 8192
15:49:37: SO_SNDBUF is now 65536
15:57:03: RTMPPublisher::BufferedSend: Increasing socket send buffer to ISB 524288
15:57:11: Total frames rendered: 28488, number of frames that lagged: 1100 (3.86%) (it's okay for some frames to lag)
15:57:13: RTMPPublisher::SocketLoop: Aborting due to bStopping
15:57:13: Number of times waited to send: 5, Waited for a total of 18639 bytes
15:57:13: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
15:57:16: =====Stream End: 2013-05-24, 15:57:16=================================================
15:59:18: 
15:59:18: Profiler results:
15:59:18: 
15:59:18: ==============================================================
15:59:18: frame - [100%] [avg time: 4.187 ms] [avg calls per frame: 1] [children: 86.9%] [unaccounted: 13.1%]
15:59:18: | scene->Preprocess - [40.8%] [avg time: 1.708 ms] [avg calls per frame: 1]
15:59:18: | video encoding and uploading - [46.1%] [avg time: 1.929 ms] [avg calls per frame: 1] [children: 44.5%] [unaccounted: 1.58%]
15:59:18: | | CopyResource - [0.478%] [avg time: 0.02 ms] [avg calls per frame: 0]
15:59:18: | | conversion to 4:2:0 - [0.143%] [avg time: 0.006 ms] [avg calls per frame: 0]
15:59:18: | | call to encoder - [42.7%] [avg time: 1.787 ms] [avg calls per frame: 0]
15:59:18: | | sending stuff out - [1.19%] [avg time: 0.05 ms] [avg calls per frame: 0]
15:59:18: ==============================================================
15:59:18:
 

dodgepong

Administrator
Community Helper
Re: Frame drop

Weird, your speed test is higher than I expected. Have you tried changing Twitch servers or lowering your bit rate?
 

MajorPayne

New Member
Re: Frame drop

dodgepong said:
Weird, your speed test is higher than I expected. Have you tried changing Twitch servers or lowering your bit rate?

I was originally in US West San Francisco (closest server to me) and was fine at first. Recently been getting those dropped frames from 60fps to way below 20. I changed it to US West Los Angeles and still frame drop. I also lowered the bitrate and still frame drop.
 

MajorPayne

New Member
Re: FPS Drop during streaming

Latest log on the stream. Still dropping great amount of FPS

Code:
18:06:31: Open Broadcaster Software v0.522b - 32bit (´・ω・`)
18:06:31: -------------------------------
18:06:31: CPU Name: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
18:06:31: CPU Speed: 3510MHz
18:06:31: Physical Memory:  4036MB Total, 1972MB Free
18:06:31: stepping id: 9, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
18:06:31: monitor 1: pos={1920, 0}, size={1920, 1080}
18:06:31: monitor 2: pos={0, 0}, size={1920, 1080}
18:06:31: Windows Version: 6.1 Build 7601 S
18:06:31: Aero is Enabled
18:06:31: -------------------------------
18:06:31: OBS Modules:
18:06:31: Base Address     Module
18:06:31: 00FB0000         OBS.exe
18:06:31: 70290000         OBSApi.dll
18:06:31: 748A0000         DShowPlugin.dll
18:06:31: 74880000         GraphicsCapture.dll
18:06:31: 74860000         NoiseGate.dll
18:06:31: ------------------------------------------
18:06:31: Adapter 1
18:06:31:   Video Adapter: NVIDIA GeForce GTX 680
18:06:31:   Video Adapter Dedicated Video Memory: 2091581440
18:06:31:   Video Adapter Shared System Memory: 1847943168
18:06:31: =====Stream Start: 2013-05-27, 18:06:31===============================================
18:06:31:   Multithreaded optimizations: On
18:06:31:   Base resolution: 1920x1080
18:06:31:   Output resolution: 1280x720
18:06:31: ------------------------------------------
18:06:31: Loading up D3D10...
18:06:31: Playback device {0.0.0.00000000}.{18700ac2-b8a0-4342-b9d9-668ac6a7d4c5}
18:06:31: ------------------------------------------
18:06:31: Using desktop audio input: Speakers (ASTRO Gaming USB MixAmp)
18:06:31: ------------------------------------------
18:06:31: Using auxilary audio input: Microphone (ASTRO Gaming USB MixAmp)
18:06:31: ------------------------------------------
18:06:31: Audio Encoding: AAC
18:06:31:     bitrate: 128
18:06:31: Using bitmap image
18:06:31: ------------------------------------------
18:06:31:     device: Elgato Game Capture HD,
18:06:31:     device id {39F50F4C-99E1-464a-B6F9-D605B4FB5918},
18:06:31:     chosen type: UYVY, usingFourCC: false, res: 1280x720 - 1280x720, frameIntervals: 333333-333333, fourCC: 'UYVY'
18:06:31: 
18:06:31:     device audio info - bits per sample: 16, channels: 2, samples per sec: 48000, block size: 4
18:06:31: Using directshow input
18:06:31: ------------------------------------------
18:06:31: Video Encoding: x264
18:06:31:     fps: 60
18:06:31:     width: 1280, height: 720
18:06:31:     preset: veryfast
18:06:31:     CBR: yes
18:06:31:     CFR: no
18:06:31:     max bitrate: 3500
18:06:31: ------------------------------------------
18:06:31: 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:07:03: Using RTMP service: Twitch / Justin.tv
18:07:03:   Server selection: rtmp://live.justin.tv/app
18:07:04: SO_SNDBUF was at 8192
18:07:04: SO_SNDBUF is now 65536
Warning -- MMDeviceAudioSource::GetBuffer: GetNextPacketSize failed, result = 88890004
18:09:26: RTMPPublisher::BufferedSend: Increasing socket send buffer to ISB 131072
18:11:15: RTMPPublisher::BufferedSend: Increasing socket send buffer to ISB 262144
18:17:00: Total frames rendered: 24608, number of frames that lagged: 5870 (23.85%) (it's okay for some frames to lag)
18:17:31: RTMPPublisher::SocketLoop: Aborting due to bStopping
18:17:31: Number of times waited to send: 252, Waited for a total of 961259 bytes
18:17:31: Number of b-frames dropped: 4573 (19%), Number of p-frames dropped: 5709 (23%), Total 10282 (42%)
18:17:35: =====Stream End: 2013-05-27, 18:17:35=================================================
18:19:26: 
18:19:26: Profiler results:
18:19:26: 
18:19:26: ==============================================================
18:19:26: frame - [100%] [avg time: 15.952 ms] [avg calls per frame: 1] [children: 95.4%] [unaccounted: 4.61%]
18:19:26: | scene->Preprocess - [80.5%] [avg time: 12.847 ms] [avg calls per frame: 1]
18:19:26: | video encoding and uploading - [14.9%] [avg time: 2.369 ms] [avg calls per frame: 1] [children: 13.7%] [unaccounted: 1.16%]
18:19:26: | | CopyResource - [0.15%] [avg time: 0.024 ms] [avg calls per frame: 0]
18:19:26: | | conversion to 4:2:0 - [0.0564%] [avg time: 0.009 ms] [avg calls per frame: 0]
18:19:26: | | call to encoder - [13.1%] [avg time: 2.095 ms] [avg calls per frame: 0]
18:19:26: | | sending stuff out - [0.351%] [avg time: 0.056 ms] [avg calls per frame: 0]
18:19:26: ==============================================================
18:19:26:
 

hilalpro

Member
Re: FPS Drop during streaming

You dropped no frames with LA secondary on lower bitrates. but you're lagging some, try running the 64 bit test build if possible and stick with the LA secondary server since you dropped no frames with that. try 3066 bitrate/bufsize
 

MajorPayne

New Member
Re: FPS Drop during streaming

hilalpro said:
You dropped no frames with LA secondary on lower bitrates. but you're lagging some, try running the 64 bit test build if possible and stick with the LA secondary server since you dropped no frames with that. try 3066 bitrate/bufsize

Elgato does not work for the 64bit. The real problem is not the frames drop but the FPS drop from 60fps to below 20 fps
 

dodgepong

Administrator
Community Helper
Re: FPS Drop during streaming

Your frame times are too close for comfort to the ~16ms limit that 60fps needs to stream with no lagged frames. My guess is that you're lagging frames on that edge.

One thing you can try to help improve your frame render time would be to remove the downscale and change your base resolution in OBS to 720p. Right now, you're capturing at 720p60, then upscaling it to 1080p to fit the base resolution, then downscaling it again to render it in 720p. That's a lot of unnecessary processing...just set the base resolution to 720p and be done with it.

Even then, I'd think a i7 3770k could do 720p60 just fine, especially when not running the game. Is it overclocked at all?

Finally, your latest log still shows you dropping a lot of frames in addition to lagging frames. I still don't understand why that is, assuming your speed test is accurate. Are you streaming over wireless, or sharing your internet line with someone else who is using a lot of bandwidth, or running things like torrents at the same time?

EDIT: Also, I see you're using the "sync audio and video time" setting in Advanced, which is probably what is causing your audio to shut off. It's kind of an experimental fix, so I would recommend disabling that.

EDIT 2: I just watched the video...YouTube is not the best place to show frame drops on a 60fps video since YouTube re-encodes to 30fps. Also, I understand you're frustrated, but your attitude on your video isn't exactly inviting of help.
 

MajorPayne

New Member
Re: FPS Drop during streaming

dodgepong said:
Your frame times are too close for comfort to the ~16ms limit that 60fps needs to stream with no lagged frames. My guess is that you're lagging frames on that edge.

One thing you can try to help improve your frame render time would be to remove the downscale and change your base resolution in OBS to 720p. Right now, you're capturing at 720p60, then upscaling it to 1080p to fit the base resolution, then downscaling it again to render it in 720p. That's a lot of unnecessary processing...just set the base resolution to 720p and be done with it.

Even then, I'd think a i7 3770k could do 720p60 just fine, especially when not running the game. Is it overclocked at all?

Finally, your latest log still shows you dropping a lot of frames in addition to lagging frames. I still don't understand why that is, assuming your speed test is accurate. Are you streaming over wireless, or sharing your internet line with someone else who is using a lot of bandwidth, or running things like torrents at the same time?

I will downscale it to 1280x720. This custom built pc is wired and the router does share the internet to other sources but the other sources does not require a whole lot of bandwidth. Its weird how when I first dl OBS about near month ago all these settings were the same and nothing changed. This past week is when I see FPS drop and audio problems. I built this PC specifically for gaming/streaming/editing
 

dodgepong

Administrator
Community Helper
Re: FPS Drop during streaming

I watched some more of your stream tonight, and it's clear you're still getting a lot of packet loss. Can you run ShaperProbe and post the results here? http://www.cc.gatech.edu/~partha/diffpr ... probe.html

Also be sure to turn off the Force Audio and Video sync thing, because I'm pretty sure that's why your audio keeps breaking.
 

MajorPayne

New Member
Re: FPS Drop during streaming

dodgepong said:
I watched some more of your stream tonight, and it's clear you're still getting a lot of packet loss. Can you run ShaperProbe and post the results here? http://www.cc.gatech.edu/~partha/diffpr ... probe.html

Also be sure to turn off the Force Audio and Video sync thing, because I'm pretty sure that's why your audio keeps breaking.

sorry about the video on youtube...just real fustrated because these issues occured out of nowhere. Can you join my stream and monitor it so far. Currently streaming pc games causes no FPS drops while playing Planetside 2 and LoL. Now I will see about the elgato gaming capture hd with my xbox
 

MajorPayne

New Member
Re: FPS Drop during streaming

dodgepong said:
I watched some more of your stream tonight, and it's clear you're still getting a lot of packet loss. Can you run ShaperProbe and post the results here? http://www.cc.gatech.edu/~partha/diffpr ... probe.html

Also be sure to turn off the Force Audio and Video sync thing, because I'm pretty sure that's why your audio keeps breaking.

DiffProbe release. January 2012. Build 1008.
Shaper Detection Module.

Connected to server 217.163.1.87.

Estimating capacity:
Upstream: 10751 Kbps.
Downstream: 112653 Kbps.

The measurement will take upto 2.5 minutes. Please wait.

Checking for traffic shapers:

Upstream: No shaper detected.
Median received rate: 10565 Kbps.

Downstream: No shaper detected.
Median received rate: 49578 Kbps.

For more information, visit: http://www.cc.gatech.edu/~partha/diffprobe
 

MajorPayne

New Member
Also with the FPS dropping during the stream, does anybody know the problem with my audio not streaming? It cuts off during the stream randomly and this is one of the awkward warnings I get in my logs, Warning -- MMDeviceAudioSource::GetBuffer: GetNextPacketSize failed, result = 88890004
 
Top