Bug Report Stream stutters / Ingame smooth

recon

Member
First of all I am deeply impressed. I tried to stream with several other tools and none of them worked for me (lags/fps drops/etc).
OBS just works great and keeps my ingame fps on a decent amount.

But I just realized one problem now: The stream itself is stuttering a bit while ingame everything is smooth.
Example: http://www.twitch.tv/recon88/b/351138465# (Ignore the 14-20FPS Parts - That happens when minimizing the game)

Capturing the LoL Client with "Window Capture" and the game itself with "Game Capture".
Also I chose the nearest server (~20MS).

Connection (100/5):
2394525365.png


Log:
Code:
Open Broadcaster Software v0.463a (capture card audio test 3) - 32bit (´・ω・`)
-------------------------------
CPU Name: AMD Athlon(tm) II X4 651 Quad-Core Processor
CPU Speed: 3000MHz
Physical Memory:  4095MB Total, 2353MB Free
stepping id: 0, model 1, family 15, type 0, extmodel 8, extfamily 1, HTT 1, logical cores 4, total cores 4
Windows Version: 6.1 Build 7601 S
Aero is Disabled
------------------------------------------
Adapter 1
  Video Adapter: ATI Radeon HD 5800 Series
  Video Adapter Dedicated Video Memory: 1061793792
  Video Adapter Shared System Memory: 2940901376
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: Line 1 (Virtual Audio Cable)
------------------------------------------
Audio Encoding: MP3
    bitrate: 256
Using Window Capture
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    preset: superfast
    CBR: no
    max bitrate: 3500
    buffer size: 3500
    quality: 5
------------------------------------------
AudioSource::QueryAudio: A timestampfor device 'Line 1 (Virtual Audio Cable)' just went 84358493 off, calculating timestamps from here out
Using RTMP service: TwitchTV/JustinTV
  Server selection: rtmp://live-fra.justin.tv/app
bufferTime: 2210, outputRateWindowTime: 1000, dropThreshold: 2710
Using graphics capture
SharedTexCapture hooked
Total frames rendered: 8199, number of frames that lagged: 63 (0.77%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to bStopping
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: 19.529 ms] [avg calls per frame: 1] [children: 80.1%] [unaccounted: 19.9%]
| scene->Preprocess - [50.4%] [avg time: 9.846 ms] [avg calls per frame: 1]
| video encoding and uploading - [29.6%] [avg time: 5.787 ms] [avg calls per frame: 1] [children: 11.2%] [unaccounted: 18.4%]
| | CopyResource - [0.486%] [avg time: 0.095 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.0768%] [avg time: 0.015 ms] [avg calls per frame: 0]
| | call to encoder - [10.6%] [avg time: 2.062 ms] [avg calls per frame: 0]
| | sending stuff out - [0.102%] [avg time: 0.02 ms] [avg calls per frame: 0]
==============================================================

Edit:
Same with 1080p streaming. Ingame FPS are ok and everything is smooth but stream stutters.
Example: http://www.twitch.tv/recon88/b/351143912#

Log:
Code:
Open Broadcaster Software v0.461a - 32bit (´・ω・`)
-------------------------------
CPU Name: AMD Athlon(tm) II X4 651 Quad-Core Processor
CPU Speed: 3000MHz
Physical Memory:  4095MB Total, 2202MB Free
stepping id: 0, model 1, family 15, type 0, extmodel 8, extfamily 1, HTT 1, logical cores 4, total cores 4
Windows Version: 6.1 Build 7601 S
Aero is Disabled
------------------------------------------
Adapter 1
  Video Adapter: ATI Radeon HD 5800 Series
  Video Adapter Dedicated Video Memory: 1061793792
  Video Adapter Shared System Memory: 2940901376
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1920x1080
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: Line 1 (Virtual Audio Cable)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using Window Capture
Using graphics capture
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1920, height: 1080
    preset: superfast
    CBR: no
    max bitrate: 4000
    buffer size: 4000
    quality: 5
------------------------------------------
bufferTime: 1911, outputRateWindowTime: 1000, dropThreshold: 2411
Total frames rendered: 5126, number of frames that lagged: 9 (0.18%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to bStopping
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: 8.425 ms] [avg calls per frame: 1] [children: 91.1%] [unaccounted: 8.85%]
| scene->Preprocess - [6.94%] [avg time: 0.585 ms] [avg calls per frame: 1]
| video encoding and uploading - [84.2%] [avg time: 7.094 ms] [avg calls per frame: 1] [children: 61.3%] [unaccounted: 22.9%]
| | CopyResource - [1.69%] [avg time: 0.142 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.344%] [avg time: 0.029 ms] [avg calls per frame: 0]
| | call to encoder - [58.9%] [avg time: 4.962 ms] [avg calls per frame: 0]
| | sending stuff out - [0.404%] [avg time: 0.034 ms] [avg calls per frame: 0]
==============================================================

