Question / Help Lagging when stream ego-shooter

Andiy

New Member
Hello,

i have massive Framedrops, when i stream ego-shooter-games.


My logfile:
Code:
9:28:56: =====Stream Start: 2016-03-15, 19:28:56===============================================
19:28:56:   Multithreaded optimizations: On
19:28:56:   Base resolution: 2560x1440
19:28:56:   Output resolution: 1704x960
19:28:56: ------------------------------------------
19:28:56: Loading up D3D10 on NVIDIA GeForce GTX 970 (Adapter 1)...
19:28:56: ------------------------------------------
19:28:56: Audio Format: 48000 Hz
19:28:56: ------------------------------------------
19:28:56: Audio Channels: 2 Ch
19:28:56: Playback device {0.0.0.00000000}.{f96d3d9d-766e-4493-b341-dc4b0d8e95a3}
19:28:56: ------------------------------------------
19:28:56: Using desktop audio input: Lautsprecher (Sound Blaster Recon3Di)
19:28:56: Global Audio time adjust: 0
19:28:56: Using 5.1 speaker setup
19:28:56: ------------------------------------------
19:28:56: Using auxilary audio input: Line (2- AG06/AG03)
19:28:56: Mic time offset: 0
19:28:56: ------------------------------------------
19:28:56: Audio Encoding: AAC
19:28:56:     bitrate: 160
19:28:56: Using text output
19:28:56: Using bitmap image
19:28:56: ------------------------------------------
19:28:56:     device: Logitech HD Pro Webcam C920,
19:28:56:     device id \\?\usb#vid_046d&pid_082d&mi_00#6&150705ea&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
19:28:56:     chosen type: I420, usingFourCC: false, res: 1920x1080 - 1920x1080, frameIntervals: 333333-2000000
19:28:56:     use buffering: false - 0, fourCC: 'I420'
19:28:56:     audio device: Deaktivieren,
19:28:56:     audio device id Disabled,
19:28:56:     audio time offset 0,
19:28:56:
19:28:56: CLRHost:: Browser 36: Status message:
19:28:56: Using directshow input
19:28:56: Using bitmap image
19:28:56: Using graphics capture
19:28:57: Using anti-cheat hooking for game capture
19:28:57: Trying to hook process: Victory.exe
19:28:57: Scene buffering time set to 700
19:28:57: ------------------------------------------
19:28:57: Video Encoding: x264
19:28:57:     fps: 30
19:28:57:     width: 1704, height: 960
19:28:57:     preset: veryfast
19:28:57:     profile: main
19:28:57:     keyint: 60
19:28:57:     CBR: yes
19:28:57:     CFR: yes
19:28:57:     max bitrate: 2400
19:28:57:     buffer size: 2200
19:28:57: ------------------------------------------
Warning -- SharedTexCapture::Init: Could not open file mapping: 2
19:28:57: SharedTexCapture hooked
19:28:57: CLRHost:: Browser 35: Status message:
19:28:57: CLRHost:: Browser 35: Failed to set referrer policy: The value 'no-referrer' is not one of 'always', 'default', 'never', or 'origin'. Defaulting to 'never'. @https://www.tipeeestream.com/widget/socket/554258ffe121c?v=20151204143913#4709687c73be6bbb46b870b07b301d5d4dd2cae87
19:28:57: CLRHost:: Browser 34: Status message:
19:28:57: CLRHost:: Browser 34: Failed to set referrer policy: The value 'no-referrer' is not one of 'always', 'default', 'never', or 'origin'. Defaulting to 'never'. @https://www.tipeeestream.com/widget/socket/5661987662771?v=20151204144353#4709687c73be6bbb46b870b07b301d5d4dd2cae87
19:28:57: CLRHost:: Browser 33: Status message:
19:28:57: CLRHost:: Browser 33: Failed to set referrer policy: The value 'no-referrer' is not one of 'always', 'default', 'never', or 'origin'. Defaulting to 'never'. @https://www.tipeeestream.com/widget/socket/556474b48b7da?v=20151204144045#4709687c73be6bbb46b870b07b301d5d4dd2cae87
19:28:57: CLRHost:: Browser 37: Status message:
19:28:57: CLRHost:: Browser 37: Failed to set referrer policy: The value 'no-referrer' is not one of 'always', 'default', 'never', or 'origin'. Defaulting to 'never'. @https://www.tipeeestream.com/widget/socket/554258a770b26?v=20150918183334#4709687c73be6bbb46b870b07b301d5d4dd2cae87
19:28:57: CLRHost:: Browser 35: Status message:
19:28:57: CLRHost:: Browser 35: Failed to set referrer policy: The value 'no-referrer' is not one of 'always', 'default', 'never', or 'origin'. Defaulting to 'never'. @https://www.tipeeestream.com/widget/top_and_last/554258ffe121c?v=20151204143913#4709687c73be6bbb46b870b07b301d5d4dd2cae87
19:28:58: CLRHost:: Browser 34: Status message:
19:28:58: CLRHost:: Browser 34: Failed to set referrer policy: The value 'no-referrer' is not one of 'always', 'default', 'never', or 'origin'. Defaulting to 'never'. @https://www.tipeeestream.com/widget/top_and_last/5661987662771?v=20151204144353#4709687c73be6bbb46b870b07b301d5d4dd2cae87
19:28:58: CLRHost:: Browser 33: Status message:
19:28:58: CLRHost:: Browser 33: Failed to set referrer policy: The value 'no-referrer' is not one of 'always', 'default', 'never', or 'origin'. Defaulting to 'never'. @https://www.tipeeestream.com/widget/top_and_last/556474b48b7da?v=20151204144045#4709687c73be6bbb46b870b07b301d5d4dd2cae87
19:28:58: CLRHost:: Browser 37: Status message:
19:28:58: CLRHost:: Browser 37: Failed to set referrer policy: The value 'no-referrer' is not one of 'always', 'default', 'never', or 'origin'. Defaulting to 'never'. @https://www.tipeeestream.com/widget/alert_box/554258a770b26?v=20150918183334#4709687c73be6bbb46b870b07b301d5d4dd2cae87
19:28:58: Using RTMP service: Twitch
19:28:58:   Server selection: rtmp://live-fra.twitch.tv/app
19:28:58:   Interface: Killer e2200 Gigabit Ethernet Controller (NDIS 6.30) (ethernet, 100 mbps)
19:28:59: Completed handshake with rtmp://live-fra.twitch.tv/app in 489 ms.
19:29:00: SO_SNDBUF was at 65536
19:29:01: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 0 / 327680)
19:29:09: RTMPPublisher::SocketLoop: Stalled for 1740 ms to write 325169 bytes (buffer: 0 / 327680), unstable connection?
19:29:11: RTMPPublisher::SocketLoop: Stalled for 1958 ms to write 325628 bytes (buffer: 0 / 327680), unstable connection?
19:29:12: RTMPPublisher::SocketLoop: Stalled for 1589 ms to write 325904 bytes (buffer: 0 / 327680), unstable connection?
19:29:14: RTMPPublisher::SocketLoop: Stalled for 1942 ms to write 324947 bytes (buffer: 0 / 327680), unstable connection?
[Some mor of this RTMP-Stuff :)]
19:30:46: Total frames encoded: 3266, total frames duplicated: 36 (1.10%)
19:30:46: Total frames rendered: 3291, number of late frames: 2 (0.06%) (it's okay for some frames to be late)
19:30:47: ~RTMPPublisher: Packet flush completed in 127 ms
19:30:47: ~RTMPPublisher: Send thread terminated in 0 ms
19:30:47:
19:30:47: Profiler time results:
19:30:47:
19:30:47: ==============================================================
19:30:47: video thread frame - [100%] [avg time: 3.546 ms] [children: 55.7%] [unaccounted: 44.3%]
19:30:47: | scene->Preprocess - [37.6%] [avg time: 1.334 ms]
19:30:47: | GPU download and conversion - [18.1%] [avg time: 0.641 ms] [children: 3.78%] [unaccounted: 14.3%]
19:30:47: | | flush - [3.38%] [avg time: 0.12 ms]
19:30:47: | | CopyResource - [0.282%] [avg time: 0.01 ms]
19:30:47: | | conversion to 4:2:0 - [0.113%] [avg time: 0.004 ms]
19:30:47: Convert444Threads - [100%] [avg time: 1.261 ms] [children: 99.2%] [unaccounted: 0.793%]
19:30:47: | Convert444toNV12 - [99.2%] [avg time: 1.251 ms]
19:30:47: encoder thread frame - [100%] [avg time: 1.83 ms] [children: 1.86%] [unaccounted: 98.1%]
19:30:47: | sending stuff out - [1.86%] [avg time: 0.034 ms]
19:30:47: ==============================================================
19:30:47:
19:30:47:
19:30:47: Profiler CPU results:
19:30:47:
19:30:47: ==============================================================
19:30:47: video thread frame - [cpu time: avg 2.164 ms, total 7125 ms] [avg calls per frame: 1]
19:30:47: | scene->Preprocess - [cpu time: avg 1.153 ms, total 3796.88 ms] [avg calls per frame: 1]
19:30:47: | GPU download and conversion - [cpu time: avg 0.071 ms, total 234.375 ms] [avg calls per frame: 1]
19:30:47: | | flush - [cpu time: avg 0.037 ms, total 125 ms] [avg calls per frame: 1]
19:30:47: | | CopyResource - [cpu time: avg 0.009 ms, total 31.25 ms] [avg calls per frame: 1]
19:30:47: | | conversion to 4:2:0 - [cpu time: avg 0.004 ms, total 15.625 ms] [avg calls per frame: 1]
19:30:47: Convert444Threads - [cpu time: avg 1.224 ms, total 8000 ms] [avg calls per frame: 2]
19:30:47: | Convert444toNV12 - [cpu time: avg 1.215 ms, total 7937.5 ms] [avg calls per frame: 2]
19:30:47: encoder thread frame - [cpu time: avg 1.597 ms, total 5218.75 ms] [avg calls per frame: 1]
19:30:47: | sending stuff out - [cpu time: avg 0.043 ms, total 140.625 ms] [avg calls per frame: 1]
19:30:47: ==============================================================
19:30:47:
19:30:47: =====Stream End: 2016-03-15, 19:30:47=================================================
19:30:48: RTMPPublisher::SocketLoop: Stalled for 2006 ms to write 172320 bytes (buffer: 0 / 327680), unstable connection?
19:30:48: RTMPPublisher::SocketLoop: Graceful loop exit
19:30:48: ~RTMPPublisher: Socket thread terminated in 1297 ms
19:30:55: ~RTMPPublisher: Final socket shutdown completed in 7372 ms
19:30:55: Average send payload: 259498 bytes, average send interval: 1354 ms
19:30:55: Number of times waited to send: 60, Waited for a total of 218182 bytes
19:30:55: Number of b-frames dropped: 684 (22%), Number of p-frames dropped: 973 (31%), Total 1657 (52%)
19:30:55: Number of bytes sent: 20500420

My upload is 1.400kb/s and games like diablo has no problems.

Any idea?

CPU: 4790k
Graphic: 970 GTX

Regards
 

H4ndy

Forum Moderator
You try to stream with twice your upload rate.
Reduce bitrate below 1500 and try again.
 

H4ndy

Forum Moderator
You have over 50% dropped frames due to unstable/saturated network, its not able to handle your stream.

19:30:55: Number of b-frames dropped: 684 (22%), Number of p-frames dropped: 973 (31%), Total 1657 (52%)
 

Andiy

New Member
Yes i see. But why i can streaming Diablo with 0 Framedrops on same settings? (with constantly 2200-2400 kbit/s
 

Andiy

New Member
Hello, me again :)

I have testet the tool "Twitch Bandwidth Test":

Gz112nr.jpg



Estimator show me follow settings:

xXk4kMB.jpg



So, it should be ok when i use 2400 bitrate i think?
 

Andiy

New Member
Here is an actual speedcheck:

5220687630.png


i have lowered the solution to 1280x720 and its a little bit better. My bitrate+puffer is 2200. I have about 5-10% framedrops now.

aQxYkUE.jpg


Any idea what can i change to get less framedrops?
 
Top