Since support on this forum is so awesome I would like to ask for a little advice.
I stream dota2 on twitch, I don't drop frames, everything on my side seems ok.
Now, some of my viewers say that they experience stuttering and can't really watch it. Because of that I tried CBR, it seemed to help but I wanted to set this up with crf=20 since it is improving picture quality pretty much from what I`ve seen. The problem is I'm not really sure if crf=20 is working the same way with CBR set to on and off. So here is my first question - what's the difference and is it ok to combine those 2 options?
Second thing - I read that CBR and ratetol are working pretty good together when it comes to stabilizing stream. So last night I tried everything I want together (CBR on, ratetol=20 and crf=20) I know these are advanced settings but my guess is that only this can help stabilize stream for some viewers. I was surprised because some viewers (more than usual) said that it stutters. So as emergency I set options back to crf=20 without CBR and ratetol.
Since I'm looking for a way to combine best picture quality with smooth stream for everyone (well, shocking... I know ;P) I would like to ask you - how would you combine those settings? I put here logs from both streams I mentioned (btw. can you tell me why quality=12 in option without CBR?) Big thanks in advance!
CBR ON:
CBR OFF
I stream dota2 on twitch, I don't drop frames, everything on my side seems ok.
Now, some of my viewers say that they experience stuttering and can't really watch it. Because of that I tried CBR, it seemed to help but I wanted to set this up with crf=20 since it is improving picture quality pretty much from what I`ve seen. The problem is I'm not really sure if crf=20 is working the same way with CBR set to on and off. So here is my first question - what's the difference and is it ok to combine those 2 options?
Second thing - I read that CBR and ratetol are working pretty good together when it comes to stabilizing stream. So last night I tried everything I want together (CBR on, ratetol=20 and crf=20) I know these are advanced settings but my guess is that only this can help stabilize stream for some viewers. I was surprised because some viewers (more than usual) said that it stutters. So as emergency I set options back to crf=20 without CBR and ratetol.
Since I'm looking for a way to combine best picture quality with smooth stream for everyone (well, shocking... I know ;P) I would like to ask you - how would you combine those settings? I put here logs from both streams I mentioned (btw. can you tell me why quality=12 in option without CBR?) Big thanks in advance!
CBR ON:
Code:
Open Broadcaster Software v0.47a - 32bit (´・ω・`)
-------------------------------
CPU Name: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
CPU Speed: 3392MHz
Physical Memory: 4095MB Total, 4095MB Free
stepping id: 7, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
Windows Version: 6.1 Build 7600
Aero is Disabled
------------------------------------------
Adapter 1
Video Adapter: NVIDIA GeForce GTX 550 Ti
Video Adapter Dedicated Video Memory: 1025179648
Video Adapter Shared System Memory: 3221385216
=====Stream Start=====================================================================
Multithreaded optimizations: On
Base resolution: 1920x1080
Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Głośniki (Realtek High Definition Audio)
------------------------------------------
Using auxilary audio input: Mikrofon (Samson C01U )
------------------------------------------
Audio Encoding: AAC
bitrate: 192
Using bitmap image
Using bitmap image
Using graphics capture
Using custom x264 settings: "ratetol=20 crf=20"
------------------------------------------
Video Encoding: x264
fps: 45
width: 1280, height: 720
preset: veryfast
CBR: yes
CFR: no
max bitrate: 2400
------------------------------------------
Total frames rendered: 179, 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: 1280x720
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Głośniki (Realtek High Definition Audio)
------------------------------------------
Using auxilary audio input: Mikrofon (Samson C01U )
------------------------------------------
Audio Encoding: AAC
bitrate: 192
Using bitmap image
Using bitmap image
Using bitmap image
Using text output
Using text output
Using text output
Using text output
Using text output
Using text output
Using bitmap image
Using custom x264 settings: "ratetol=20 crf=20"
------------------------------------------
Video Encoding: x264
fps: 45
width: 1280, height: 720
preset: veryfast
CBR: yes
CFR: no
max bitrate: 2400
------------------------------------------
Total frames rendered: 46, number of frames that lagged: 1 (2.17%) (it's okay for some frames to lag)
=====Stream End=======================================================================
=====Stream Start=====================================================================
Multithreaded optimizations: On
Base resolution: 1920x1080
Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Głośniki (Realtek High Definition Audio)
------------------------------------------
Using auxilary audio input: Mikrofon (Samson C01U )
------------------------------------------
Audio Encoding: AAC
bitrate: 192
Using bitmap image
Using bitmap image
Using bitmap image
Using text output
Using text output
Using text output
Using text output
Using text output
Using text output
Using bitmap image
Using custom x264 settings: "ratetol=20 crf=20"
------------------------------------------
Video Encoding: x264
fps: 45
width: 1280, height: 720
preset: veryfast
CBR: yes
CFR: no
max bitrate: 2400
------------------------------------------
Using RTMP service: Twitch / Justin.tv
Server selection: rtmp://live-ams.justin.tv/app
bufferTime: 2066, outputRateWindowTime: 1000, dropThreshold: 2566
RTMPPublisher::BufferedSend: Socket buffer is full (331319 / 331776 bytes), waiting to send 4097 bytes
RTMPPublisher::BufferedSend: Socket buffer is full (331319 / 331776 bytes), waiting to send 4097 bytes
RTMPPublisher::SocketLoop: Socket error, send() returned -1, GetLastError() 10054
Total frames rendered: 35218, number of frames that lagged: 12 (0.03%) (it's okay for some frames to lag)
okay, this is strange
librtmp error: WriteN, RTMP send error 10054 (79 bytes)
librtmp error: WriteN, RTMP send error 10038 (42 bytes)
Number of b-frames dropped: 66 (0.096%), Number of p-frames dropped: 0 (0%), Total 66 (0.096%)
=====Stream End=======================================================================
=====Stream Start=====================================================================
Multithreaded optimizations: On
Base resolution: 1920x1080
Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Głośniki (Realtek High Definition Audio)
------------------------------------------
Using auxilary audio input: Mikrofon (Samson C01U )
------------------------------------------
Audio Encoding: AAC
bitrate: 192
Using bitmap image
Using bitmap image
Using bitmap image
Using text output
Using text output
Using text output
Using text output
Using text output
Using text output
Using bitmap image
Using custom x264 settings: "ratetol=20 crf=20"
------------------------------------------
Video Encoding: x264
fps: 45
width: 1280, height: 720
preset: veryfast
CBR: yes
CFR: no
max bitrate: 2400
------------------------------------------
Using RTMP service: Twitch / Justin.tv
Server selection: rtmp://live-ams.justin.tv/app
librtmp error: RTMP_Connect0, failed to connect socket. 10060 (Unknown error)
Total frames rendered: 1054, number of frames that lagged: 1 (0.09%) (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: 1280x720
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Głośniki (Realtek High Definition Audio)
------------------------------------------
Using auxilary audio input: Mikrofon (Samson C01U )
------------------------------------------
Audio Encoding: AAC
bitrate: 192
Using bitmap image
Using bitmap image
Using bitmap image
Using text output
Using text output
Using text output
Using text output
Using text output
Using text output
Using bitmap image
Using custom x264 settings: "ratetol=20 crf=20"
------------------------------------------
Video Encoding: x264
fps: 45
width: 1280, height: 720
preset: veryfast
CBR: yes
CFR: no
max bitrate: 2400
------------------------------------------
Using RTMP service: Twitch / Justin.tv
Server selection: rtmp://live-ams.justin.tv/app
bufferTime: 2393, outputRateWindowTime: 1000, dropThreshold: 2893
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
Using bitmap image
Using bitmap image
Using graphics capture
SharedTexCapture hooked
RTMPPublisher::BufferedSend: Socket buffer is full (331014 / 331776 bytes), waiting to send 2042 bytes
RTMPPublisher::BufferedSend: Socket buffer is full (331014 / 331776 bytes), waiting to send 2042 bytes
RTMPPublisher::BufferedSend: Socket buffer is full (330130 / 331776 bytes), waiting to send 2747 bytes
RTMPPublisher::BufferedSend: Socket buffer is full (330130 / 331776 bytes), waiting to send 2747 bytes
RTMPPublisher::BufferedSend: Socket buffer is full (327700 / 331776 bytes), waiting to send 4104 bytes
RTMPPublisher::BufferedSend: Socket buffer is full (330040 / 331776 bytes), waiting to send 4097 bytes
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
Using bitmap image
Using bitmap image
Using bitmap image
Using text output
Using text output
Using text output
Using text output
Using text output
Using text output
Using bitmap image
Total frames rendered: 131930, number of frames that lagged: 43 (0.03%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to bStopping
Number of b-frames dropped: 132 (0.051%), Number of p-frames dropped: 0 (0%), Total 132 (0.051%)
=====Stream End=======================================================================
Profiler results:
==============================================================
frame - [100%] [avg time: 3.766 ms] [avg calls per frame: 1] [children: 91.1%] [unaccounted: 8.87%]
| scene->Preprocess - [0.0797%] [avg time: 0.003 ms] [avg calls per frame: 1]
| video encoding and uploading - [91.1%] [avg time: 3.429 ms] [avg calls per frame: 1] [children: 31.7%] [unaccounted: 59.3%]
| | CopyResource - [0.478%] [avg time: 0.018 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.0797%] [avg time: 0.003 ms] [avg calls per frame: 0]
| | call to encoder - [31%] [avg time: 1.166 ms] [avg calls per frame: 0]
| | sending stuff out - [0.212%] [avg time: 0.008 ms] [avg calls per frame: 0]
==============================================================
CBR OFF
Code:
Open Broadcaster Software v0.47a - 32bit (´・ω・`)
-------------------------------
CPU Name: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
CPU Speed: 3392MHz
Physical Memory: 4095MB Total, 4095MB Free
stepping id: 7, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
Windows Version: 6.1 Build 7600
Aero is Disabled
------------------------------------------
Adapter 1
Video Adapter: NVIDIA GeForce GTX 550 Ti
Video Adapter Dedicated Video Memory: 1025179648
Video Adapter Shared System Memory: 3221385216
=====Stream Start=====================================================================
Multithreaded optimizations: On
Base resolution: 1920x1080
Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Głośniki (Realtek High Definition Audio)
------------------------------------------
Using auxilary audio input: Mikrofon (Samson C01U )
------------------------------------------
Audio Encoding: AAC
bitrate: 192
Using bitmap image
Using bitmap image
Using bitmap image
Using text output
Using text output
Using text output
Using text output
Using text output
Using text output
Using bitmap image
Using custom x264 settings: "crf=20"
------------------------------------------
Video Encoding: x264
fps: 45
width: 1280, height: 720
preset: veryfast
CBR: no
CFR: no
max bitrate: 2400
buffer size: 2400
quality: 12
------------------------------------------
Total frames rendered: 22, number of frames that lagged: 1 (4.55%) (it's okay for some frames to lag)
=====Stream End=======================================================================
=====Stream Start=====================================================================
Multithreaded optimizations: On
Base resolution: 1920x1080
Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Głośniki (Realtek High Definition Audio)
------------------------------------------
Using auxilary audio input: Mikrofon (Samson C01U )
------------------------------------------
Audio Encoding: AAC
bitrate: 192
Using bitmap image
Using bitmap image
Using bitmap image
Using text output
Using text output
Using text output
Using text output
Using text output
Using text output
Using bitmap image
Using custom x264 settings: "crf=20"
------------------------------------------
Video Encoding: x264
fps: 45
width: 1280, height: 720
preset: veryfast
CBR: no
CFR: no
max bitrate: 2400
buffer size: 2400
quality: 12
------------------------------------------
Using RTMP service: Twitch / Justin.tv
Server selection: rtmp://live-ams.justin.tv/app
bufferTime: 2070, outputRateWindowTime: 1000, dropThreshold: 2570
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
Using bitmap image
Using bitmap image
Using graphics capture
SharedTexCapture hooked
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
Using bitmap image
Using bitmap image
Using bitmap image
Using text output
Using text output
Using text output
Using text output
Using text output
Using text output
Using bitmap image
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
Using bitmap image
Using bitmap image
Using graphics capture
SharedTexCapture hooked
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
Using bitmap image
Using bitmap image
Using bitmap image
Using text output
Using text output
Using text output
Using text output
Using text output
Using text output
Using bitmap image
Total frames rendered: 391354, number of frames that lagged: 903 (0.23%) (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: 4.182 ms] [avg calls per frame: 1] [children: 92.9%] [unaccounted: 7.08%]
| scene->Preprocess - [0.0717%] [avg time: 0.003 ms] [avg calls per frame: 1]
| video encoding and uploading - [92.9%] [avg time: 3.883 ms] [avg calls per frame: 1] [children: 28.1%] [unaccounted: 64.7%]
| | CopyResource - [0.407%] [avg time: 0.017 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.0717%] [avg time: 0.003 ms] [avg calls per frame: 0]
| | call to encoder - [27.5%] [avg time: 1.148 ms] [avg calls per frame: 0]
| | sending stuff out - [0.191%] [avg time: 0.008 ms] [avg calls per frame: 0]
==============================================================