Edit2:
Lowered FPS and Bitrate. Still the same stutter.
Example: http://www.twitch.tv/recon88/b/351153084#

Log:
Code:
Open Broadcaster Software v0.461a - 32bit (´・ω・`)
-------------------------------
CPU Name: AMD Athlon(tm) II X4 651 Quad-Core Processor
CPU Speed: 3000MHz
Physical Memory:  4095MB Total, 2767MB Free
stepping id: 0, model 1, family 15, type 0, extmodel 8, extfamily 1, HTT 1, logical cores 4, total cores 4
Windows Version: 6.1 Build 7601 S
Aero is Disabled
------------------------------------------
Adapter 1
  Video Adapter: ATI Radeon HD 5800 Series
  Video Adapter Dedicated Video Memory: 1061793792
  Video Adapter Shared System Memory: 2940901376
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1920x1080
------------------------------------------
Loading up D3D10...
------------------------------------------
Using auxilary audio input: Line 1 (Virtual Audio Cable)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using Window Capture
Using graphics capture
------------------------------------------
Video Encoding: x264
    fps: 25
    width: 1920, height: 1080
    preset: superfast
    CBR: no
    max bitrate: 3500
    buffer size: 3500
    quality: 5
------------------------------------------
bufferTime: 1927, outputRateWindowTime: 1000, dropThreshold: 2427
RTMPPublisher::BufferedSend: Buffer is full (463064 / 463872 bytes), waiting to send 4104 bytes
RTMPPublisher::BufferedSend: Buffer is full (463064 / 463872 bytes), waiting to send 4104 bytes
RTMPPublisher::BufferedSend: Buffer is full (459917 / 463872 bytes), waiting to send 4104 bytes
RTMPPublisher::BufferedSend: Buffer is full (459917 / 463872 bytes), waiting to send 4104 bytes
RTMPPublisher::BufferedSend: Buffer is full (461033 / 463872 bytes), waiting to send 4097 bytes
RTMPPublisher::BufferedSend: Buffer is full (461033 / 463872 bytes), waiting to send 4097 bytes
Total frames rendered: 4130, number of frames that lagged: 25 (0.61%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to bStopping
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: 14.322 ms] [avg calls per frame: 1] [children: 60.2%] [unaccounted: 39.8%]
| scene->Preprocess - [15.2%] [avg time: 2.175 ms] [avg calls per frame: 1]
| video encoding and uploading - [45%] [avg time: 6.443 ms] [avg calls per frame: 1] [children: 33.2%] [unaccounted: 11.8%]
| | CopyResource - [0.517%] [avg time: 0.074 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.342%] [avg time: 0.049 ms] [avg calls per frame: 0]
| | call to encoder - [32.2%] [avg time: 4.615 ms] [avg calls per frame: 0]
| | sending stuff out - [0.154%] [avg time: 0.022 ms] [avg calls per frame: 0]
==============================================================

I know my CPU isn't the best at all but it looks like it does work with that crappy piece.
And as you can see I tried the beta version and the stable version.
Can't use the 64Bit version because it doesn't detect the 32Bit game.
 

recon

Member
I'm using Audio Repeater to get rid of Teamspeak and other sounds.
The soundcard itself is a Xonar DG and the default soundcard is set to the Line 1 from the Audio Repeater. That one I selected in OBS.
 

R1CH

Forum Admin
Developer
You can't use VAC as a default audio device with OBS since it generates incorrect timestamps. Use your regular sound card and the VAC Line 1 as your aux input as a workaround.
 

recon

Member
Will that be ever fixed? I don't want to change my current sound setup... It took me two days to set it up.
And as I said I don't want Teamspeak voices and sounds on my stream so I need to use VAC as default soundcard for everything but Teamspeak. Otherwise it would not work.

Edit:
Well I disabled VAC and set my Xonar to default. Restarted Computer.
That made the stuttering worse.

Example: http://www.twitch.tv/recon88/b/351177388#

Log:
Code:
Open Broadcaster Software v0.461a - 32bit (´・ω・`)
-------------------------------
CPU Name: AMD Athlon(tm) II X4 651 Quad-Core Processor
CPU Speed: 3000MHz
Physical Memory:  4095MB Total, 2428MB Free
stepping id: 0, model 1, family 15, type 0, extmodel 8, extfamily 1, HTT 1, logical cores 4, total cores 4
Windows Version: 6.1 Build 7601 S
Aero is Disabled
------------------------------------------
Adapter 1
  Video Adapter: ATI Radeon HD 5800 Series
  Video Adapter Dedicated Video Memory: 1061793792
  Video Adapter Shared System Memory: 2940901376
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1920x1080
------------------------------------------
Loading up D3D10...
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using Window Capture
Using graphics capture
------------------------------------------
Video Encoding: x264
    fps: 25
    width: 1920, height: 1080
    preset: superfast
    CBR: no
    max bitrate: 3500
    buffer size: 3500
    quality: 5
