Question / Help Trouble with choppy stream

Jeff Darby

Member
Hey, i'm having trouble with things appearing fine on my end, but coming up laggy on twitch, and I have no idea why. I have 2 pc's with which I stream
Gaming pc:
i7-920
dual radeon 6950's
16gb ram
Streaming Pc
i5 760
8600GT (shouldn't matter right? )
4Gb ram (upgrading soon)
AverMedia Live Gamer HD

Internet speeds are 3.7 up 24 down

Twitch.tv/panophobia_ is my stream URL

Log:
Code:
13:02:02: Open Broadcaster Software v0.624b - 32bit (´・ω・`)
13:02:02: -------------------------------
13:02:02: CPU Name: Intel(R) Core(TM) i5 CPU         760  @ 2.80GHz
13:02:02: CPU Speed: 3570MHz
13:02:02: Physical Memory:  4087MB Total, 1985MB Free
13:02:02: stepping id: 5, model 30, family 6, type 0, extmodel 0, extfamily 0, HTT 1, logical cores 4, total cores 4
13:02:02: monitor 1: pos={0, 0}, size={1280, 1024}
13:02:02: Windows Version: 6.1 Build 7601 S
13:02:02: Aero is Enabled
13:02:02: -------------------------------
13:02:02: OBS Modules:
13:02:02: Base Address     Module
13:02:02: 00100000         OBS.exe
13:02:02: 73970000         OBSApi.dll
13:02:02: 73C70000         DShowPlugin.dll
13:02:02: 73C40000         GraphicsCapture.dll
13:02:02: 73940000         NoiseGate.dll
13:02:02: 73D50000         PSVPlugin.dll
13:02:02: ------------------------------------------
13:02:02: Adapter 1
13:02:02:   Video Adapter: NVIDIA GeForce 8600 GT (Microsoft Corporation - WDDM v1.1)
13:02:02:   Video Adapter Dedicated Video Memory: 253689856
13:02:02:   Video Adapter Shared System Memory: 1874554880
13:02:02:   Video Adapter Output 1: pos={0, 0}, size={1280, 1024}, attached=true
13:02:02: Using automatic low latency mode
13:02:02: =====Stream Start: 2014-06-02, 13:02:02===============================================
13:02:02:   Multithreaded optimizations: Off
13:02:02:   Base resolution: 1280x720
13:02:02:   Output resolution: 1280x720
13:02:02: ------------------------------------------
13:02:02: Loading up D3D10 on NVIDIA GeForce 8600 GT (Microsoft Corporation - WDDM v1.1) (Adapter 1)...
13:02:02: D3D10CreateDeviceAndSwapChain1: Failed on NVIDIA GeForce 8600 GT (Microsoft Corporation - WDDM v1.1): 0x80004002. Trying compatibility mode
13:02:02: ------------------------------------------
13:02:02: Audio Format: 48000 Hz
13:02:02: ------------------------------------------
13:02:02: Audio Channels: 2 Ch
13:02:02: Playback device Default
13:02:02: ------------------------------------------
13:02:02: Using desktop audio input: Speakers (Realtek High Definition Audio)
13:02:02: Global Audio time adjust: 0
13:02:02: ------------------------------------------
13:02:02: Using auxilary audio input: Microphone (Realtek High Definition Audio)
13:02:02: Mic time offset: 0
13:02:02: ------------------------------------------
13:02:02: Audio Encoding: AAC
13:02:02:     bitrate: 128
13:02:02: ------------------------------------------
13:02:02:     device: Logitech HD Pro Webcam C920,
13:02:02:     device id \\?\usb#vid_046d&pid_082d&mi_00#6&9cd05ff&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
13:02:02:     chosen type: I420, usingFourCC: false, res: 640x480 - 640x480, frameIntervals: 333333-2000000
13:02:02:     use buffering: false - 0, fourCC: 'I420'
13:02:02:     audio device: Disable,
13:02:02:     audio device id Disabled,
13:02:02:     audio time offset 0,
13:02:02:
13:02:02: Using directshow input
13:02:02: ------------------------------------------
13:02:02:     device: AVerMedia HD Capture C985 Bus 5,
13:02:02:     device id \\?\pci#ven_1af2&dev_a001&subsys_a0011af2&rev_00#4&189e4dd4&0&00e4#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{957bd672-7934-4b55-b81a-3e22b14c679a},
13:02:02:     chosen type: YV12, usingFourCC: true, res: 1280x720 - 1280x720, frameIntervals: 166666-666666
13:02:02:     use buffering: false - 0, fourCC: 'YV12'
13:02:02:     audio device: Line In (Realtek High Definitio,
13:02:02:     audio device id (null),
13:02:02:     audio time offset 0,
13:02:02:
13:02:02:     device audio info - bits per sample: 16, channels: 2, samples per sec: 44100, block size: 4
13:02:02: Using directshow input
13:02:02: Scene buffering time set to 700
13:02:02: ------------------------------------------
13:02:02: Video Encoding: x264
13:02:02:     fps: 40
13:02:02:     width: 1280, height: 720
13:02:02:     preset: faster
13:02:02:     profile: main
13:02:02:     keyint: 80
13:02:02:     CBR: yes
13:02:02:     CFR: yes
13:02:02:     max bitrate: 2500
13:02:02:     buffer size: 2500
13:02:02: ------------------------------------------
13:02:05: Using RTMP service: Twitch / Justin.tv
13:02:05:   Server selection: rtmp://live-sin-backup.justin.tv/app
13:02:05:   Interface: Realtek PCIe GBE Family Controller (ethernet, 100 mbps)
13:02:05: Completed handshake with rtmp://live-sin-backup.justin.tv/app in 666 ms.
13:02:07: SO_SNDBUF was at 8192
13:02:07: SO_SNDBUF is now 65536
13:02:09: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 142027 / 335872)
13:02:43: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 262144 (buffer: 0 / 335872)
13:06:50: Total frames encoded: 11480, total frames duplicated: 2833 (24.68%)
13:06:50: Total frames rendered: 11470, number of late frames: 10 (0.09%) (it's okay for some frames to be late)
13:06:51: RTMPPublisher::SocketLoop: Graceful loop exit
13:06:51: Average send payload: 1435 bytes, average send interval: 4 ms
13:06:51: Number of times waited to send: 0, Waited for a total of 0 bytes
13:06:51: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
13:06:51: Number of bytes sent: 92889465
13:06:51: 
13:06:51: Profiler time results:
13:06:51: 
13:06:51: ==============================================================
13:06:51: video thread frame - [100%] [avg time: 13.753 ms] [children: 96.8%] [unaccounted: 3.19%]
13:06:51: | scene->Preprocess - [36%] [avg time: 4.949 ms]
13:06:51: | GPU download and conversion - [60.8%] [avg time: 8.365 ms] [children: 60.7%] [unaccounted: 0.0945%]
13:06:51: | | flush - [0.444%] [avg time: 0.061 ms]
13:06:51: | | CopyResource - [52.1%] [avg time: 7.163 ms]
13:06:51: | | conversion to 4:2:0 - [8.2%] [avg time: 1.128 ms] [children: 8.14%] [unaccounted: 0.0582%]
13:06:51: | | | Convert444toNV12 - [8.14%] [avg time: 1.12 ms]
13:06:51: encoder thread frame - [100%] [avg time: 1.706 ms] [children: 1.64%] [unaccounted: 98.4%]
13:06:51: | sending stuff out - [1.64%] [avg time: 0.028 ms]
13:06:51: ==============================================================
13:06:51: 
13:06:51: 
13:06:51: Profiler CPU results:
13:06:51: 
13:06:51: ==============================================================
13:06:51: video thread frame - [cpu time: avg 11.941 ms, total 136969 ms] [avg calls per frame: 1]
13:06:51: | scene->Preprocess - [cpu time: avg 4.367 ms, total 50091.9 ms] [avg calls per frame: 1]
13:06:51: | GPU download and conversion - [cpu time: avg 7.193 ms, total 82508.9 ms] [avg calls per frame: 1]
13:06:51: | | flush - [cpu time: avg 0.062 ms, total 717.607 ms] [avg calls per frame: 1]
13:06:51: | | CopyResource - [cpu time: avg 6.081 ms, total 69560.8 ms] [avg calls per frame: 1]
13:06:51: | | conversion to 4:2:0 - [cpu time: avg 1.044 ms, total 11949.7 ms] [avg calls per frame: 1]
13:06:51: | | | Convert444toNV12 - [cpu time: avg 1.04 ms, total 11902.9 ms] [avg calls per frame: 1]
13:06:51: encoder thread frame - [cpu time: avg 0.824 ms, total 9438.06 ms] [avg calls per frame: 1]
13:06:51: | sending stuff out - [cpu time: avg 0.01 ms, total 124.801 ms] [avg calls per frame: 1]
13:06:51: ==============================================================
13:06:51: 
13:06:51: =====Stream End: 2014-06-02, 13:06:51=================================================
Can anyone assist me in why things are appearing fine on my end, but lagging on stream. I am considering the possibility that I may need a VPN to fix the issue. I'm not dropping any frames when I stream, but I don't get the greatest ping or jitter with R1CH's JTVping to any server.
 
Last edited:

flavored

Member
you're duplicating a lot of frames - the encoder has to "fill up" the blanks which it does not receive to keep framerate up, this might be because the game itself you're playing is running at a lower framerate. Consider dropping fps back to 30. You probably want to have the preset back to veryfast too. I don't know what game are you trying to capture, but in most cases there is almost NO visible difference between veryfast and faster, but the latter does cost noticeably more processor time.

If you experience lag watching your stream, but local/twitch recordings play back fine - it is probably: a) twitch itself. That's how it is these days, quite often you just cannot get a stable stream off them b) unstable internet connection, in this case freezing should be obvious from watching the stream archives on twitch. Your logfile indicates nothing of that though.

P.S. I've watched the latest recording on your stream and the problem is definetely a client side, meaning yours. From what I've seen in the recording, you will have to: a) move preset back to veryfast b) reduce encoding framerate Good luck!
 
Last edited:

Jeff Darby

Member
Yeah, I noticed that, but I still duplicate frames when going back a preset, dropping bitrate, dropping frame rate, and all 3 combined. I;m really confused. The game is playing at 61fps capped, and being fed into my livegamer HD capturing at 60fps. I'm not really having any cpu issues, like high usage, dropped frames or anything like that, which has me perplexed as to why it's duplicating frames :(

Thanks for your reply :)
 

flavored

Member
Have you tried excluding your capture card from the equation and capturing with game/window capture? That might hurt performance, but you could check whether the freezes are still there.
 

Jeff Darby

Member
I am using a 2 pc setup at the moment, but I can try and put a low end game on my streaming rig and give it a go when I get home from work. I had it set up quite well a while a go I think, and then had to format due to a corrupted boot drive, and I feel I never got it quite right since.
 
Top