Question / Help Facecam is fine, but game capture lags?

Super Professor

New Member
Hey guys, I'm sure there are a lot of questions here about optimizing settings and whatnot. I seem to have found a decent set-up on my own, but recently have gotten feedback from my viewers that my game video lags, but my facecam is fine.

I have an AMD a10-6800k APU (4.1ghz, o/c to 4.4)
8gb DDR3 RAM 1866
ASUS A88x+ mobo
no dedicated gpu (AMD Radeon HD 8670D from the APU)

I have a 60mb down 5mb up internet connection hardwired through a netgear N750 gigabit router with priority set to highest for the ports going to my computer and to my xbox.

My OBS settings are as follows:
CBR enabled + CBR padding enabled
max bitrate + buffer size 2200
base resolution 1600x900, downscale set to 1.25 (1280x720)
I have been able to run at 50 fps, but only recently decreased that to 25.
x264 preset set to veryfast
CFR enabled

Can anyone offer any explanation on why my facecam doesn't lag, but my game capture does at times? I use an Elgato gamecapture HD device with my xbox 360. And of course any suggestions on optimizing my settings are welcome. Thank you.
 

Super Professor

New Member
Hey dodge, thanks for the response.

By lags I mean dropped/skipped frames (according to the viewers, my OBS interface doesn't show any skipped frames in the bottom right corner)

My most recent log file reveals this:

Code:
22:18:41: Open Broadcaster Software v0.625b - 32bit (´・ω・`)
22:18:41: -------------------------------
22:18:41: CPU Name: AMD A10-6800K APU with Radeon(tm) HD Graphics
22:18:41: CPU Speed: 4422MHz
22:18:41: Physical Memory:  4095MB Total, 4095MB Free
22:18:41: stepping id: 1, model 19, family 21, type 0, extmodel 0, extfamily 3, HTT 1, logical cores 4, total cores 2
22:18:41: monitor 1: pos={0, 0}, size={1440, 900}
22:18:41: Windows Version: 6.2 Build 9200
22:18:41: Aero is Enabled
22:18:41: -------------------------------
22:18:41: OBS Modules:
22:18:41: Base Address  Module
22:18:41: 00A60000  OBS.exe
22:18:41: 6A050000  OBSApi.dll
22:18:41: 6C540000  DShowPlugin.dll
22:18:41: 6C510000  GraphicsCapture.dll
22:18:41: 6C240000  NoiseGate.dll
22:18:41: 6C940000  PSVPlugin.dll
22:18:41: ------------------------------------------
22:18:41: Adapter 1
22:18:41:  Video Adapter: AMD Radeon HD 8670D
22:18:41:  Video Adapter Dedicated Video Memory: 785944576
22:18:41:  Video Adapter Shared System Memory: 3508957184
22:18:41:  Video Adapter Output 1: pos={0, 0}, size={1440, 900}, attached=true
22:18:41: =====Stream Start: 2014-06-28, 22:18:41===============================================
22:18:41:  Multithreaded optimizations: On
22:18:41:  Base resolution: 1600x900
22:18:41:  Output resolution: 1280x720
22:18:41: ------------------------------------------
22:18:41: Loading up D3D10 on AMD Radeon HD 8670D (Adapter 1)...
22:18:41: ------------------------------------------
22:18:41: Audio Format: 48000 Hz
22:18:41: ------------------------------------------
22:18:41: Audio Channels: 2 Ch
22:18:41: Playback device Default
22:18:41: ------------------------------------------
22:18:41: Using desktop audio input: Speakers (2- High Definition Audio Device)
22:18:41: Global Audio time adjust: 0
22:18:41: ------------------------------------------
22:18:41: Using auxilary audio input: Headset Microphone (2- ASTRO MixAmp Pro  )
22:18:41: Mic time offset: 1000
22:18:41: ------------------------------------------
22:18:41: Audio Encoding: AAC
22:18:41:  bitrate: 128
22:18:41: Using text output
22:18:41: ------------------------------------------
22:18:41:  device: Logitech HD Webcam C310,
22:18:41:  device id \\?\usb#vid_046d&pid_081b&mi_00#6&29bc6997&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
22:18:41:  chosen type: I420, usingFourCC: false, res: 1280x720 - 1280x720, frameIntervals: 333333-2000000
22:18:41:  use buffering: true - 10000000, fourCC: 'I420'
22:18:41:  audio device: Disable,
22:18:41:  audio device id Disabled,
22:18:41:  audio time offset 0,
22:18:41:
22:18:41: Using directshow input
22:18:41: ------------------------------------------
22:18:41:  device: Elgato Game Capture HD,
22:18:41:  device id {39F50F4C-99E1-464a-B6F9-D605B4FB5918},
22:18:41:  chosen type: UYVY, usingFourCC: false, res: 1280x720 - 1280x720, frameIntervals: 333333-333333
22:18:41:  use buffering: false - 0, fourCC: 'UYVY'
22:18:41:
22:18:41:  device audio info - bits per sample: 16, channels: 2, samples per sec: 48000, block size: 4
22:18:41: Using directshow input
22:18:42: Scene buffering time set to 700
22:18:42: ------------------------------------------
22:18:42: Video Encoding: x264
22:18:42:  fps: 50
22:18:42:  width: 1280, height: 720
22:18:42:  preset: ultrafast
22:18:42:  profile: main
22:18:42:  keyint: 100
22:18:42:  CBR: yes
22:18:42:  CFR: yes
22:18:42:  max bitrate: 2200
22:18:42:  buffer size: 2200
22:18:42: ------------------------------------------
22:18:44: Using RTMP service: Twitch / Justin.tv
22:18:44:  Server selection: rtmp://live.justin.tv/app
22:18:44:  Interface: Realtek PCIe GBE Family Controller (ethernet, 1000 mbps)
22:18:44: Completed handshake with rtmp://live.justin.tv/app in 155 ms.
22:18:44: SO_SNDBUF was at 65536
22:18:47: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 7342 / 297984)
22:18:50: RTMPPublisher::SocketLoop: Stalled for 1754 ms to write 294804 bytes (buffer: 0 / 297984), unstable connection?
22:18:50: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 262144 (buffer: 118575 / 297984)
22:18:50: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 524288 (buffer: 123578 / 297984)
22:23:33: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 60
22:23:33: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 110
22:23:33: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 120
22:23:33: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 130
22:23:33: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 140
22:23:54: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 60
22:23:55: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 160
22:24:59: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 160
22:25:03: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 170
22:25:08: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 180
22:25:09: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 200
22:26:13: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 310
22:26:20: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 310
22:26:28: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 320
22:26:41: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 330
22:26:46: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 340
22:26:54: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 360
22:27:08: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 360
22:27:17: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 370
22:27:18: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 390
22:27:26: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 150
22:27:26: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 420
22:27:26: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 430
22:27:26: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 440
22:27:26: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 450
22:27:26: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 460
22:28:29: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 460
22:30:50: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 470
22:30:54: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 480
22:31:13: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 490
22:31:47: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 500
22:31:54: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 520
22:32:54: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 410
22:32:54: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 550
22:33:56: Audio timestamp for device 'Headset Microphone (2- ASTRO MixAmp Pro  )' was behind target timestamp by 100
22:39:45: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 550
22:41:04: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 560
22:46:12: Audio timestamp for device 'Elgato Game Capture HD' was behind target timestamp by 570

This continues on for several hundred lines, and then finishes with

Code:
00:58:37: video thread frame - [cpu time: avg 2.592 ms, total 1.24223e+006 ms] [avg calls per frame: 1]
00:58:37: | scene->Preprocess - [cpu time: avg 1.652 ms, total 791844 ms] [avg calls per frame: 1]
00:58:37: | GPU download and conversion - [cpu time: avg 0.235 ms, total 112922 ms] [avg calls per frame: 1]
00:58:37: | | flush - [cpu time: avg 0.137 ms, total 65953.1 ms] [avg calls per frame: 1]
00:58:37: | | CopyResource - [cpu time: avg 0.039 ms, total 18953.1 ms] [avg calls per frame: 1]
00:58:37: | | conversion to 4:2:0 - [cpu time: avg 0.008 ms, total 3859.38 ms] [avg calls per frame: 1]
00:58:37: Convert444Thread - [cpu time: avg 3.056 ms, total 1.46438e+006 ms] [avg calls per frame: 1]
00:58:37: | Convert444toNV12 - [cpu time: avg 3.041 ms, total 1.45752e+006 ms] [avg calls per frame: 1]
00:58:37: encoder thread frame - [cpu time: avg 3.617 ms, total 1.7345e+006 ms] [avg calls per frame: 1]
00:58:37: | sending stuff out - [cpu time: avg 0.052 ms, total 25312.5 ms] [avg calls per frame: 1]
00:58:37: ==============================================================
00:58:37:
00:58:37: =====Stream End: 2014-06-29, 00:58:37=================================================
00:58:38: Memory Leaks Were Detected.
00:58:38:

Not quite sure what any of this means, obviously, but I appreciate any help you can give.
 

dodgepong

Administrator
Community Helper
Your resolution is a bit too high for you CPU. You should probably downscale to 450p.

Also, open your Elgato and check the "Use Buffering" box (and leave it at 0).

See if that helps at all.
 

Super Professor

New Member
So with the new settings you suggested, according to my viewers, the stream still skips frames and freezes occasionally when they watch on a mobile device (phone or tablet), but when using a pc or from their own xbox it is fine.
Is there any way to stream without having the viewers freeze on mobile devices without sacrificing quality/resolution? Or is this strictly on their end.
 

R1CH

Forum Admin
Developer
Mobile is all on their end as it's transcoded by Twitch (assuming you have enough viewers).
 
Top