Question / Help No Constant FPS Possible ?

TheD5

Member
So i've been playing around with my settings quite a while and still i couldnt find any reason why i can't get a constant fps output on my stream. I don't frop any frames at all but still the fps in OBS randomly drops to 35 from 40 set fps, which causes lags. At first i thought it would help to turn of Mulitthread Optimization but apperently it didnt. I really don't know what causes this issue because on Xsplit i can stream at 720p @ 30 fps without noticing any possible lag on the stream while using same settings.

So if anyone knows how to solve or has an idea then please tell me ;)

EDIT: I have 4,5 mb upload. Tested at Speedtest.net

Code:
Open Broadcaster Software v0.473b (magnificant test build 11) - 64bit ( ^ω^)
-------------------------------
CPU Name: Intel(R) Core(TM) i5-2500 CPU @ 3.30GHz
CPU Speed: 3292MHz
Physical Memory:  8174MB Total, 5494MB Free
stepping id: 7, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
monitor 1: pos={0, 0}, size={1920, 1080}
monitor 2: pos={1920, 0}, size={1920, 1080}
Windows Version: 6.1 Build 7601 S
Aero is Disabled
------------------------------------------
Adapter 1
  Video Adapter: AMD Radeon HD 7800 Series
  Video Adapter Dedicated Video Memory: 2123567104
  Video Adapter Shared System Memory: 4017453056
=====Stream Start=====================================================================
  Multithreaded optimizations: Off
  Base resolution: 1920x1080
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Lautsprecher (Razer Megalodon)
Using 7.1 surround speaker setup (experimental)
------------------------------------------
Using auxilary audio input: Mikrofon (Razer Megalodon)
------------------------------------------
Audio Encoding: AAC
    bitrate: 192
Using Slide Show
x264: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264: profile High, level 3.2
------------------------------------------
Video Encoding: x264
    fps: 40
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 3000
    buffer size: 3000
    quality: 8
------------------------------------------
Using bitmap image
Using Monitor Capture
------------------------------------------
    device: Logitech HD Webcam C310,
    device id \\?\usb#vid_046d&pid_081b&mi_00#7&37220954&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: I420, usingFourCC: false, res: 1280x720 - 1280x720, frameIntervals: 333333-2000000, fourCC: 'I420'

