Question / Help Problems with Streaming

Medexi

New Member
Hello guys. As the title of the topic says, I am having problems with streaming and I can´t really figure out why this is happening. My first thought was ofcourse that there was some issues with the settings I inserted in the OBS client and that they needed to be changed. After experimenting for a while I still couldn´t get it to work and had to search a bit on the net, but couldn´t find anything which would be a solution to my problem (it seemed, since it still didn´t fully work).

So, my problem is as following: My streamin is perfect. I have absolutely no lag on the computer, I have no changes in Ping and my internet connection fully works even when streaming in 1080p@30FPS. My problem is however that every 5-10 seconds in the stream, it freezes for 1-3 seconds and then works again. And my viewers told me that only the video lags and not the audio. I have seen others post similar problems but their tips did not help me. I changed server, changed bitrate etc. So now I need some direct help from you guys here.

What do I need to post in order to help you, help me? I figured the internet connection was one of them so I will post that one first. You tell me what more you will need and how I will obtain it! Thank you very much in advance!

Ta emot = Download
Skicka = Upload
 

Attachments

  • bbk_resultat.jpg
    40.2 KB · Views: 5

Medexi

New Member
You probably need computer specs too so here goes:

Intel Core i7-4770K 3.50GHz
nVidia GeForce 670GTX
8GB RAM @1666MHz

Tell me if you need more info about the computer!
 

ThoNohT

Developer
There are some standard problems which will become apparent if you feed your log into http://obsproject.com/analyzer. But there's nothing really indicating any real performance problems.

Have you checked a VOD too to see if these stalls are really on your side, it might also be the viewers' connection to Twitch that isn't coping. You are streaming at a rather high bitrate, which might be an issue for certain viewers.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
I don't see any particular issue with network -- you do have an abnormally high number of duplicated frames though, which may be related to the number and/or size of bitmaps you're using. Not entirely sure otherwise. Avoid monitor capture when possible as well.
 

Medexi

New Member
I will try out the analyzer now and get back with some more intel. I am always using Game Capture when streaming games, unless I am showing my desktop of course. Could the issue be that I need to lower the bitrate? Does it affect people who have low bandwidth?

EDIT: Soo, the analyzer only said Monitor Capture was the issue, which doesnt explain the freeze when I am using Game Capture while streaming the game. I am streaming at 720p@60FPS currently with 3000kbp/s. Should I lower or higher it? Could this really be from the viewers side and not from me? Thanks!
 

Sapiens

Forum Moderator
If you're going to use Monitor Capture in Windows 7 you need to disable Aero. Don't use it at all if possible unless you upgrade to Windows 8.

Test by making a new scene and adding only a Game Capture source to it. Same problem?
 

Medexi

New Member
Sapiens said:
If you're going to use Monitor Capture in Windows 7 you need to disable Aero. Don't use it at all if possible unless you upgrade to Windows 8.

Test by making a new scene and adding only a Game Capture source to it. Same problem?

The Scene which is causing the freeze is the one with Game Capture only. So yes, the problem remains!
 

Medexi

New Member
Here goes:

