Question / Help Need help optimizing my stream

xSLiC3x

New Member
Hi guys, I'm trying to stream some DayZ I'm just curious how to best optimize my settings. I just want a decently clean video feed with as little distortion as possible.

System Specs:
Core I7 3770k
NVidia Geforce 680
16 GB Corsair Ram
OCZ Vertex 2 SSD


Download speed: 4.5 mb/s
Upload Speed: 330 kbps

I realize my upload speed is absolutely horrendous, but is there any set of settings I can use to stream decently?

Below is my latest log file.

Code:
06:09:10:     fps: 30
06:09:10:     width: 1280, height: 720
06:09:10:     preset: veryfast
06:09:10:     profile: main
06:09:10:     keyint: 60
06:09:10:     CBR: yes
06:09:10:     CFR: yes
06:09:10:     max bitrate: 250
06:09:10:     buffer size: 172
06:09:10: ------------------------------------------
06:09:10: MMDeviceAudioSource: Frequency for device 'Speakers (Realtek High Definition Audio)' is 1536000, samples per sec is 192000
06:09:10: MMDeviceAudioSource: Frequency for device 'Desktop Mic (5- Samson Q1U               )' is 192000, samples per sec is 48000
06:09:12: Using RTMP service: Twitch / Justin.tv
06:09:12:   Server selection: rtmp://live-ord.justin.tv/app
06:09:12:   Interface: Intel(R) 82579V Gigabit Network Connection (ethernet, 100 mbps)
06:09:12: Completed handshake with rtmp://live-ord.justin.tv/app in 463 ms.
06:09:13: SO_SNDBUF was at 8192
06:09:13: SO_SNDBUF is now 65536
06:09:19: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
06:09:19:   New Scene
06:09:19: Using bitmap image
06:09:19: Using bitmap image
06:09:19: ------------------------------------------
06:09:19:     device: Video Camera           ,
06:09:19:     device id \\?\usb#vid_045e&pid_0294&mi_00#7&24b847bd&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
06:09:19:     chosen type: YUY2, usingFourCC: false, res: 320x240 - 320x240, frameIntervals: 166666-2000000
06:09:19:     use buffering: false - 0, fourCC: 'YUY2'
06:09:19:     audio device: Disable,
06:09:19:     audio device id Disabled,
06:09:19: 
06:09:19: Using directshow input
06:09:19: Using graphics capture
06:09:19: SharedTexCapture hooked
06:09:39: RTMPPublisher::SocketLoop: Stalled for 2650 ms to write 3449 bytes (buffer: 105846 / 131072), unstable connection?
06:10:14: RTMPPublisher::SocketLoop: Stalled for 1721 ms to write 3449 bytes (buffer: 126708 / 131072), unstable connection?
06:10:47: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
06:10:47:   New Scene
06:10:47: Using text output
06:10:47: Using bitmap image
06:10:56: Total frames encoded: 3170, total frames duplicated: 16 (0.50%)
06:10:56: Total frames rendered: 3161, number of late frames: 3 (0.09%) (it's okay for some frames to be late)
06:11:05: RTMPPublisher::SocketLoop: Received FD_CLOSE, 6659 ms since last send (buffer: 732 / 131072)
06:11:05: RTMPPublisher::SocketLoop: Aborting due to FD_CLOSE during shutdown, 732 bytes lost, error 0
06:11:05: Average send payload: 2532 bytes, average send interval: 67 ms
06:11:05: Number of times waited to send: 118, Waited for a total of 162307 bytes
06:11:05: Number of b-frames dropped: 76 (2.5%), Number of p-frames dropped: 101 (3.3%), Total 177 (5.8%)
06:11:05: Number of bytes sent: 3907685
06:11:05: 
06:11:05: Profiler time results:
06:11:05: 
06:11:05: ==============================================================
06:11:05: video thread frame - [100%] [avg time: 0.754 ms] [children: 12.3%] [unaccounted: 87.7%]
06:11:05: | scene->Preprocess - [3.85%] [avg time: 0.029 ms]
06:11:05: | GPU download and conversion - [8.49%] [avg time: 0.064 ms] [children: 5.84%] [unaccounted: 2.65%]
06:11:05: | | flush - [4.51%] [avg time: 0.034 ms]
06:11:05: | | CopyResource - [1.19%] [avg time: 0.009 ms]
06:11:05: | | conversion to 4:2:0 - [0.133%] [avg time: 0.001 ms]
06:11:05: Convert444Threads - [100%] [avg time: 0.443 ms] [children: 99.5%] [unaccounted: 0.451%]
06:11:05: | Convert444toNV12 - [99.5%] [avg time: 0.441 ms]
06:11:05: encoder thread frame - [100%] [avg time: 0.691 ms]
06:11:05: ==============================================================
06:11:05: 
06:11:05: 
06:11:05: Profiler CPU results:
06:11:05: 
06:11:05: ==============================================================
06:11:05: video thread frame - [cpu time: avg 0.054 ms, total 171.601 ms] [avg calls per frame: 1]
06:11:05: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
06:11:05: | GPU download and conversion - [cpu time: avg 0.004 ms, total 15.6 ms] [avg calls per frame: 1]
06:11:05: | | flush - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
06:11:05: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
06:11:05: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
06:11:05: Convert444Threads - [cpu time: avg 0.443 ms, total 2792.42 ms] [avg calls per frame: 2]
06:11:05: | Convert444toNV12 - [cpu time: avg 0.438 ms, total 2761.22 ms] [avg calls per frame: 2]
06:11:05: encoder thread frame - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
06:11:05: ==============================================================
06:11:05: 
06:11:05: =====Stream End: 2013-12-20, 06:11:05=================================================
06:11:18: Settings::Video: Enabling Aero
06:11:48: Using fixed low latency mode, factor 40
06:11:48: =====Stream Start: 2013-12-20, 06:11:48===============================================
06:11:48:   Multithreaded optimizations: On
06:11:48:   Base resolution: 1920x1080
06:11:48:   Output resolution: 1280x720
06:11:48: ------------------------------------------
06:11:48: Loading up D3D10 on NVIDIA GeForce GTX 680 (Adapter 1)...
06:11:48: ------------------------------------------
06:11:48: Audio Format: 44100hz
06:11:48: Playback device Default
06:11:48: ------------------------------------------
06:11:48: Using desktop audio input: Speakers (Realtek High Definition Audio)
06:11:48: ------------------------------------------
06:11:48: Using auxilary audio input: Desktop Mic (5- Samson Q1U               )
06:11:48: ------------------------------------------
06:11:48: Audio Encoding: MP3
06:11:48:     bitrate: 64
06:11:48: Using text output
06:11:48: Using bitmap image
06:11:48: Scene buffering time set to 400
06:11:48: ------------------------------------------
06:11:48: Video Encoding: x264
06:11:48:     fps: 30
06:11:48:     width: 1280, height: 720
06:11:48:     preset: veryfast
06:11:48:     profile: main
06:11:48:     keyint: 60
06:11:48:     CBR: yes
06:11:48:     CFR: yes
06:11:48:     max bitrate: 270
06:11:48:     buffer size: 172
06:11:48: ------------------------------------------
06:11:48: MMDeviceAudioSource: Frequency for device 'Speakers (Realtek High Definition Audio)' is 1536000, samples per sec is 192000
06:11:48: MMDeviceAudioSource: Frequency for device 'Desktop Mic (5- Samson Q1U               )' is 192000, samples per sec is 48000
06:11:50: Using RTMP service: Twitch / Justin.tv
06:11:50:   Server selection: rtmp://live-ord.justin.tv/app
06:11:50:   Interface: Intel(R) 82579V Gigabit Network Connection (ethernet, 100 mbps)
06:11:50: Completed handshake with rtmp://live-ord.justin.tv/app in 462 ms.
06:11:51: SO_SNDBUF was at 8192
06:11:51: SO_SNDBUF is now 65536
06:11:59: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
06:11:59:   New Scene
06:11:59: Using bitmap image
06:11:59: Using bitmap image
06:11:59: ------------------------------------------
06:11:59:     device: Video Camera           ,
06:11:59:     device id \\?\usb#vid_045e&pid_0294&mi_00#7&24b847bd&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
06:11:59:     chosen type: YUY2, usingFourCC: false, res: 320x240 - 320x240, frameIntervals: 166666-2000000
06:11:59:     use buffering: false - 0, fourCC: 'YUY2'
06:11:59:     audio device: Disable,
06:11:59:     audio device id Disabled,
06:11:59: 
06:12:00: Using directshow input
06:12:00: Using graphics capture
06:12:00: SharedTexCapture hooked
06:13:15: RTMPPublisher::SocketLoop: Stalled for 1869 ms to write 3449 bytes (buffer: 127412 / 131072), unstable connection?
06:13:36: RTMPPublisher::SocketLoop: Stalled for 1621 ms to write 3449 bytes (buffer: 127541 / 131072), unstable connection?
06:14:56: RTMPPublisher::SocketLoop: Stalled for 1738 ms to write 3449 bytes (buffer: 127343 / 131072), unstable connection?
06:15:57: RTMPPublisher::SocketLoop: Stalled for 1526 ms to write 3449 bytes (buffer: 127556 / 131072), unstable connection?
06:16:16: RTMPPublisher::SocketLoop: Stalled for 1529 ms to write 3449 bytes (buffer: 127503 / 131072), unstable connection?
06:16:37: RTMPPublisher::SocketLoop: Stalled for 1578 ms to write 3449 bytes (buffer: 127225 / 131072), unstable connection?
06:17:15: RTMPPublisher::SocketLoop: Stalled for 1534 ms to write 3449 bytes (buffer: 126499 / 131072), unstable connection?
06:17:52: RTMPPublisher::SocketLoop: Stalled for 1542 ms to write 3449 bytes (buffer: 127206 / 131072), unstable connection?
06:18:11: RTMPPublisher::SocketLoop: Stalled for 1575 ms to write 3449 bytes (buffer: 126970 / 131072), unstable connection?
06:18:32: RTMPPublisher::SocketLoop: Stalled for 1668 ms to write 3449 bytes (buffer: 126791 / 131072), unstable connection?
06:18:42: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
06:18:42:   New Scene
06:18:42: Using text output
06:18:42: Using bitmap image
06:19:01: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
06:19:01:   New Scene
06:19:01: Using bitmap image
06:19:01: Using bitmap image
06:19:01: ------------------------------------------
06:19:01:     device: Video Camera           ,
06:19:01:     device id \\?\usb#vid_045e&pid_0294&mi_00#7&24b847bd&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
06:19:01:     chosen type: YUY2, usingFourCC: false, res: 320x240 - 320x240, frameIntervals: 166666-2000000
06:19:01:     use buffering: false - 0, fourCC: 'YUY2'
06:19:01:     audio device: Disable,
06:19:01:     audio device id Disabled,
06:19:01: 
06:19:02: Using directshow input
06:19:02: Using graphics capture
06:19:02: SharedTexCapture hooked
06:19:16: Capture window 0x00BC079C invalid or changing, terminating capture
06:19:22: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
06:19:22:   New Scene
06:19:22: Using text output
06:19:22: Using bitmap image
06:19:37: Total frames encoded: 14058, total frames duplicated: 35 (0.25%)
06:19:37: Total frames rendered: 14034, number of late frames: 5 (0.04%) (it's okay for some frames to be late)
06:19:38: RTMPPublisher::SocketLoop: Graceful loop exit
06:19:39: Average send payload: 3285 bytes, average send interval: 92 ms
06:19:39: Number of times waited to send: 1914, Waited for a total of 2379421 bytes
06:19:39: Number of b-frames dropped: 1351 (9.7%), Number of p-frames dropped: 1686 (12%), Total 3037 (22%)
06:19:39: Number of bytes sent: 16606531
06:19:39: 
06:19:39: Profiler time results:
06:19:39: 
06:19:39: ==============================================================
06:19:39: video thread frame - [100%] [avg time: 0.674 ms] [children: 14.5%] [unaccounted: 85.5%]
06:19:39: | scene->Preprocess - [4.9%] [avg time: 0.033 ms]
06:19:39: | GPU download and conversion - [9.64%] [avg time: 0.065 ms] [children: 6.97%] [unaccounted: 2.67%]
06:19:39: | | flush - [5.49%] [avg time: 0.037 ms]
06:19:39: | | CopyResource - [1.34%] [avg time: 0.009 ms]
06:19:39: | | conversion to 4:2:0 - [0.148%] [avg time: 0.001 ms]
06:19:39: Convert444Threads - [100%] [avg time: 0.446 ms] [children: 99.3%] [unaccounted: 0.673%]
06:19:39: | Convert444toNV12 - [99.3%] [avg time: 0.443 ms]
06:19:39: encoder thread frame - [100%] [avg time: 0.708 ms]
06:19:39: ==============================================================
06:19:39: 
06:19:39: 
06:19:39: Profiler CPU results:
06:19:39: 
06:19:39: ==============================================================
06:19:39: video thread frame - [cpu time: avg 0.014 ms, total 202.801 ms] [avg calls per frame: 1]
06:19:39: | scene->Preprocess - [cpu time: avg 0.001 ms, total 15.6 ms] [avg calls per frame: 1]
06:19:39: | GPU download and conversion - [cpu time: avg 0.003 ms, total 46.801 ms] [avg calls per frame: 1]
06:19:39: | | flush - [cpu time: avg 0.003 ms, total 46.801 ms] [avg calls per frame: 1]
06:19:39: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
06:19:39: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
06:19:39: Convert444Threads - [cpu time: avg 0.43 ms, total 12058.9 ms] [avg calls per frame: 2]
06:19:39: | Convert444toNV12 - [cpu time: avg 0.428 ms, total 12012.1 ms] [avg calls per frame: 2]
06:19:39: encoder thread frame - [cpu time: avg 0.003 ms, total 46.8 ms] [avg calls per frame: 1]
06:19:39: ==============================================================
06:19:39: 
06:19:39: =====Stream End: 2013-12-20, 06:19:39=================================================
06:30:47: Memory Leaks Were Detected.
06:30:47:
 
Top