Question / Help Frame Drops/Stream Lag but only sometimes and not on other programs

warlockobo

New Member
Very recently, specifically Monday, March 12, 2018, I started having issues in OBS Studio. I usually had my bitrate at 3000 and had no problems - no drops, no rises, no stuttering or frame drops, nothing. After clicking start stream on Monday, I got easily 1000 frame drops within 5 minutes of the stream being active. I had been streaming beforehand with the exact same settings for about 2 months. The quality of the stream is absolutely fine aside from that. I've changed my bitrate from anywhere between 500 to 6000 and it always drops for a couple of seconds, and then rises back up actually beyond what I have it set to. I've tried hardware or software encoding, different servers (yes I've done the twitch test to test my connection to the servers individually) and even different programs. Bebo has no frame drops but the quality of the game on the stream gets so pixelated and awful that it's unwatchable (but my webcam is not affected). Xsplit has 0 issues aside from lack of customization. Here is my log from the last stream, which was amazing quality, but still had those frame drops and very short freezes:

22:05:08.983: CPU Name: AMD Ryzen 5 1500X Quad-Core Processor
22:05:08.983: CPU Speed: 3500MHz
22:05:08.983: Physical Cores: 4, Logical Cores: 8
22:05:08.983: Physical Memory: 8144MB Total, 2469MB Free
22:05:08.983: Windows Version: 10.0 Build 16299 (revision: 309; 64-bit)
22:05:08.984: Running as administrator: false
22:05:08.984: Aero is Enabled (Aero is always on for windows 8 and above)
22:05:08.984: Windows 10 Gaming Features:
22:05:08.984: Game Bar: Off
22:05:08.984: Game DVR: Off
22:05:08.984: Game DVR Background Recording: Off
22:05:08.985: Sec. Software Status:
22:05:08.986: Windows Defender Antivirus: enabled (AV)
22:05:08.986: Windows Firewall: enabled (FW)
22:05:08.987: Windows Defender Antivirus: enabled (ASW)
22:05:08.987: Portable mode: false
22:05:09.007: OBS 21.0.1 (64bit, windows)
22:05:09.007: ---------------------------------
22:05:09.007: ---------------------------------
22:05:09.007: audio settings reset:
22:05:09.007: samples per sec: 44100
22:05:09.007: speakers: 2
22:05:09.008: ---------------------------------
22:05:09.008: Initializing D3D11...
22:05:09.008: Available Video Adapters:
22:05:09.010: Adapter 1: NVIDIA GeForce GTX 1050 Ti
22:05:09.010: Dedicated VRAM: 4213178368
22:05:09.010: Shared VRAM: 4270120960
22:05:09.010: output 1: pos={0, 0}, size={1920, 1080}, attached=true
22:05:09.010: output 2: pos={-1920, 0}, size={1920, 1080}, attached=true
22:05:09.011: Loading up D3D11 on adapter NVIDIA GeForce GTX 1050 Ti (0)
22:05:09.063: D3D11 loaded successfully, feature level used: 45056
22:05:09.851: ---------------------------------
22:05:09.851: video settings reset:
22:05:09.851: base resolution: 1920x1080
22:05:09.851: output resolution: 1280x720
22:05:09.851: downscale filter: Bicubic
22:05:09.851: fps: 60/1
22:05:09.851: format: NV12
22:05:09.854: Audio monitoring device:
22:05:09.854: name: Default
22:05:09.854: id: default
22:05:09.854: ---------------------------------
22:05:09.856: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/chrome_elf.dll' not found, loading of module failed
22:05:09.857: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
22:05:09.942: [AMF] <obs_module_load> AMF not supported (no AMD graphics)
22:05:09.942: Failed to initialize module 'enc-amf.dll'
22:05:09.958: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libcef.dll' not found, loading of module failed
22:05:09.958: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libEGL.dll' not found, loading of module failed
22:05:09.970: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libGLESv2.dll' not found, loading of module failed
22:05:09.971: Failed to load 'en-US' text for module: 'obs-browser.dll'
22:05:09.971: [browser_source: 'Version: 1.29.0']
22:05:09.974: NVENC supported
22:05:10.042: Couldn't find VLC installation, VLC video source disabled
22:05:10.046: No blackmagic support
22:05:10.110: ---------------------------------
22:05:10.110: Loaded Modules:
22:05:10.110: win-wasapi.dll
22:05:10.110: win-mf.dll
22:05:10.110: win-dshow.dll
22:05:10.110: win-decklink.dll
22:05:10.110: win-capture.dll
22:05:10.110: vlc-video.dll
22:05:10.110: text-freetype2.dll
22:05:10.110: rtmp-services.dll
22:05:10.110: obs-x264.dll
22:05:10.110: obs-vst.dll
22:05:10.110: obs-transitions.dll
22:05:10.110: obs-text.dll
22:05:10.110: obs-qsv11.dll
22:05:10.110: obs-outputs.dll
22:05:10.110: obs-filters.dll
22:05:10.110: obs-ffmpeg.dll
22:05:10.110: obs-browser.dll
22:05:10.110: image-source.dll
22:05:10.110: frontend-tools.dll
22:05:10.110: enc-amf.dll
22:05:10.110: coreaudio-encoder.dll
22:05:10.110: ---------------------------------
22:05:10.110: ==== Startup complete ===============================================
22:05:10.113: All scene data cleared
22:05:10.113: ------------------------------------------------
22:05:10.149: WASAPI: Device 'Speakers (5- Realtek High Definition Audio)' initialized
22:05:10.158: WASAPI: Device 'Microphone (Yeti Stereo Microphone)' initialized
22:05:10.158: Switched to scene 'Scene'
22:05:10.158: ------------------------------------------------
22:05:10.158: Loaded scenes:
22:05:10.158: - scene 'Scene':
22:05:10.158: ------------------------------------------------
22:05:10.185: adding 23 milliseconds of audio buffering, total audio buffering is now 23 milliseconds
22:05:10.456: adding 23 milliseconds of audio buffering, total audio buffering is now 46 milliseconds
22:05:48.147: Settings changed (stream 1)
22:05:48.147: ------------------------------------------------
22:05:50.295: ==== Shutting down ==================================================
22:05:50.300: Switched to scene '(null)'
22:05:50.300: WASAPI: Device 'Speakers (5- Realtek High Definition Audio)' Terminated
22:05:50.304: WASAPI: Device 'Microphone (Yeti Stereo Microphone)' Terminated
22:05:50.306: All scene data cleared
22:05:50.306: ------------------------------------------------
22:05:50.358: Freeing OBS context data
22:05:50.394: [Scripting] Total detached callbacks: 0
22:05:50.404: == Profiler Results =============================
22:05:50.404: run_program_init: 1285.31 ms
22:05:50.404: ┣OBSApp::AppInit: 13.736 ms
22:05:50.404: ┃ ┗OBSApp::InitLocale: 1.278 ms
22:05:50.404: ┗OBSApp::OBSInit: 1250.44 ms
22:05:50.404: ┣obs_startup: 4.301 ms
22:05:50.404: ┗OBSBasic::OBSInit: 1208 ms
22:05:50.404: ┣OBSBasic::InitBasicConfig: 0.332 ms
22:05:50.404: ┣OBSBasic::ResetAudio: 0.149 ms
22:05:50.404: ┣OBSBasic::ResetVideo: 846.459 ms
22:05:50.404: ┣OBSBasic::InitOBSCallbacks: 0.008 ms
22:05:50.404: ┣OBSBasic::InitHotkeys: 0.067 ms
22:05:50.404: ┣obs_load_all_modules: 255.386 ms
22:05:50.404: ┃ ┣obs_init_module(coreaudio-encoder.dll): 0.468 ms
22:05:50.404: ┃ ┣obs_init_module(enc-amf.dll): 84.609 ms
22:05:50.404: ┃ ┣obs_init_module(frontend-tools.dll): 4.74 ms
22:05:50.404: ┃ ┣obs_init_module(image-source.dll): 0.004 ms
22:05:50.404: ┃ ┣obs_init_module(obs-browser.dll): 0.088 ms
22:05:50.404: ┃ ┣obs_init_module(obs-ffmpeg.dll): 0.849 ms
22:05:50.404: ┃ ┃ ┗nvenc_check: 0.796 ms
22:05:50.404: ┃ ┣obs_init_module(obs-filters.dll): 0.021 ms
22:05:50.404: ┃ ┣obs_init_module(obs-outputs.dll): 0.008 ms
22:05:50.404: ┃ ┣obs_init_module(obs-qsv11.dll): 57.472 ms
22:05:50.404: ┃ ┣obs_init_module(obs-text.dll): 0.77 ms
22:05:50.404: ┃ ┣obs_init_module(obs-transitions.dll): 0.011 ms
22:05:50.404: ┃ ┣obs_init_module(obs-vst.dll): 0.001 ms
22:05:50.404: ┃ ┣obs_init_module(obs-x264.dll): 0.002 ms
22:05:50.404: ┃ ┣obs_init_module(rtmp-services.dll): 1.404 ms
22:05:50.404: ┃ ┣obs_init_module(text-freetype2.dll): 0.055 ms
22:05:50.404: ┃ ┣obs_init_module(vlc-video.dll): 0.036 ms
22:05:50.404: ┃ ┣obs_init_module(win-capture.dll): 0.058 ms
22:05:50.404: ┃ ┣obs_init_module(win-decklink.dll): 3.111 ms
22:05:50.404: ┃ ┣obs_init_module(win-dshow.dll): 0.906 ms
22:05:50.404: ┃ ┣obs_init_module(win-mf.dll): 58.916 ms
22:05:50.404: ┃ ┣obs_init_module(win-wasapi.dll): 0.005 ms
22:05:50.404: ┃ ┗reset_win32_symbol_paths: 0.112 ms
22:05:50.404: ┣OBSBasic::ResetOutputs: 0.257 ms
22:05:50.404: ┣OBSBasic::CreateHotkeys: 0.038 ms
22:05:50.404: ┣OBSBasic::InitService: 1.481 ms
22:05:50.404: ┣OBSBasic::InitPrimitives: 0.426 ms
22:05:50.404: ┗OBSBasic::Load: 46.614 ms
22:05:50.405: obs_hotkey_thread(25 ms): min=0.002 ms, median=0.007 ms, max=6.953 ms, 99th percentile=0.137 ms, 100% below 25 ms
22:05:50.405: audio_thread(Audio): min=0 ms, median=0.089 ms, max=2.176 ms, 99th percentile=0.441 ms
22:05:50.405: obs_graphics_thread(16.6667 ms): min=0.42 ms, median=0.956 ms, max=8.433 ms, 99th percentile=2.937 ms, 100% below 16.667 ms
22:05:50.405: ┣tick_sources: min=0.002 ms, median=0.013 ms, max=4.399 ms, 99th percentile=0.149 ms
22:05:50.405: ┣output_frame: min=0.41 ms, median=0.701 ms, max=5.641 ms, 99th percentile=2.111 ms
22:05:50.405: ┃ ┣gs_context(video->graphics): min=0.178 ms, median=0.319 ms, max=5.164 ms, 99th percentile=1.419 ms
22:05:50.405: ┃ ┃ ┣render_video: min=0.026 ms, median=0.093 ms, max=2.315 ms, 99th percentile=0.633 ms
22:05:50.405: ┃ ┃ ┃ ┣render_main_texture: min=0.006 ms, median=0.012 ms, max=1.698 ms, 99th percentile=0.082 ms
22:05:50.405: ┃ ┃ ┃ ┣render_output_texture: min=0.004 ms, median=0.036 ms, max=1.974 ms, 99th percentile=0.254 ms
22:05:50.405: ┃ ┃ ┃ ┣render_convert_texture: min=0.001 ms, median=0.016 ms, max=2.088 ms, 99th percentile=0.094 ms
22:05:50.405: ┃ ┃ ┃ ┗stage_output_texture: min=0 ms, median=0.02 ms, max=1.167 ms, 99th percentile=0.206 ms
22:05:50.405: ┃ ┃ ┣download_frame: min=0 ms, median=0.086 ms, max=1.186 ms, 99th percentile=0.302 ms
22:05:50.405: ┃ ┃ ┗gs_flush: min=0.051 ms, median=0.12 ms, max=4.214 ms, 99th percentile=0.742 ms
22:05:50.405: ┃ ┗output_video_data: min=0.216 ms, median=0.365 ms, max=4.051 ms, 99th percentile=1.011 ms
22:05:50.405: ┗render_displays: min=0.001 ms, median=0.219 ms, max=6.529 ms, 99th percentile=1.029 ms
22:05:50.405: video_thread(video): min=0.001 ms, median=0.002 ms, max=0.166 ms, 99th percentile=0.01 ms
22:05:50.405: =================================================
22:05:50.405: == Profiler Time Between Calls ==================
22:05:50.405: obs_hotkey_thread(25 ms): min=24.662 ms, median=25.086 ms, max=39.223 ms, 97.3828% within ±2% of 25 ms (0% lower, 2.61716% higher)
22:05:50.405: obs_graphics_thread(16.6667 ms): min=1.903 ms, median=16.667 ms, max=30.329 ms, 95.799% within ±2% of 16.667 ms (2.10049% lower, 2.10049% higher)
22:05:50.405: =================================================
22:05:50.432: Number of memory leaks: 1

I have definitely considered that it is my internet provider, even though speed tests show the same speeds I'd been getting for the last 2 months. It is spring break and I do live in an extremely popular beach town so maybe that has some impact on my speeds? I called my provider, Spectrum, and they said everything looked normal, but ISP customer service isn't exactly known to be helpful.
 
Here is all the possible information we can provide about dropped frames. Also keep in mind that a speed test isn't a great indicator of real speeds - it is a short test, to one predefined server, and all internet providers know what those servers are and can artificially "spoof" the numbers by prioritizing routing to those specific servers.
 
Unfortunately the logfile you uploaded does not contain any streaming attempt output...

Can you do a few minutes' worth of streaming (Doing what you would normally do in-game) then stop the streaming session, then upload a current logfile please so I or someone else can further assist in troubleshooting:
https://obsproject.com/forum/threads/please-post-a-log-with-your-issue-heres-how.23074/

When you state you have done a TwitchTest test, did you use Medium length duration? It is preferred as it is depicts a more constant connection, one which you would have when streaming.
 
I know you stated you have used TwitchTest utility,
Can you do another test and upload a screenshot of the results please.
It is best to do a medium length test duration.
Once it has completed, choose the server that as (First priority) has the highest Quality and (Second priority) the lowest RTT (Round Trip Time) For good stream throughput, quality should be 80+.
TwitchTest utility will also provide the estimated potential (Twitch only allows up to 6,000 kb/s) bitrate you can stream to for each particular server as well, which may or may not assist you in regards to your upload speed.

Thanks in advance.
 
The places above South America were about the same bandwidth and all of them have 0 quality.
 

Attachments

  • lemEQ0q.png
    lemEQ0q.png
    64.4 KB · Views: 52
Something is going on there, you should have pretty good quality, close to if not 100 for the servers in the mid 30's for latency. Definitely not zero across the board like that.

Do you by chance have any LAN/Network optimization software running on your PC?
- If so, can you disable them and re-do a TwitchTest medium duration (America only servers, as that is where you are located) test please, just let me know if quality shows anything other than zero.
Were there any updates you may have installed on that day or the day/night prior to when you noticed the issue arise?
What is your upload speed for a speedtest server based in Dallas TX, and the same for Houston TX?
- They should be pretty much identical.
Can you check your upload speed via speedtest for a server a bit farther in distance than either of those, say New York NY or San Francisco CA (Whichever one is in the opposite direction from your location to Dallas/Houston. It should be a little less if not roughly the same)

From your last uploaded logfile,
You created a Monitor Capture source for your scene 'The Stream':
Using Monitor Capture in the same scene as Game/Window Capture can have a detrimental effect on performance as Monitor Capture is essentially 'always on':
Game capture grabs the frame directly from the graphics card for OBS to encode before sending it back to the graphics card for final rendering of the frame.
Monitor capture has the graphics card write the frame to system RAM (Which is really slow to write/read from) before OBS grabs it to encode, then sends it back to the graphics card to render for final output.

If you want to use Monitor Capture, you should create a scene for it by itself without any other capture methods included in that scene.

Side note:
Also not entirely sure if you have checked, your Realtek PCIe Controller drivers may be out of date? Latest version is 10.025, update time 2018/3/2
http://www.realtek.com/downloads/do...d=5&Level=5&Conn=4&DownTypeID=3&GetDown=false
 
Let's keep it easy - 0 quality means your internet can't handle streaming, at any quality. Especially if it's showing that to every server. Contact your ISP.
 
Let's keep it easy - 0 quality means your internet can't handle streaming, at any quality. Especially if it's showing that to every server. Contact your ISP.
Can't just say contact your ISP without ruling out user-end conflicting software first.

If you are have got consistent download and upload speeds using speedtest across a few to several test runs, multiple servers and there is no other issues with internet connectivity, it may be Twitch themselves having issues on their end or your ISP having issues routing specifically to Twitch.

After determining user end software/hardware is not at fault, then the best way to proceed is to try and provide your ISP with more detail.

I personally use the Chrome extension 'ip whois & flags chrome & websites rating', to get an IP address as it is convenient and right there in the browser.
I just open a new tab and copy/paste the Twitch server address (ex- live-syd.twitch.tv, which will be unreachable) from https://stream.twitch.tv/ingests/ (Just right-click on the name of the ingest server you would use open a new tab)
Then open up the extension (On that unreachable tab) to view the IP address range that Twitch server uses.
With that IP address list contact your ISP stating you have bandwidth issues in regards to streaming to Twitch, providing them the IP addresses.

It may be a case of peer-shaping with your ISP partner and not your ISP themselves. If it is then there is nothing you can do at all and it is up to your ISP to negotiate a better deal with their peer partner for more bandwidth allocation (Their peer partner needs to open up more server ports to allow your ISP more connections to their network)
https://www.makeuseof.com/tag/isp-peering-high-speed-internet-slow/

You could try using a free VPN software (Selecting the server closest to your normal Twitch ingest server, alternatively the one closest to you) temporarily to hopefully find a solution to the problem.
I would try WindScribe, from https://windscribe.com as it is free, offers no time limit for up-time/duration of free trial. Offers a lot of bandwidth for a free VPN as well.
 
Back
Top