Question / Help Question

CRUXRainmaker

New Member
Hello, I am sorry I am asking, since I already found some threads discussing about that, but I just wanted to have my question double checked since I am not quite sure if I understood everything correctly. I just wanted to ask about a scenario of buying a AverMedia capture card. When I am streaming OBS says that my CPU is using too much power encoding and my game is laggy. I have tried to lower the preset and fps, but it didnt really help. Then I remembered there is an option to buy a capture card. But when I did a bit of research I found that capture cards didnt really help you with this problem at all if I understood it correctly. I thought that capture cards are supposed to help you with streaming because the majority of the power needed to encode a stream is done by them and therefore they are saving a lot of CPU power for the game. So is buying a capture card a valid option for me or not? Thank you.
 

FerretBomb

Active Member
OBS cannot use the encoders on Avermedia capture cards. It will not help you. Do not waste your money.

Better idea, post a logfile from a test stream from the Help menu, and we can take a look and see what needs to be done to fix the settings. :)
 

CRUXRainmaker

New Member
This a log from my last stream. By the way. could you please help me with like all the possible solutions that I can make in order to avoid my laptop streaming? Like can I play on one PC and stream with the second one? Or can I use a capture with some other software? Or is OBS compatible with some other capture cards?Thank you. :)

00:53:07: CUDA loaded successfully
00:53:07: 1 CUDA capable devices found
00:53:07: [ GPU #0 - < GeForce GTX 870M > has Compute SM 3.0, NVENC Available ]
01:07:01: Open Broadcaster Software v0.657b - 32bit (´・ω・`)
01:07:01: -------------------------------
01:07:01: CPU Name: Intel(R) Core(TM) i7-4700HQ CPU @ 2.40GHz
01:07:01: CPU Speed: 2394MHz
01:07:01: Physical Memory: 4095MB Total, 3988MB Free
01:07:01: stepping id: 3, model 60, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
01:07:01: monitor 1: pos={0, 0}, size={1920, 1080}
01:07:01: monitor 2: pos={1920, 0}, size={1920, 1080}
01:07:01: Windows Version: 6.3 Build 9600 (revision 17415)
01:07:01: Aero is Enabled
01:07:01: -------------------------------
01:07:01: OBS Modules:
01:07:01: Base Address Module
01:07:01: 00F90000 OBS.exe
01:07:01: 6C6F0000 OBSApi.dll
01:07:01: 6BD10000 DShowPlugin.dll
01:07:01: 6CB90000 GraphicsCapture.dll
01:07:01: 6BCE0000 NoiseGate.dll
01:07:01: 6BCC0000 PSVPlugin.dll
01:07:01: 6BCA0000 scenesw.dll
01:07:01: ------------------------------------------
01:07:01: Adapter 1
01:07:01: Video Adapter: NVIDIA GeForce GTX 870M
01:07:01: Video Adapter Dedicated Video Memory: 3139477504
01:07:01: Video Adapter Shared System Memory: 1155424256
01:07:01: Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
01:07:01: Video Adapter Output 2: pos={1920, 0}, size={1920, 1080}, attached=true
01:07:01: ------------------------------------------
01:07:01: Adapter 2
01:07:01: Video Adapter: Intel(R) HD Graphics 4600
01:07:01: Video Adapter Dedicated Video Memory: 33554432
01:07:01: Video Adapter Shared System Memory: 1845493760
01:07:01: =====Stream Start: 2015-12-22, 01:07:01===============================================
01:07:01: Multithreaded optimizations: On
01:07:01: Base resolution: 1920x1080
01:07:01: Output resolution: 1096x616
01:07:01: ------------------------------------------
01:07:01: Loading up D3D10 on NVIDIA GeForce GTX 870M (Adapter 1)...
01:07:01: ------------------------------------------
01:07:01: Audio Format: 48000 Hz
01:07:01: ------------------------------------------
01:07:01: Audio Channels: 2 Ch
01:07:01: Playback device Default
01:07:01: ------------------------------------------
01:07:01: Using desktop audio input: Reproduktory (SB Play!)
01:07:01: Global Audio time adjust: 0
01:07:01: ------------------------------------------
01:07:01: Using auxilary audio input: Mikrofon (SB Play!)
01:07:01: Mic time offset: 0
01:07:01: ------------------------------------------
01:07:01: Audio Encoding: AAC
01:07:01: bitrate: 128
01:07:02: ------------------------------------------
01:07:02: device: USB2.0 HD UVC WebCam,
01:07:02: device id \\?\usb#vid_04f2&pid_b414&mi_00#6&a451efb&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
01:07:02: chosen type: MJPG, usingFourCC: false, res: 1280x720 - 1280x720, frameIntervals: 333333-666666
01:07:02: use buffering: false - 0, fourCC: 'MJPG'
01:07:02: audio device: Zakázat,
01:07:02: audio device id Disabled,
01:07:02: audio time offset 0,
01:07:02:
01:07:02: Using directshow input
01:07:02: Using Window Capture
01:07:02: Scene buffering time set to 700
01:07:02: ------------------------------------------
01:07:02: Video Encoding: x264
01:07:02: fps: 27
01:07:02: width: 1096, height: 616
01:07:02: preset: superfast
01:07:02: profile: high
01:07:02: keyint: 54
01:07:02: CBR: yes
01:07:02: CFR: yes
01:07:02: max bitrate: 2000
01:07:02: buffer size: 2000
01:07:02: ------------------------------------------
01:07:04: Using RTMP service: hitbox.tv
01:07:04: Server selection: rtmp://live.fra.hitbox.tv/push
01:07:04: Interface: Qualcomm Atheros AR8171/8175 PCI-E Gigabit Ethernet Controller (NDIS 6.30) (ethernet, 100 mbps)
01:07:04: Completed handshake with rtmp://live.fra.hitbox.tv/push in 47 ms.
01:07:05: SO_SNDBUF was at 65536
01:07:06: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 13625 / 272384)
01:07:06: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 262144 (buffer: 0 / 272384)
01:19:14: FlushBufferedVideo: Flushing 1 packets over 0 ms
01:19:14: Total frames encoded: 19743, total frames duplicated: 386 (1.96%)
01:19:14: Total frames rendered: 19760, number of late frames: 5 (0.03%) (it's okay for some frames to be late)
01:19:14:
01:19:14: Profiler time results:
01:19:14:
01:19:14: ==============================================================
01:19:14: video thread frame - [100%] [avg time: 11.437 ms] [children: 88.1%] [unaccounted: 11.9%]
01:19:14: | scene->Preprocess - [86.8%] [avg time: 9.93 ms]
01:19:14: | GPU download and conversion - [1.32%] [avg time: 0.151 ms] [children: 1.19%] [unaccounted: 0.131%]
01:19:14: | | flush - [0.831%] [avg time: 0.095 ms]
01:19:14: | | CopyResource - [0.306%] [avg time: 0.035 ms]
01:19:14: | | conversion to 4:2:0 - [0.0525%] [avg time: 0.006 ms]
01:19:14: Convert444Threads - [100%] [avg time: 0.838 ms] [children: 98.8%] [unaccounted: 1.19%]
01:19:14: | Convert444toNV12 - [98.8%] [avg time: 0.828 ms]
01:19:14: encoder thread frame - [100%] [avg time: 1.524 ms] [children: 3.61%] [unaccounted: 96.4%]
01:19:14: | sending stuff out - [3.61%] [avg time: 0.055 ms]
01:19:14: ==============================================================
01:19:14:
01:19:14:
 
Last edited:

CRUXRainmaker

New Member
01:19:14: Profiler CPU results:
01:19:14:
01:19:14: ==============================================================
01:19:14: video thread frame - [cpu time: avg 5.532 ms, total 109328 ms] [avg calls per frame: 1]
01:19:14: | scene->Preprocess - [cpu time: avg 4.207 ms, total 83140.6 ms] [avg calls per frame: 1]
01:19:14: | GPU download and conversion - [cpu time: avg 0.133 ms, total 2640.63 ms] [avg calls per frame: 1]
01:19:14: | | flush - [cpu time: avg 0.079 ms, total 1578.13 ms] [avg calls per frame: 1]
01:19:14: | | CopyResource - [cpu time: avg 0.035 ms, total 703.125 ms] [avg calls per frame: 1]
01:19:14: | | conversion to 4:2:0 - [cpu time: avg 0.003 ms, total 78.125 ms] [avg calls per frame: 1]
01:19:14: Convert444Threads - [cpu time: avg 0.783 ms, total 30921.9 ms] [avg calls per frame: 2]
01:19:14: | Convert444toNV12 - [cpu time: avg 0.779 ms, total 30765.6 ms] [avg calls per frame: 2]
01:19:14: encoder thread frame - [cpu time: avg 0.856 ms, total 16906.3 ms] [avg calls per frame: 1]
01:19:14: | sending stuff out - [cpu time: avg 0.047 ms, total 937.5 ms] [avg calls per frame: 1]
01:19:14: ==============================================================
01:19:14:
01:19:14: =====Stream End: 2015-12-22, 01:19:14=================================================
01:19:14: ~RTMPPublisher: Packet flush completed in 118 ms
01:19:14: ~RTMPPublisher: Send thread terminated in 0 ms
01:19:14: RTMPPublisher::SocketLoop: Graceful loop exit
01:19:14: ~RTMPPublisher: Socket thread terminated in 0 ms
01:19:14: ~RTMPPublisher: Final socket shutdown completed in 16 ms
01:19:14: Average send payload: 7387 bytes, average send interval: 29 ms
01:19:14: Number of times waited to send: 0, Waited for a total of 0 bytes
01:19:14: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
01:19:14: Number of bytes sent: 184474288
01:19:27: =====Stream Start: 2015-12-22, 01:19:27===============================================
01:19:27: Multithreaded optimizations: On
01:19:27: Base resolution: 1920x1080
01:19:27: Output resolution: 1096x616
01:19:27: ------------------------------------------
01:19:27: Loading up D3D10 on NVIDIA GeForce GTX 870M (Adapter 1)...
01:19:27: ------------------------------------------
01:19:27: Audio Format: 48000 Hz
01:19:27: ------------------------------------------
01:19:27: Audio Channels: 2 Ch
01:19:27: Playback device Default
01:19:27: ------------------------------------------
01:19:27: Using desktop audio input: Reproduktory (SB Play!)
01:19:27: Global Audio time adjust: 0
01:19:27: ------------------------------------------
01:19:27: Using auxilary audio input: Mikrofon (SB Play!)
01:19:27: Mic time offset: 0
01:19:27: ------------------------------------------
01:19:27: Audio Encoding: AAC
01:19:27: bitrate: 128
01:19:27: ------------------------------------------
01:19:27: device: USB2.0 HD UVC WebCam,
01:19:27: device id \\?\usb#vid_04f2&pid_b414&mi_00#6&a451efb&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
01:19:27: chosen type: MJPG, usingFourCC: false, res: 1280x720 - 1280x720, frameIntervals: 333333-666666
01:19:27: use buffering: false - 0, fourCC: 'MJPG'
01:19:27: audio device: Zakázat,
01:19:27: audio device id Disabled,
01:19:27: audio time offset 0,
01:19:27:
01:19:28: Using directshow input
01:19:28: Using Window Capture
01:19:28: Scene buffering time set to 700
01:19:28: ------------------------------------------
01:19:28: Video Encoding: x264
01:19:28: fps: 27
01:19:28: width: 1096, height: 616
01:19:28: preset: veryfast
01:19:28: profile: high
01:19:28: keyint: 54
01:19:28: CBR: yes
01:19:28: CFR: yes
01:19:28: max bitrate: 2000
01:19:28: buffer size: 2000
01:19:28: ------------------------------------------
01:19:29: Audio timestamp for device 'Mikrofon (SB Play!)' was behind target timestamp by 116605879
01:19:30: Using RTMP service: hitbox.tv
01:19:30: Server selection: rtmp://live.fra.hitbox.tv/push
01:19:30: Interface: Qualcomm Atheros AR8171/8175 PCI-E Gigabit Ethernet Controller (NDIS 6.30) (ethernet, 100 mbps)
01:19:30: Completed handshake with rtmp://live.fra.hitbox.tv/push in 48 ms.
01:19:32: SO_SNDBUF was at 65536
01:19:33: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 3670 / 272384)
01:19:33: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 524288 (buffer: 0 / 272384)
01:46:58: Total frames encoded: 44507, total frames duplicated: 1540 (3.46%)
01:46:58: Number of frames skipped due to encoder lag: 65 (0.15%)
01:46:58: Total frames rendered: 44418, number of late frames: 37 (0.08%) (it's okay for some frames to be late)
01:46:58:
01:46:58: Profiler time results:
01:46:58:
01:46:58: ==============================================================
01:46:58: video thread frame - [100%] [avg time: 12.32 ms] [children: 88.2%] [unaccounted: 11.8%]
01:46:58: | scene->Preprocess - [86.9%] [avg time: 10.704 ms]
01:46:58: | GPU download and conversion - [1.29%] [avg time: 0.159 ms] [children: 1.13%] [unaccounted: 0.162%]
01:46:58: | | flush - [0.763%] [avg time: 0.094 ms]
01:46:58: | | CopyResource - [0.3%] [avg time: 0.037 ms]
01:46:58: | | conversion to 4:2:0 - [0.0649%] [avg time: 0.008 ms]
01:46:58: Convert444Threads - [100%] [avg time: 0.89 ms] [children: 98.7%] [unaccounted: 1.35%]
01:46:58: | Convert444toNV12 - [98.7%] [avg time: 0.878 ms]
01:46:58: encoder thread frame - [100%] [avg time: 1.952 ms] [children: 3.74%] [unaccounted: 96.3%]
01:46:58: | sending stuff out - [3.74%] [avg time: 0.073 ms]
01:46:58: ==============================================================
01:46:58:
01:46:58:
 

CRUXRainmaker

New Member
01:46:58: Profiler CPU results:
01:46:58:
01:46:58: ==============================================================
01:46:58: video thread frame - [cpu time: avg 6.052 ms, total 268828 ms] [avg calls per frame: 1]
01:46:58: | scene->Preprocess - [cpu time: avg 4.574 ms, total 203188 ms] [avg calls per frame: 1]
01:46:58: | GPU download and conversion - [cpu time: avg 0.129 ms, total 5750 ms] [avg calls per frame: 1]
01:46:58: | | flush - [cpu time: avg 0.079 ms, total 3546.88 ms] [avg calls per frame: 1]
01:46:58: | | CopyResource - [cpu time: avg 0.03 ms, total 1375 ms] [avg calls per frame: 1]
01:46:58: | | conversion to 4:2:0 - [cpu time: avg 0.007 ms, total 312.5 ms] [avg calls per frame: 1]
01:46:58: Convert444Threads - [cpu time: avg 0.814 ms, total 72296.9 ms] [avg calls per frame: 2]
01:46:58: | Convert444toNV12 - [cpu time: avg 0.809 ms, total 71859.4 ms] [avg calls per frame: 2]
01:46:58: encoder thread frame - [cpu time: avg 1.17 ms, total 52093.8 ms] [avg calls per frame: 1]
01:46:58: | sending stuff out - [cpu time: avg 0.061 ms, total 2750 ms] [avg calls per frame: 1]
01:46:58: ==============================================================
01:46:58:
01:46:58: =====Stream End: 2015-12-22, 01:46:58=================================================
01:46:58: ~RTMPPublisher: Packet flush completed in 132 ms
01:46:58: ~RTMPPublisher: Send thread terminated in 0 ms
01:46:58: RTMPPublisher::SocketLoop: Graceful loop exit
01:46:58: ~RTMPPublisher: Socket thread terminated in 1 ms
01:46:58: ~RTMPPublisher: Final socket shutdown completed in 15 ms
01:46:58: Average send payload: 6967 bytes, average send interval: 27 ms
01:46:58: Number of times waited to send: 0, Waited for a total of 0 bytes
01:46:58: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
01:46:58: Number of bytes sent: 409655184
01:46:59: =====Stream Start: 2015-12-22, 01:46:59===============================================
01:46:59: Multithreaded optimizations: On
01:46:59: Base resolution: 1920x1080
01:46:59: Output resolution: 1096x616
01:46:59: ------------------------------------------
01:46:59: Loading up D3D10 on NVIDIA GeForce GTX 870M (Adapter 1)...
01:46:59: ------------------------------------------
01:46:59: Audio Format: 48000 Hz
01:46:59: ------------------------------------------
01:46:59: Audio Channels: 2 Ch
01:46:59: Playback device Default
01:46:59: ------------------------------------------
01:46:59: Using desktop audio input: Reproduktory (SB Play!)
01:46:59: Global Audio time adjust: 0
01:46:59: ------------------------------------------
01:46:59: Using auxilary audio input: Mikrofon (SB Play!)
01:46:59: Mic time offset: 0
01:46:59: ------------------------------------------
01:46:59: Audio Encoding: AAC
01:46:59: bitrate: 128
01:46:59: ------------------------------------------
01:46:59: device: USB2.0 HD UVC WebCam,
01:46:59: device id \\?\usb#vid_04f2&pid_b414&mi_00#6&a451efb&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
01:46:59: chosen type: MJPG, usingFourCC: false, res: 1280x720 - 1280x720, frameIntervals: 333333-666666
01:46:59: use buffering: false - 0, fourCC: 'MJPG'
01:46:59: audio device: Zakázat,
01:46:59: audio device id Disabled,
01:46:59: audio time offset 0,
01:46:59:
01:47:00: Using directshow input
01:47:00: Using Window Capture
01:47:00: Scene buffering time set to 700
01:47:00: Failed to get nvenc instance
01:47:00: NVENC internal init failed
01:47:00: Couldn't initialize encoder
01:47:00: ~RTMPPublisher: Packet flush completed in 0 ms
01:47:00: Number of times waited to send: 0, Waited for a total of 0 bytes
01:47:00: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
01:47:00: Number of bytes sent: 0
01:47:00: =====Stream End: 2015-12-22, 01:47:00=================================================
01:47:03: =====Stream Start: 2015-12-22, 01:47:03===============================================
01:47:03: Multithreaded optimizations: On
01:47:03: Base resolution: 1920x1080
01:47:03: Output resolution: 1096x616
01:47:03: ------------------------------------------
01:47:03: Loading up D3D10 on NVIDIA GeForce GTX 870M (Adapter 1)...
01:47:03: ------------------------------------------
01:47:03: Audio Format: 48000 Hz
01:47:03: ------------------------------------------
01:47:03: Audio Channels: 2 Ch
01:47:03: Playback device Default
01:47:03: ------------------------------------------
01:47:03: Using desktop audio input: Reproduktory (SB Play!)
01:47:03: Global Audio time adjust: 0
01:47:03: ------------------------------------------
01:47:03: Using auxilary audio input: Mikrofon (SB Play!)
01:47:03: Mic time offset: 0
01:47:03: ------------------------------------------
01:47:03: Audio Encoding: AAC
01:47:03: bitrate: 128
01:47:03: ------------------------------------------
01:47:03: device: USB2.0 HD UVC WebCam,
01:47:03: device id \\?\usb#vid_04f2&pid_b414&mi_00#6&a451efb&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
01:47:03: chosen type: MJPG, usingFourCC: false, res: 1280x720 - 1280x720, frameIntervals: 333333-666666
01:47:03: use buffering: false - 0, fourCC: 'MJPG'
01:47:03: audio device: Zakázat,
01:47:03: audio device id Disabled,
01:47:03: audio time offset 0,
01:47:03:
01:47:04: Using directshow input
01:47:04: Using Window Capture
01:47:04: Scene buffering time set to 700
01:47:04: 1 CUDA capable devices found
01:47:04: [ GPU #0 - < GeForce GTX 870M > has Compute SM 3.0, NVENC Available ]
01:47:04: Failed to get nvenc instance
01:47:04: NVENC internal init failed
01:47:04: Couldn't initialize encoder
01:47:05: ~RTMPPublisher: Packet flush completed in 0 ms
01:47:05: Number of times waited to send: 0, Waited for a total of 0 bytes
01:47:05: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
01:47:05: Number of bytes sent: 0
01:47:05: =====Stream End: 2015-12-22, 01:47:05=================================================
01:47:07: Terminating 0x11f8
01:47:07: Terminating 0x3c60
 

FerretBomb

Active Member
That CPU should be able to handle 720p@30fps, x264 Veryfast no sweat. Check if you're in a lower-power or power-save mode; the OS can park or throttle cores to save power, when you need everything you can get while livestreaming.
 

CRUXRainmaker

New Member
I have already checked. My laptop is running on "high performace mode" so there should be no problem. Stream is moreless smooth for viewers, but the game experience spikes when i am streaming .. The weird think I have noticed is that my CPU is actually running only at 60-70% of its power with just some rare spikes to 100% while streaming.. Maybe the problem lies there. Why doesnt it just go to 90-100% to provide more power when it is on highperformance mode? I even tried to clean the registers.
 
Top