Question / Help First world streaming problem(heh)

twizzR

New Member
Hello all, Ive been streaming a lot before and I haven't actually been streaming that much lately(dno if anyone remember,I doubt it).
RIght now I found out that FFsplit and OBS have been around for some time and I thought I should give them a try. Compared to xsplit they're a lot better imo, as a first impression.
Video wise Im able to actually do 1920x1080 @ 60fps. The sucky part is that the stream itself lags as hell. The vod that ends up at twitch does not. Does anyone have any kind of reasonable explanation to this phenomenon? Anything else works with this software, its actually amazing(so far).
Here's the vod

http://www.twitch.tv/twizzr/b/346906983

I might post the log file information as well

Open Broadcaster Software v0.449a [test 7] - 32bit (´・ω・`)
-------------------------------
CPU Name: Intel(R) Core(TM) i7 CPU 950 @ 3.07GHz
CPU Speed: 3916MHz
Physical Memory: 4095MB Total, 4027MB Free
stepping id: 5, model 10, family 6, type 0, extmodel 0, extfamily 0, HTT 1, logical cores 8, total cores 4
------------------------------------------
Adapter 1
Video Adapter: AMD Radeon HD 7900 Series
Video Adapter Dedicated Video Memory: 3197394944
Video Adapter Shared System Memory: 2948130816
=====Stream Start=====================================================================
Multithreaded optimizations: On
Base resolution: 1920x1080
Output resolution: 1920x1080
------------------------------------------
Loading up D3D10...
Using 7.1 surround speaker setup (experimental)
------------------------------------------
Using auxilary audio input: Microphone (3- Logitech G35 Headset)
------------------------------------------
Audio Encoding: AAC
bitrate: 128
------------------------------------------
Video Encoding: x264
fps: 60
width: 1920, height: 1080
preset: veryfast
CBR: no
max bitrate: 3000
buffer size: 3000
quality: 10
------------------------------------------
using shared texture capture
bufferTime: 2554, outputRateWindowTime: 1000, dropThreshold: 3054
Total frames rendered: 8356, number of frames that lagged: 3 (0.04%) (it's okay for some frames to lag)
Number of b-frames dropped: 85 (%0.59), Number of p-frames dropped: 27 (%0.19), Total 112 (%0.78)
=====Stream End=======================================================================
=====Stream Start=====================================================================
Multithreaded optimizations: On
Base resolution: 1920x1080
Output resolution: 1920x1080
------------------------------------------
Loading up D3D10...
Using 7.1 surround speaker setup (experimental)
------------------------------------------
Using auxilary audio input: Microphone (3- Logitech G35 Headset)
------------------------------------------
Audio Encoding: AAC
bitrate: 128
------------------------------------------
Video Encoding: x264
fps: 60
width: 1920, height: 1080
preset: veryfast
CBR: no
max bitrate: 3000
buffer size: 3000
quality: 10
------------------------------------------
using shared texture capture
bufferTime: 2966, outputRateWindowTime: 1000, dropThreshold: 3466
Total frames rendered: 9945, number of frames that lagged: 1 (0.01%) (it's okay for some frames to lag)
Number of b-frames dropped: 0 (%0), Number of p-frames dropped: 0 (%0), Total 0 (%0)
=====Stream End=======================================================================
=====Stream Start=====================================================================
Multithreaded optimizations: On
Base resolution: 1920x1080
Output resolution: 1920x1080
------------------------------------------
Loading up D3D10...
Using 7.1 surround speaker setup (experimental)
------------------------------------------
Using auxilary audio input: Microphone (3- Logitech G35 Headset)
------------------------------------------
Audio Encoding: AAC
bitrate: 128
------------------------------------------
Video Encoding: x264
fps: 60
width: 1920, height: 1080
preset: veryfast
CBR: no
max bitrate: 2000
buffer size: 2000
quality: 10
------------------------------------------
using shared texture capture
bufferTime: 2554, outputRateWindowTime: 1000, dropThreshold: 3054
Total frames rendered: 6075, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
Number of b-frames dropped: 0 (%0), Number of p-frames dropped: 0 (%0), Total 0 (%0)
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 4.15 ms] [avg calls per frame: 1] [children: 84.7%] [unaccounted: 15.3%]
| scene->Preprocess - [0.0241%] [avg time: 0.001 ms] [avg calls per frame: 1]
| video encoding and uploading - [84.6%] [avg time: 3.512 ms] [avg calls per frame: 1] [children: 50.2%] [unaccounted: 34.4%]
| | CopyResource - [0.193%] [avg time: 0.008 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.0964%] [avg time: 0.004 ms] [avg calls per frame: 0]
| | call to encoder - [49.6%] [avg time: 2.059 ms] [avg calls per frame: 0]
| | sending stuff out - [0.289%] [avg time: 0.012 ms] [avg calls per frame: 0]
==============================================================

Edit: added the complete log file in a spoiler
 

micechal

Member
Maybe your connection is too slow to upload and download stream in one time? Because when you stream, you're uploading at 3000kbps, and when watching your stream you download at 3000kbps. I'd try to lower the bitrate a bit, maybe to 2000 and use higher CPU preset to achieve the same quality. The second option, may be that your PC is too busy when streaming 1080p@60FPS, playing a game, and decoding such stream. That's very large resoultion and veeery many frames to decode, and h264 is somewhat CPU demanding.
 

twizzR

New Member
micechal said:
Maybe your connection is too slow to upload and download stream in one time? Because when you stream, you're uploading at 3000kbps, and when watching your stream you download at 3000kbps. I'd try to lower the bitrate a bit, maybe to 2000 and use higher CPU preset to achieve the same quality. The second option, may be that your PC is too busy when streaming 1080p@60FPS, playing a game, and decoding such stream. That's very large resoultion and veeery many frames to decode, and h264 is somewhat CPU demanding.

Hmm, I tried with 2000 bitrate, didn't help. This only occurs while trying 1080p@60FPS.
Might be true, but wouldn't my computer start lagging ? I mean, my game is pretty much stable 55-60 fps at all times
 

retbergen

Member
how about a slow increase strategy to find your optimal quality? jumping straight to HD 60 fps is not teaching you anything about where to optimize
 

micechal

Member
To check if I'm right, you could start streaming at 1080p@60FPS and then try to watch a VOD on twitch.tv. If when streaming VOD will be lagging, you will know your PC just can't handle decoding and encoding h264 1080p@60FPS at one time :)
 

twizzR

New Member
retbergen said:
how about a slow increase strategy to find your optimal quality? jumping straight to HD 60 fps is not teaching you anything about where to optimize

Oh I've been trying a lot of different setups, this seems to be the first one which has viewing problems live, just not in the vod.

Here's a vod with the new 0.452a, no difference, same thing.
http://www.twitch.tv/twizzr/b/347431722
Please ignore the norwegian babble(you might wanna mute :P )

@micechal

wait, Im not sure if I understand you correctly:
STreaming 1080p@60fps and watch my earlier vods at the same time? Shouldn't basically that show as lag in the preview window?(WIIILD guess)

Edit: Anyways I tried what I atleast described and that resulted in still a completely fine vod.. hm.
 

micechal

Member
Yes, streaming 1080p@60, playing a game, and watching 1080p@60 twitch vod to check my opinion I posted before:
The second option, may be that your PC is too busy when streaming 1080p@60FPS, playing a game, and decoding such stream. That's very large resoultion and veeery many frames to decode, and h264 is somewhat CPU demanding.
 

twizzR

New Member
micechal said:
Yes, streaming 1080p@60, playing a game, and watching 1080p@60 twitch vod to check my opinion I posted before:
The second option, may be that your PC is too busy when streaming 1080p@60FPS, playing a game, and decoding such stream. That's very large resoultion and veeery many frames to decode, and h264 is somewhat CPU demanding.
Yep, I did. No performance loss, atleast on the vod it seems ok.

Here's there log

Open Broadcaster Software v0.452a - 32bit (´・ω・`)
-------------------------------
CPU Name: Intel(R) Core(TM) i7 CPU 950 @ 3.07GHz
CPU Speed: 3916MHz
Physical Memory: 4095MB Total, 3414MB Free
stepping id: 5, model 10, family 6, type 0, extmodel 0, extfamily 0, HTT 1, logical cores 8, total cores 4
------------------------------------------
Adapter 1
Video Adapter: AMD Radeon HD 7900 Series
Video Adapter Dedicated Video Memory: 3197394944
Video Adapter Shared System Memory: 2948130816
=====Stream Start=====================================================================
Multithreaded optimizations: On
Base resolution: 1920x1080
Output resolution: 1920x1080
------------------------------------------
Loading up D3D10...
Using 7.1 surround speaker setup (experimental)
------------------------------------------
Using auxilary audio input: Microphone (3- Logitech G35 Headset)
------------------------------------------
Audio Encoding: AAC
bitrate: 128
------------------------------------------
Video Encoding: x264
fps: 60
width: 1920, height: 1080
preset: veryfast
CBR: no
max bitrate: 3000
buffer size: 3000
quality: 10
------------------------------------------
using shared texture capture
Total frames rendered: 61, 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: 1920x1080
Output resolution: 1920x1080
------------------------------------------
Loading up D3D10...
Using 7.1 surround speaker setup (experimental)
------------------------------------------
Using auxilary audio input: Microphone (3- Logitech G35 Headset)
------------------------------------------
Audio Encoding: AAC
bitrate: 128
------------------------------------------
Video Encoding: x264
fps: 60
width: 1920, height: 1080
preset: veryfast
CBR: no
max bitrate: 3000
buffer size: 3000
quality: 10
------------------------------------------
using shared texture capture
bufferTime: 2740, outputRateWindowTime: 1000, dropThreshold: 3240
Total frames rendered: 2894, number of frames that lagged: 1 (0.03%) (it's okay for some frames to lag)
Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
=====Stream End=======================================================================
=====Stream Start=====================================================================
Multithreaded optimizations: On
Base resolution: 1920x1080
Output resolution: 1920x1080
------------------------------------------
Loading up D3D10...
Using 7.1 surround speaker setup (experimental)
------------------------------------------
Using auxilary audio input: Microphone (3- Logitech G35 Headset)
------------------------------------------
Audio Encoding: AAC
bitrate: 128
------------------------------------------
Video Encoding: x264
fps: 60
width: 1920, height: 1080
preset: veryfast
CBR: no
max bitrate: 3000
buffer size: 3000
quality: 10
------------------------------------------
using shared texture capture
bufferTime: 2607, outputRateWindowTime: 1000, dropThreshold: 3107
Total frames rendered: 3425, number of frames that lagged: 10 (0.29%) (it's okay for some frames to lag)
Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 4.45 ms] [avg calls per frame: 1] [children: 84.8%] [unaccounted: 15.2%]
| scene->Preprocess - [0.0225%] [avg time: 0.001 ms] [avg calls per frame: 1]
| video encoding and uploading - [84.8%] [avg time: 3.773 ms] [avg calls per frame: 1] [children: 51.2%] [unaccounted: 33.6%]
| | CopyResource - [0.202%] [avg time: 0.009 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.0674%] [avg time: 0.003 ms] [avg calls per frame: 0]
| | call to encoder - [50.7%] [avg time: 2.257 ms] [avg calls per frame: 0]
| | sending stuff out - [0.225%] [avg time: 0.01 ms] [avg calls per frame: 0]
==============================================================

http://www.twitch.tv/twizzr/b/347441413
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Your vods seem fine for the most part. If you try to view your own stream while streaming, especially at that res/fps, that will cause issues, you want to make sure to check your stream from another computer or have someone else check it while streaming to be sure if possible (if you didn't already do that or know that at least)

Your logs also seem great. Seems like there is nothing wrong there. You may however want to experiment with the settings and determine which specific setting affects this the most. By knowing that, it makes it a bit easier for me to be able to determine specifically what's causing the problem, I think
 
Top