Code:
23:51:23: Open Broadcaster Software v0.584b - 32bit (´・ω・`)
23:51:23: -------------------------------
23:51:23: CPU Name: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
23:51:23: CPU Speed: 3500MHz
23:51:23: Physical Memory:  4095MB Total, 4095MB Free
23:51:23: stepping id: 3, model 60, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
23:51:23: monitor 1: pos={0, 0}, size={1920, 1080}
23:51:23: monitor 2: pos={1920, 0}, size={1920, 1080}
23:51:23: Windows Version: 6.1 Build 7601 S
23:51:23: Aero is Enabled
23:51:23: -------------------------------
23:51:23: OBS Modules:
23:51:23: Base Address     Module
23:51:23: 002D0000         OBS.exe
23:51:23: 53ED0000         OBSApi.dll
23:51:23: 6A6E0000         DShowPlugin.dll
23:51:23: 695A0000         GraphicsCapture.dll
23:51:23: 6A580000         NoiseGate.dll
23:51:23: 68D60000         PSVPlugin.dll
23:51:23: ------------------------------------------
23:51:23: Adapter 1
23:51:23:   Video Adapter: NVIDIA GeForce GTX 670
23:51:23:   Video Adapter Dedicated Video Memory: 2087387136
23:51:23:   Video Adapter Shared System Memory: 2147807232
23:51:23:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
23:51:23:   Video Adapter Output 2: pos={1920, 0}, size={1920, 1080}, attached=true
23:51:23: =====Stream Start: 2013-11-18, 23:51:23===============================================
23:51:23:   Multithreaded optimizations: On
23:51:23:   Base resolution: 1920x1080
23:51:23:   Output resolution: 1280x720
23:51:23: ------------------------------------------
23:51:23: Loading up D3D10 on NVIDIA GeForce GTX 670...
23:51:23: ------------------------------------------
23:51:23: Audio Format: 48000hz
23:51:23: Playback device Default
23:51:23: ------------------------------------------
23:51:23: Using desktop audio input: Högtalare (Realtek High Definition Audio)
23:51:23: ------------------------------------------
23:51:23: Using auxilary audio input: Mikrofon (Realtek High Definition Audio)
23:51:23: ------------------------------------------
23:51:23: Audio Encoding: AAC
23:51:23:     bitrate: 128
23:51:23: Using bitmap image
23:51:23: Using bitmap image
23:51:23: Using bitmap image
23:51:23: Using graphics capture
23:51:23: Scene buffering time set to 400
23:51:23: ------------------------------------------
23:51:23: Video Encoding: x264
23:51:23:     fps: 60
23:51:23:     width: 1280, height: 720
23:51:23:     preset: veryfast
23:51:23:     profile: high
23:51:23:     keyint: 120
23:51:23:     CBR: yes
23:51:23:     CFR: yes
23:51:23:     max bitrate: 2800
23:51:23:     buffer size: 2800
23:51:23: ------------------------------------------
23:51:23: MMDeviceAudioSource: Frequency for device 'Högtalare (Realtek High Definition Audio)' is 384000, samples per sec is 48000
23:51:23: MMDeviceAudioSource: Frequency for device 'Mikrofon (Realtek High Definition Audio)' is 352800, samples per sec is 44100
23:51:23: SharedTexCapture hooked
23:51:24: Using RTMP service: Twitch / Justin.tv
23:51:24:   Server selection: rtmp://live-arn.justin.tv/app
23:51:24:   Interface: Killer e2200 PCI-E Gigabit Ethernet Controller (NDIS 6.20) (ethernet, 1000 mbps)
23:51:25: Completed handshake with rtmp://live-arn.justin.tv/app in 608 ms.
23:51:26: SO_SNDBUF was at 8192
23:51:26: SO_SNDBUF is now 65536
23:53:11: Total frames encoded: 6469, total frames duplicated: 5 (0.08%)
23:53:11: Total frames rendered: 6476, number of late frames: 0 (0.00%) (it's okay for some frames to be late)
23:53:11: RTMPPublisher::SocketLoop: Graceful loop exit
23:53:12: Average send payload: 6712 bytes, average send interval: 18 ms
23:53:12: Number of times waited to send: 0, Waited for a total of 0 bytes
23:53:12: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
23:53:12: Number of bytes sent: 38393749
23:53:12: 
23:53:12: Profiler time results:
23:53:12: 
23:53:12: ==============================================================
23:53:12: video thread frame - [100%] [avg time: 0.773 ms] [children: 18.1%] [unaccounted: 81.9%]
23:53:12: | scene->Preprocess - [0.259%] [avg time: 0.002 ms]
23:53:12: | GPU download and conversion - [17.9%] [avg time: 0.138 ms] [children: 14.6%] [unaccounted: 3.23%]
23:53:12: | | flush - [11.1%] [avg time: 0.086 ms]
23:53:12: | | CopyResource - [3.23%] [avg time: 0.025 ms]
23:53:12: | | conversion to 4:2:0 - [0.259%] [avg time: 0.002 ms]
23:53:12: Convert444Threads - [100%] [avg time: 0.776 ms] [children: 99.2%] [unaccounted: 0.773%]
23:53:12: | Convert444toNV12 - [99.2%] [avg time: 0.77 ms]
23:53:12: encoder thread frame - [100%] [avg time: 0.997 ms]
23:53:12: ==============================================================
23:53:12: 
23:53:12: 
23:53:12: Profiler CPU results:
23:53:12: 
23:53:12: ==============================================================
23:53:12: video thread frame - [cpu time: avg 0.168 ms, total 1092.01 ms] [avg calls per frame: 1]
23:53:12: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
23:53:12: | GPU download and conversion - [cpu time: avg 0.048 ms, total 312.003 ms] [avg calls per frame: 1]
23:53:12: | | flush - [cpu time: avg 0.026 ms, total 171.601 ms] [avg calls per frame: 1]
23:53:12: | | CopyResource - [cpu time: avg 0.009 ms, total 62.401 ms] [avg calls per frame: 1]
23:53:12: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
23:53:12: Convert444Threads - [cpu time: avg 0.769 ms, total 9921.66 ms] [avg calls per frame: 2]
23:53:12: | Convert444toNV12 - [cpu time: avg 0.767 ms, total 9890.46 ms] [avg calls per frame: 2]
23:53:12: encoder thread frame - [cpu time: avg 0.384 ms, total 2480.42 ms] [avg calls per frame: 1]
23:53:12: ==============================================================
23:53:12: 
23:53:12: =====Stream End: 2013-11-18, 23:53:12=================================================

EDIT: It actually says the server is slow, but I checked with the Latency Checker and I am using the best possible server for me at the moment, which has 42ms and not 600+! So the problem is somewhere else.
 

Sapiens

Forum Moderator
That log doesn't appear to have any problems, and the excess number of duplicate frames seems to be gone as well. This is only happening when you try to watch the stream while it's live? If so then it may just be a playback issue where you aren't getting the data from Twitch fast enough. If you do a local recording does that play back okay? What if you let the VOD buffer before you watch it?
 

Medexi

New Member
VOD buffer? I have no idea what that means haha ^^ Yeah, it happends while the stream is live, have not checked for the files and can´t either since I am not saving them at the moment.
 

Sapiens

Forum Moderator
VOD = Video On Demand, i.e. the recording Twitch makes of your live stream (if you enable that option in your Twitch settings). Letting it buffer means letting it download a bit from Twitch before you play it like you can do with a Youtube video.

If you go back and watch the VOD, or make a local recording of it and watch that, and it plays back properly, you'll know the issue wasn't with the stream itself but rather with your ability to get the data from Twitch fast enough.
 

Medexi

New Member
I´ll try it out and keep you updated! The thing is however, that only Video and not Audio is freezing. Is that something important? Doesnt feel like it has something to do with the data in this case, since it should have frozen both audio and video?
 

Sapiens

Forum Moderator
There's nothing in your latest log file to indicate that what you are sending out to Twitch has any freezes in it - no dropped frames or late/lagged frames - which is why you want to check a recording instead of the live stream.
 

dodgepong

Administrator
Community Helper
It sounds like you already found the problem. If the local recording is fine, then the problem is the Twitch VOD player. The local recording and the data sent out by Twitch are exactly the same.
 
Top