Using directshow input
Using text output
Using bitmap image
Using bitmap image
Using text output
Using text output
Total frames rendered: 39355, number of frames that lagged: 679 (1.73%) (it's okay for some frames to lag)
Total duplicated frames: 268 (0.68%)
x264: frame I:161   Avg QP:21.82  size: 76853
x264: frame P:10200 Avg QP:26.75  size:  1144
x264: frame B:29157 Avg QP:32.27  size:   115
x264: consecutive B-frames:  1.5%  0.2%  0.4% 97.9%
x264: mb I  I16..4: 53.4%  9.9% 36.7%
x264: mb P  I16..4:  0.7%  0.1%  0.2%  P16..4:  1.7%  0.5%  0.3%  0.0%  0.0%    skip:96.5%
x264: mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.4%  0.1%  0.0%  direct: 0.1%  skip:99.4%  L0:41.7% L1:50.8% BI: 7.5%
x264: 8x8 transform intra:11.3% inter:22.0%
x264: coded y,uvDC,uvAC intra: 38.1% 32.9% 23.2% inter: 0.3% 0.3% 0.1%
x264: i16 v,h,dc,p: 63% 31%  5%  2%
x264: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 26% 32%  7%  4%  3%  4%  3%  6%
x264: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 40% 14%  3%  4%  3%  5%  3%  5%
x264: i8c dc,h,v,p: 62% 23% 14%  2%
x264: Weighted P-Frames: Y:0.3% UV:0.0%
x264: kb/s:221.95
=====Stream End=======================================================================
Using automatic low latency mode
=====Stream Start=====================================================================
  Multithreaded optimizations: Off
  Base resolution: 1920x1080
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Lautsprecher (Razer Megalodon)
Using 7.1 surround speaker setup (experimental)
------------------------------------------
Using auxilary audio input: Mikrofon (Razer Megalodon)
------------------------------------------
Audio Encoding: AAC
    bitrate: 192
Using text output
Using text output
Using bitmap image
Using bitmap image
Using bitmap image
Using Slide Show
------------------------------------------
    device: Logitech HD Webcam C310,
    device id \\?\usb#vid_046d&pid_081b&mi_00#7&37220954&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
    chosen type: I420, usingFourCC: false, res: 1280x720 - 1280x720, frameIntervals: 333333-2000000, fourCC: 'I420'

Using directshow input
Using Monitor Capture
x264: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264: profile High, level 3.2
------------------------------------------
Video Encoding: x264
    fps: 40
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 3000
    buffer size: 3000
    quality: 8
------------------------------------------
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-ams.justin.tv/app
SO_SNDBUF was at 8192
SO_SNDBUF is now 65536
Total frames rendered: 6215, number of frames that lagged: 80 (1.29%) (it's okay for some frames to lag)
Total duplicated frames: 79 (1.27%)
RTMPPublisher::SocketLoop: Aborting due to bStopping
Number of times waited to send: 0, Waited for a total of 0 bytes
Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
x264: frame I:26    Avg QP:22.84  size: 99496
x264: frame P:1701  Avg QP:23.02  size:  3080
x264: frame B:4517  Avg QP:20.94  size:   265
x264: consecutive B-frames:  2.6%  2.6%  0.9% 93.9%
x264: mb I  I16..4: 35.0%  9.1% 55.8%
x264: mb P  I16..4:  1.2%  0.3%  0.5%  P16..4:  4.4%  1.7%  1.1%  0.0%  0.0%    skip:90.9%
x264: mb B  I16..4:  0.1%  0.0%  0.0%  B16..8:  0.7%  0.2%  0.0%  direct: 0.2%  skip:98.7%  L0:36.3% L1:46.7% BI:16.9%
x264: 8x8 transform intra:12.1% inter:24.5%
x264: coded y,uvDC,uvAC intra: 47.5% 45.2% 33.1% inter: 0.9% 0.6% 0.2%
x264: i16 v,h,dc,p: 48% 47%  3%  2%
x264: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 41% 16%  4%  4%  5%  5%  4%  5%
x264: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 31% 11%  5%  6%  6%  6%  5%  7%
x264: i8c dc,h,v,p: 48% 33% 14%  4%
x264: Weighted P-Frames: Y:0.0% UV:0.0%
x264: kb/s:462.54
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 11.067 ms] [avg calls per frame: 1] [children: 87.2%] [unaccounted: 12.8%]
| scene->Preprocess - [54.5%] [avg time: 6.033 ms] [avg calls per frame: 1]
| video encoding and uploading - [32.7%] [avg time: 3.614 ms] [avg calls per frame: 1] [children: 14.6%] [unaccounted: 18%]
| | CopyResource - [0.0271%] [avg time: 0.003 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [6.56%] [avg time: 0.726 ms] [avg calls per frame: 0]
| | call to encoder - [8.04%] [avg time: 0.89 ms] [avg calls per frame: 1]
| | sending stuff out - [0.0181%] [avg time: 0.002 ms] [avg calls per frame: 1]
==============================================================
 

dodgepong

Administrator
Community Helper
You might have a faster frame render time if you don't use Monitor capture. Monitor capture is the slowest capture method...Can you use Game Capture instead?

Also, have you tried enabling CFR?
 

hilalpro

Member
try creating a new scene that has game capture only and switch to that scene when starting your game play.
re enable multithreaded optimizations and put it on "high".
 

TheD5

Member
Oh i actually always use Game Capture just sended one Test when i tried to see how Monitor Capture works. However doesnt make a difference for me.

I thought CFR is mostly for Video recording and not really about the streaming.

I'll give it a try tomorrow
 

TheD5

Member
hilalpro said:
try creating a new scene that has game capture only and switch to that scene when starting your game play.
re enable multithreaded optimizations and put it on "high".

I use 2 Scenes already one for Monitor Capture and the other one for Game Capture.

I can try ti enable multithreaded optimizations again and i can put it on "high" but the problem existed there as well i think.

I feel like the problem is about the program somehow not being able to use my Cpu properly, just my guess ;)

Since i know Xsplit uses way more CPU than OBS and even if i have around 80% Cpu usage with Xsplit the stream is running smoother, sadly..
 

hilalpro

Member
TheD5 said:
hilalpro said:
try creating a new scene that has game capture only and switch to that scene when starting your game play.
re enable multithreaded optimizations and put it on "high".

I use 2 Scenes already one for Monitor Capture and the other one for Game Capture.

I can try ti enable multithreaded optimizations again and i can put it on "high" but the problem existed there as well i think.

I feel like the problem is about the program somehow not being able to use my Cpu properly, just my guess ;)

Since i know Xsplit uses way more CPU than OBS and even if i have around 80% Cpu usage with Xsplit the stream is running smoother, sadly..

try it, and also make obs's priority on high from task manager.
looking at the log the frame time is fine even on monitor capture. post another log file from your game play. also post a vod so we can check the the actual fps.
 

TheD5

Member
So i did what you adviced me and i found the problem.

The first vod i started OBS when i was already in the Loading Screen of League of Legends, means i was already in the game. Then there would be constant FPS.

http://de.twitch.tv/thed5/b/379587611

The second vod i already started capturing my monitor and then switched the Scene to Game CApture as soon as the game started and it lagged. I don't mean really huge lags for Freezes just minor ones who in my opinion get really annyiong as viewer. Also my Ingame wasnt as smooth as when i did the first vod.

http://de.twitch.tv/thed5/b/379588394

Any Ideas how to fix it?
 

TheD5

Member
I mean yeah, it's fine but also i bit frustrating because the first vod looks better than the second so i know my system can do these settings without problems but i just cant get this constant :/
 
Top