------------------------------------------
bufferTime: 1967, outputRateWindowTime: 1000, dropThreshold: 2467
Total frames rendered: 3865, number of frames that lagged: 28 (0.72%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to bStopping
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: 12.837 ms] [avg calls per frame: 1] [children: 80%] [unaccounted: 20%]
| scene->Preprocess - [23.5%] [avg time: 3.013 ms] [avg calls per frame: 1]
| video encoding and uploading - [56.6%] [avg time: 7.261 ms] [avg calls per frame: 1] [children: 36.7%] [unaccounted: 19.9%]
| | CopyResource - [0.631%] [avg time: 0.081 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.257%] [avg time: 0.033 ms] [avg calls per frame: 0]
| | call to encoder - [35.5%] [avg time: 4.554 ms] [avg calls per frame: 0]
| | sending stuff out - [0.312%] [avg time: 0.04 ms] [avg calls per frame: 0]
==============================================================
 

R1CH

Forum Admin
Developer
That VOD seemed fine to me, unless you are referring to audio stutter? (I have no sound here).
 

recon

Member
Watch from 1:10 to 1:35 and you will see it is stuttering more than before (ofc the video ... sound is great with the Xonar or VAC).
So changing the soundcard does not fix the video problems and you can't tell me that it is running smooth... It's everything but smooth.
 

Tak0r

Member
R1CH said:
You can't use VAC as a default audio device with OBS since it generates incorrect timestamps. Use your regular sound card and the VAC Line 1 as your aux input as a workaround.

It's fixed in the lastest versions I havent had any problems after the upgrade. He probably uses the crashed version from the net where the bug isn't fixed.
 

recon

Member
Tak0r said:
R1CH said:
You can't use VAC as a default audio device with OBS since it generates incorrect timestamps. Use your regular sound card and the VAC Line 1 as your aux input as a workaround.

It's fixed in the lastest versions I havent had any problems after the upgrade. He probably uses the crashed version from the net where the bug isn't fixed.
Please read what I wrote... I disabled VAC and the video still stutters so it's not the fault of VAC.
 

hilalpro

Member
with window capture aero should be enabled.
with monitor capture it should be disabled.
with the experimental game capture it should be disabled if there is another scene with monitor capture or in general.

so enable aero and make sure obs thread's priority are high on advanced settings.
 

recon

Member
hilalpro said:
with window capture aero should be enabled.
with monitor capture it should be disabled.
with the experimental game capture it should be disabled if there is another scene with monitor capture or in general.

so enable aero and make sure obs thread's priority are high on advanced settings.
Already tried that stuff. Aero is on, there is no second scene or capture and I'm using the game source.
Tried with high priority but nothing changes.
 

hilalpro

Member
recon said:
hilalpro said:
with window capture aero should be enabled.
with monitor capture it should be disabled.
with the experimental game capture it should be disabled if there is another scene with monitor capture or in general.

so enable aero and make sure obs thread's priority are high on advanced settings.
Already tried that stuff. Aero is on, there is no second scene or capture and I'm using the game source.
Tried with high priority but nothing changes.
put obs.exe on task manager to high priority aswell see if your game stutters instead (it wont show on stream)
 

hilalpro

Member
recon said:
Still the same :/ Game is fine.
well, since you're using game capture
go to your gpu driver control panel then the parameters for 3d or specifically lol set the pre randered frames to the maximum value if there's an option or anything that controls how many frames the cpu can process before sending to the gpu.
 

recon

Member
It was on high. I doublechecked the obs.exe process. Also I set it back to normal after testing.
Oh and I minimized the game for a second... That's why there are drops to ~20 sometimes.

GPU Settings:
- Tessellation (AMD optimized)
- Catalyst A.I. (Performance)
- Mipmap (Performance)
- Vsync (deactivated/applications controls it)
- AA (Performance)
- Tripple buffering (deactivated)

Also tried to limit ingame fps to 60 and enabled vsync once. Same stutter.
 
Top