Question / Help Video freezes after a second of recording-live stream

Descaria823

New Member
Whenever I record a game(any game, tried it with a few), I can save locally just fine, video runs fine and dandy. However, when I try to stream to twitch, I press Start Streaming on OBS, and it loads like one second worth of video, then the video freezes, but sound continues. I believe every once in a great while it moves, so it might just be enormous lag? I'm not really sure.

Is there something I'm missing?
 

alpinlol

Active Member
usually when the sound continues and the video stutters while you dont drop frames its a twitch problem ... all you can do is change the ingest server and/or lower bitrate
 

Descaria823

New Member
Log:
Code:
12:57:46: Open Broadcaster Software v0.584b - 64bit ( ^ω^)
12:57:46: -------------------------------
12:57:46: CPU Name: AMD Phenom(tm) II X2 560 Processor
12:57:46: CPU Speed: 3576MHz
12:57:46: Physical Memory:  8109MB Total, 5313MB Free
12:57:46: stepping id: 3, model 4, family 16, type 0, extmodel 8, extfamily 0, HTT 1, logical cores 2, total cores 2
12:57:46: monitor 1: pos={0, 0}, size={1680, 1050}
12:57:46: Windows Version: 6.1 Build 7600 
12:57:46: Aero is Disabled
12:57:46: -------------------------------
12:57:46: OBS Modules:
12:57:46: Base Address     Module
12:57:46: 000000003F750000 OBS.exe
12:57:46: 00000000EB350000 OBSApi.dll
12:57:46: 00000000FA610000 DShowPlugin.dll
12:57:46: 00000000FA5E0000 GraphicsCapture.dll
12:57:46: 00000000FAB30000 NoiseGate.dll
12:57:46: 00000000FA710000 PSVPlugin.dll
12:57:46: ------------------------------------------
12:57:46: Adapter 1
12:57:46:   Video Adapter: NVIDIA GeForce GTX 550 Ti
12:57:46:   Video Adapter Dedicated Video Memory: 1024655360
12:57:46:   Video Adapter Shared System Memory: 3221106688
12:57:46:   Video Adapter Output 1: pos={0, 0}, size={1680, 1050}, attached=true
12:57:46: =====Stream Start: 2013-12-04, 12:57:46===============================================
12:57:46:   Multithreaded optimizations: On
12:57:46:   Base resolution: 1280x720
12:57:46:   Output resolution: 1280x720
12:57:46: ------------------------------------------
12:57:46: Loading up D3D10 on NVIDIA GeForce GTX 550 Ti...
12:57:46: ------------------------------------------
12:57:46: Audio Format: 48000hz
12:57:46: Playback device Default
12:57:46: ------------------------------------------
12:57:46: Using desktop audio input: Speakers (High Definition Audio Device)
12:57:46: ------------------------------------------
12:57:46: Using auxilary audio input: Microphone (High Definition Audio Device)
12:57:46: ------------------------------------------
12:57:46: Audio Encoding: AAC
12:57:46:     bitrate: 128
12:57:46: Using graphics capture
12:57:46: Scene buffering time set to 700
12:57:47: ------------------------------------------
12:57:47: Video Encoding: x264
12:57:47:     fps: 60
12:57:47:     width: 1280, height: 720
12:57:47:     preset: veryfast
12:57:47:     profile: high
12:57:47:     keyint: 120
12:57:47:     CBR: yes
12:57:47:     CFR: yes
12:57:47:     max bitrate: 2000
12:57:47:     buffer size: 2000
12:57:47: ------------------------------------------
12:57:47: MMDeviceAudioSource: Frequency for device 'Speakers (High Definition Audio Device)' is 352800, samples per sec is 44100
12:57:47: MMDeviceAudioSource: Frequency for device 'Microphone (High Definition Audio Device)' is 352800, samples per sec is 44100
12:57:48: SharedTexCapture hooked
12:57:48: Using RTMP service: Twitch / Justin.tv
12:57:48:   Server selection: rtmp://live-ord.justin.tv/app
12:57:48:   Interface: Realtek PCIe GBE Family Controller (ethernet, 100 mbps)
12:57:49: Completed handshake with rtmp://live-ord.justin.tv/app in 284 ms.
12:57:50: SO_SNDBUF was at 8192
12:57:50: SO_SNDBUF is now 65536
12:59:34: Total frames encoded: 4896, total frames duplicated: 4444 (90.77%)
12:59:34: Number of frames skipped due to encoder lag: 4358 (89.01%)
12:59:34: Total frames rendered: 532, number of late frames: 28 (5.26%) (it's okay for some frames to be late)
12:59:35: RTMPPublisher::SocketLoop: Graceful loop exit
12:59:35: Average send payload: 6760 bytes, average send interval: 33 ms
12:59:35: Number of times waited to send: 2, Waited for a total of 8194 bytes
12:59:35: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
12:59:35: Number of bytes sent: 20746467
12:59:35: 
12:59:35: Profiler time results:
12:59:35: 
12:59:35: ==============================================================
12:59:35: video thread frame - [100%] [avg time: 4.07 ms] [children: 81.9%] [unaccounted: 18.1%]
12:59:35: | scene->Preprocess - [0.0491%] [avg time: 0.002 ms]
12:59:35: | GPU download and conversion - [81.8%] [avg time: 3.33 ms] [children: 22.5%] [unaccounted: 59.3%]
12:59:35: | | flush - [2.53%] [avg time: 0.103 ms]
12:59:35: | | CopyResource - [19.7%] [avg time: 0.802 ms]
12:59:35: | | conversion to 4:2:0 - [0.27%] [avg time: 0.011 ms]
12:59:35: Convert444Thread - [100%] [avg time: 1.644 ms] [children: 98.5%] [unaccounted: 1.46%]
12:59:35: | Convert444toNV12 - [98.5%] [avg time: 1.62 ms]
12:59:35: encoder thread frame - [100%] [avg time: 21.035 ms]
12:59:35: ==============================================================
12:59:35: 
12:59:35: 
12:59:35: Profiler CPU results:
12:59:35: 
12:59:35: ==============================================================
12:59:35: video thread frame - [cpu time: avg 0.557 ms, total 296.401 ms] [avg calls per frame: 1]
12:59:35: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
12:59:35: | GPU download and conversion - [cpu time: avg 0.058 ms, total 31.2 ms] [avg calls per frame: 1]
12:59:35: | | flush - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
12:59:35: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
12:59:35: | | conversion to 4:2:0 - [cpu time: avg 0.032 ms, total 15.6 ms] [avg calls per frame: 1]
12:59:35: Convert444Thread - [cpu time: avg 1.385 ms, total 670.804 ms] [avg calls per frame: 1]
12:59:35: | Convert444toNV12 - [cpu time: avg 1.385 ms, total 670.804 ms] [avg calls per frame: 1]
12:59:35: encoder thread frame - [cpu time: avg 1.234 ms, total 5990.44 ms] [avg calls per frame: 1]
12:59:35: ==============================================================
12:59:35: 
12:59:35: =====Stream End: 2013-12-04, 12:59:35=================================================


Last game capture log:
2013-12-04, 12:57:46: we're booting up: 
12:57:47: D3D9 Present
12:57:47: D3D9EndScene called
12:57:47: D3DPRESENT_PARAMETERS {
12:57:47: 	BackBufferWidth: 1680
12:57:47: 	BackBufferHeight: 1050
12:57:47: 	BackBufferFormat: D3DFMT_A8R8G8B8
12:57:47: 	BackBufferCount: 1
12:57:47: 	MultiSampleType: D3DMULTISAMPLE_NONE
12:57:47: 	MultiSampleQuality: 0
12:57:47: 	SwapEffect: D3DSWAPEFFECT_DISCARD
12:57:47: 	hDeviceWindow: 1704456
12:57:47: 	Windowed: true
12:57:47: 	EnableAutoDepthStencil: true
12:57:47: 	AutoDepthStencilFormat: D3DFMT_D24S8
12:57:47: 	Flags: None
12:57:47: 	FullScreen_RefreshRateInHz: 0
12:57:47: 	PresentationInterval: 1
12:57:47: };
12:57:47: successfully set up d3d9 hooks
12:57:47: D3D9Present called
12:57:48: DoD3D9GPUHook: success
12:57:48: DXGI Present
12:57:48: (half life scientist) everything..  seems to be in order
12:57:48: D3DSURFACE_DESC {
12:57:48: 	Format: D3DFMT_A8R8G8B8
12:57:48: 	Type: D3DRTYPE_SURFACE
12:57:48: 	Usage: D3DUSAGE_RENDERTARGET 
12:57:48: 	Pool: D3DPOOL_DEFAULT
12:57:48: 	MultiSampleType: D3DMULTISAMPLE_NONE
12:57:48: 	MultiSampleQuality: 0
12:57:48: 	Width: 1680
12:57:48: 	Height: 1050
12:57:48: };
12:57:48: successfully capturing d3d9 frames via GPU
12:59:34: ---------------------- Cleared D3D9 Capture ----------------------
12:59:34: received restart event, capturing
12:59:35: DoD3D9GPUHook: success
12:59:35: D3D9EndScene called
12:59:35: D3D9Present called

*EDIT*
I believe I got it working, seems to be running fine.
 

dodgepong

Administrator
Community Helper
Your CPU isn't powerful enough to encode at 720p60 since it is dual-core. You're going to need to downscale your resolution and drop your FPS to 30 or maybe even 25. If things still aren't working, raise your x264 preset to superfast or ultrafast.
 

Jakub Ryl

New Member
Thanks, Dodgepong I dropped it from 60 FPS (I don't remember putting it on 60 lol) As I said, I dropped it from 60 to 30, Unfortunately It didn't work, but then I dropped it to 25 fps I went like ''If this doesn't work I'm uninstalling obs'', I set it to 25 fps and applied it, Ta dah It worked After Hours of research putting fps down by 35 worked LOL Thanks so much!
 
Top