Question / Help Very funky stream

Belhifet

New Member
Around the beginning of sept there was an update to OBS, since then OBS has been acting very funky. This was the update that happened just as twitch started asking for the 2 sec keyint. Now its taken various testings here and there and trying this and that. Finally we've discovered a few things.

Old versions of OBS still work (Encoder: Open Broadcaster Software v0.467a (test 2) with mind numbing settings(by this I mean..just terribly inefficient) work but new version every time a keyframe is added spikes and it kinda glitches where the sound mutes for a split second and the video pauses. It does this both when streaming and local recording. This is a log of it not working. I feel like there is something obvious that encoder to be like wtf..but I can't see it. halp.

Code:
06:59:51: Open Broadcaster Software v0.582b - 32bit (´・ω・`)
06:59:51: -------------------------------
06:59:51: CPU Name: AMD Phenom(tm) II X4 965 Processor
06:59:51: CPU Speed: 4093MHz
06:59:51: Physical Memory:  4095MB Total, 3352MB Free
06:59:51: stepping id: 3, model 4, family 16, type 0, extmodel 8, extfamily 0, HTT 1, logical cores 4, total cores 4
06:59:51: monitor 1: pos={1920, 0}, size={1440, 900}
06:59:51: monitor 2: pos={0, 0}, size={1920, 1080}
06:59:51: Windows Version: 6.1 Build 7600 S
06:59:51: Aero is Disabled
06:59:51: -------------------------------
06:59:51: OBS Modules:
06:59:51: Base Address     Module
06:59:51: 00060000         OBS.exe
06:59:51: 670E0000         OBSApi.dll
06:59:51: 72D00000         DShowPlugin.dll
06:59:51: 73080000         GraphicsCapture.dll
06:59:51: 74D40000         NoiseGate.dll
06:59:51: 6FB30000         PSVPlugin.dll
06:59:51: ------------------------------------------
06:59:51: Adapter 1
06:59:51:   Video Adapter: AMD Radeon HD 6800 Series
06:59:51:   Video Adapter Dedicated Video Memory: 1059811328
06:59:51:   Video Adapter Shared System Memory: 4025577472
06:59:51:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
06:59:51:   Video Adapter Output 2: pos={1920, 0}, size={1440, 900}, attached=true
06:59:51: =====Stream Start: 2013-10-23, 06:59:51===============================================
06:59:51:   Multithreaded optimizations: On
06:59:51:   Base resolution: 1920x1080
06:59:51:   Output resolution: 1280x720
06:59:51: ------------------------------------------
06:59:51: Loading up D3D10 on AMD Radeon HD 6800 Series...
06:59:51: ------------------------------------------
06:59:51: Audio Format: 44100hz
06:59:51: Playback device Default
06:59:51: ------------------------------------------
06:59:51: Using desktop audio input: Speakers (VIA High Definition Audio)
06:59:51: ------------------------------------------
06:59:51: Using auxilary audio input: Microphone (HD Webcam C270)
06:59:51: ------------------------------------------
06:59:51: Audio Encoding: AAC
06:59:51:     bitrate: 128
06:59:51: ------------------------------------------
06:59:51:     device: Logitech HD Webcam C270,
06:59:51:     device id \\?\usb#vid_046d&pid_0825&mi_00#6&4eeb376&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
06:59:51:     chosen type: I420, usingFourCC: false, res: 1280x960 - 1280x960, frameIntervals: 333333-2000000
06:59:51:     use buffering: false - 0, fourCC: 'I420'
06:59:51:     audio device: (null),
06:59:51:     audio device id (null),
06:59:51:
06:59:52: Using directshow input
06:59:52: Scene buffering time set to 400
06:59:53: ------------------------------------------
06:59:53: Video Encoding: x264
06:59:53:     fps: 30
06:59:53:     width: 1280, height: 720
06:59:53:     preset: veryfast
06:59:53:     profile: high
06:59:53:     keyint: 60
06:59:53:     CBR: yes
06:59:53:     CFR: yes
06:59:53:     max bitrate: 1600
06:59:53:     buffer size: 1600
06:59:53: ------------------------------------------
06:59:53: MMDeviceAudioSource: Frequency for device 'Speakers (VIA High Definition Audio)' is 384000, samples per sec is 48000
06:59:53: MMDeviceAudioSource: Frequency for device 'Microphone (HD Webcam C270)' is 192000, samples per sec is 48000
06:59:54: Using RTMP service: Twitch / Justin.tv
06:59:54:   Server selection: rtmp://live-ord.justin.tv/app
06:59:54:   Interface: Realtek PCIe GBE Family Controller (ethernet, 100 mbps)
06:59:55: Completed handshake with rtmp://live-ord.justin.tv/app in 222 ms.
06:59:55: SO_SNDBUF was at 8192
06:59:55: SO_SNDBUF is now 65536
06:59:56: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
06:59:56:   New Scene
06:59:56: Using text output
06:59:56: Using Monitor Capture
07:06:31: Total frames encoded: 10753, total frames duplicated: 1186 (11.03%)
07:06:31: Number of frames skipped due to encoder lag: 8 (0.07%)
07:06:31: Total frames rendered: 10565, number of late frames: 109 (1.03%) (it's okay for some frames to be late)
07:06:33: RTMPPublisher::SocketLoop: Graceful loop exit
07:06:33: Average send payload: 5719 bytes, average send interval: 30 ms
07:06:33: Number of times waited to send: 0, Waited for a total of 0 bytes
07:06:33: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
07:06:33: Number of bytes sent: 74258301
07:06:33:
07:06:33: Profiler time results:
07:06:33:
07:06:33: ==============================================================
07:06:33: video thread frame - [100%] [avg time: 15.44 ms] [children: 84.3%] [unaccounted: 15.7%]
07:06:33: | scene->Preprocess - [79.4%] [avg time: 12.253 ms]
07:06:33: | GPU download and conversion - [4.95%] [avg time: 0.765 ms] [children: 4.15%] [unaccounted: 0.81%]
07:06:33: | | flush - [3.52%] [avg time: 0.544 ms]
07:06:33: | | CopyResource - [0.376%] [avg time: 0.058 ms]
07:06:33: | | conversion to 4:2:0 - [0.246%] [avg time: 0.038 ms]
07:06:33: Convert444Threads - [100%] [avg time: 1.673 ms] [children: 99%] [unaccounted: 0.956%]
07:06:33: | Convert444toNV12 - [99%] [avg time: 1.657 ms]
07:06:33: encoder thread frame - [100%] [avg time: 2.533 ms]
07:06:33: ==============================================================
07:06:33:
07:06:33:
07:06:33: Profiler CPU results:
07:06:33:
07:06:33: ==============================================================
07:06:33: video thread frame - [cpu time: avg 8.459 ms, total 89373 ms] [avg calls per frame: 1]
07:06:33: | scene->Preprocess - [cpu time: avg 7.335 ms, total 77501.3 ms] [avg calls per frame: 1]
07:06:33: | GPU download and conversion - [cpu time: avg 0.103 ms, total 1092.01 ms] [avg calls per frame: 1]
07:06:33: | | flush - [cpu time: avg 0.063 ms, total 670.804 ms] [avg calls per frame: 1]
07:06:33: | | CopyResource - [cpu time: avg 0.01 ms, total 109.201 ms] [avg calls per frame: 1]
07:06:33: | | conversion to 4:2:0 - [cpu time: avg 0.004 ms, total 46.8 ms] [avg calls per frame: 1]
07:06:33: Convert444Threads - [cpu time: avg 1.284 ms, total 27097.4 ms] [avg calls per frame: 2]
07:06:33: | Convert444toNV12 - [cpu time: avg 1.281 ms, total 27035 ms] [avg calls per frame: 2]
07:06:33: encoder thread frame - [cpu time: avg 1.327 ms, total 14258.5 ms] [avg calls per frame: 1]
07:06:33: ==============================================================
07:06:33:
07:06:33: =====Stream End: 2013-10-23, 07:06:33=================================================
http://pastebin.com/9WRXQcB3

Its a friend's stream, and I've been trying to help...I help people all the time and never has this issue come up. When you do a vod analysis the video bit rate is..sooo spikey its like 500->2300 swapping each second its so odd, I know its not his net since it happens with local recording too...My brain is fried :(
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
I don't see any major problem, outside of maybe just a few too many frames being duplicated (which can happen for a number of reasons). I would love to see a vod of the problem if possible.
 

Belhifet

New Member
I was really hoping for some deus ex machina, I know that vod isnt great, we can produce a better one with more moving parts. Would it be helpful to also make a local recording and upload that somewhere?
 
Top