Question / Help Stream lags for 5 seconds every 30 seconds

bmilitant

New Member
So I do not know what is causing my issue. I streamed with all my same settings for a while now but all of a sudden I will be streaming now and my game plays fine, and my OBS studio preview screen is fine, but when someone is watching my Twitch stream, it freezes for like 3-5 seconds almost every 30 seconds. The stream does not stop as in buffering, it is choppy. Earlier today I streamed Quake Champions as a test stream for 30 minutes and everything ran perfect like normal. You can see this stream here: https://www.twitch.tv/videos/155636819

I wanted to test and make sure that later when I streamed I would not have this issue. But sure enough, later that day I have the freezing issue, I took a look at my CPU and Ram usage, its all fine. My internet is pretty good. 80mbps download and 15 upload... I have been streaming on and off for a year or so now and I have not had this issue until recently. It is very frustrating.

I have the log files from this stream where I am showing off the issue I am having: https://www.twitch.tv/videos/155715772

Notice how choppy the video is for this stream now... I had a viewer once tell me the sound does not stop, its only the video.

My computer specs are pretty good, Ive never had an issue streaming or playing games. This problem also happens even if I am not streaming a game, just sitting idle at my desktop screen...

I have tried all the usual things people would say, turn down the bitrate.. didnt help, the Quake stream above is at my normal bitrate of 2900, and that stream was perfect... then later today I have this issue. I am also only streaming at 720p 30fps like I always normally do

Well, I don't know what else to try but I will leave you with my log file from the choppy stream so hopefully someone can help me identify the issue, Thanks in advance

logs:

23:31:31.790: [game-capture: 'Miscreated'] attempting to hook fullscreen process: TaskForce.exe
23:31:31.796: [game-capture: 'Miscreated'] d3d11 shared texture capture successful
23:31:31.823: [game-capture: 'Miscreated'] shared texture capture successful
23:35:49.697: Last log entry repeated for 120 more lines
23:35:49.698: [rtmp stream: 'adv_stream'] User stopped the stream
23:35:49.718: Output 'adv_stream': stopping
23:35:49.718: Output 'adv_stream': Total encoded frames: 8179
23:35:49.718: Output 'adv_stream': Total drawn frames: 8179
23:35:49.718: Output 'adv_stream': Number of dropped frames due to insufficient bandwidth/connection stalls: 3613 (44.2%)
23:35:49.718: [rtmp stream: 'adv_stream'] Freeing 19 remaining packets
23:35:49.719: ==== Streaming Stop ================================================
23:35:49.774: warning: 2 frames left in the queue on closing
23:36:33.468: ==== Shutting down ==================================================
23:36:33.471: Switched to scene '(null)'
23:36:33.473: [game-capture: 'Miscreated'] capture stopped
23:36:33.525: WASAPI: Device 'Headset Earphone (ASTRO Wireless Transmitter )' Terminated
23:36:33.530: WASAPI: Device 'Headset Microphone (ASTRO Wireless Transmitter )' Terminated
23:36:33.534: All scene data cleared
23:36:33.534: ------------------------------------------------
23:36:33.575: Freeing OBS context data
23:36:33.696: == Profiler Results =============================
23:36:33.696: run_program_init: 3117.1Â ms
23:36:33.696: ┣OBSApp::AppInit: 0.849 ms
23:36:33.696: ┃ ┗OBSApp::InitLocale: 0.534 ms
23:36:33.696: â”—OBSApp::OBSInit: 3102Â ms
23:36:33.696: ┣obs_startup: 0.572 ms
23:36:33.696: â”—OBSBasic::OBSInit: 3072.92Â ms
23:36:33.696: ┣OBSBasic::InitBasicConfig: 0.164 ms
23:36:33.696: ┣OBSBasic::ResetAudio: 0.103 ms
23:36:33.696: ┣OBSBasic::ResetVideo: 1043.04 ms
23:36:33.696: ┣OBSBasic::InitOBSCallbacks: 0.007 ms
23:36:33.696: ┣OBSBasic::InitHotkeys: 0.033 ms
23:36:33.696: ┣obs_load_all_modules: 44.76 ms
23:36:33.696: ┃ ┣obs_init_module(coreaudio-encoder.dll): 0.26 ms
23:36:33.696: ┃ ┣obs_init_module(enc-amf.dll): 0.25 ms
23:36:33.696: ┃ ┣obs_init_module(frontend-tools.dll): 1.04 ms
23:36:33.696: ┃ ┣obs_init_module(image-source.dll): 0.002 ms
23:36:33.696: ┃ ┣obs_init_module(obs-browser.dll): 0.04 ms
23:36:33.696: ┃ ┣obs_init_module(obs-ffmpeg.dll): 0.359 ms
23:36:33.696: ┃ ┣obs_init_module(obs-filters.dll): 0.005 ms
23:36:33.696: ┃ ┣obs_init_module(obs-outputs.dll): 0.002 ms
23:36:33.696: ┃ ┣obs_init_module(obs-qsv11.dll): 28.65 ms
23:36:33.696: ┃ ┣obs_init_module(obs-text.dll): 0.131 ms
23:36:33.696: ┃ ┣obs_init_module(obs-transitions.dll): 0.004 ms
23:36:33.696: ┃ ┣obs_init_module(obs-x264.dll): 0.001 ms
23:36:33.696: ┃ ┣obs_init_module(rtmp-services.dll): 0.152 ms
23:36:33.696: ┃ ┣obs_init_module(text-freetype2.dll): 0.018 ms
23:36:33.696: ┃ ┣obs_init_module(vlc-video.dll): 0.023 ms
23:36:33.696: ┃ ┣obs_init_module(win-capture.dll): 0.041 ms
23:36:33.696: ┃ ┣obs_init_module(win-decklink.dll): 0.417 ms
23:36:33.696: ┃ ┣obs_init_module(win-dshow.dll): 0.602 ms
23:36:33.696: ┃ ┣obs_init_module(win-mf.dll): 1.024 ms
23:36:33.696: ┃ ┣obs_init_module(win-wasapi.dll): 0.003 ms
23:36:33.696: ┃ ┗reset_win32_symbol_paths: 0.084 ms
23:36:33.696: ┣OBSBasic::ResetOutputs: 0.339 ms
23:36:33.696: ┣OBSBasic::CreateHotkeys: 0.17 ms
23:36:33.696: ┣OBSBasic::InitService: 0.063 ms
23:36:33.696: ┣OBSBasic::InitPrimitives: 0.175 ms
23:36:33.696: â”—OBSBasic::Load: 1966.35Â ms
23:36:33.696: obs_hotkey_thread(25Â ms): min=0.001Â ms, median=0.003Â ms, max=1.398Â ms, 99th percentile=0.073Â ms, 100% below 25Â ms
23:36:33.696: audio_thread(Audio): min=0Â ms, median=0.819Â ms, max=22.401Â ms, 99th percentile=5.758Â ms
23:36:33.696: â”—receive_audio: min=0.001Â ms, median=0.862Â ms, max=20.477Â ms, 99th percentile=6.259Â ms, 0.803311 calls per parent call
23:36:33.696: ┣buffer_audio: min=0.001 ms, median=0.001 ms, max=1.029 ms, 99th percentile=0.003 ms
23:36:33.696: â”—do_encode: min=0.014Â ms, median=0.857Â ms, max=20.473Â ms, 99th percentile=6.227Â ms
23:36:33.696: â”—encode(Track1): min=0.011Â ms, median=0.847Â ms, max=20.465Â ms, 99th percentile=6.219Â ms
23:36:33.696: obs_video_thread(33.3333Â ms): min=0.327Â ms, median=0.735Â ms, max=1937.7Â ms, 99th percentile=2.256Â ms, 99.9794% below 33.333Â ms
23:36:33.696: ┣tick_sources: min=0 ms, median=0.011 ms, max=1935.6 ms, 99th percentile=0.147 ms
23:36:33.696: ┣render_displays: min=0.001 ms, median=0.404 ms, max=16.924 ms, 99th percentile=1.373 ms
23:36:33.696: â”—output_frame: min=0.197Â ms, median=0.304Â ms, max=12.349Â ms, 99th percentile=1.053Â ms
23:36:33.696: ┣gs_context(video->graphics): min=0.065 ms, median=0.118 ms, max=7.993 ms, 99th percentile=0.732 ms
23:36:33.696: ┃ ┣render_video: min=0.018 ms, median=0.045 ms, max=1.132 ms, 99th percentile=0.151 ms
23:36:33.696: ┃ ┃ ┣render_main_texture: min=0.003 ms, median=0.026 ms, max=1.101 ms, 99th percentile=0.094 ms
23:36:33.696: ┃ ┃ ┣render_output_texture: min=0.002 ms, median=0.006 ms, max=0.343 ms, 99th percentile=0.022 ms
23:36:33.696: ┃ ┃ ┣render_convert_texture: min=0.001 ms, median=0.008 ms, max=0.367 ms, 99th percentile=0.028 ms
23:36:33.696: ┃ ┃ ┗stage_output_texture: min=0 ms, median=0.002 ms, max=0.127 ms, 99th percentile=0.004 ms
23:36:33.696: ┃ ┣download_frame: min=0 ms, median=0.002 ms, max=1.42 ms, 99th percentile=0.003 ms
23:36:33.696: ┃ ┗gs_flush: min=0.03 ms, median=0.068 ms, max=7.905 ms, 99th percentile=0.554 ms
23:36:33.696: â”—output_video_data: min=0.124Â ms, median=0.179Â ms, max=4.352Â ms, 99th percentile=0.476Â ms
23:36:33.696: video_thread(video): min=0Â ms, median=0.623Â ms, max=37.572Â ms, 99th percentile=1.335Â ms
23:36:33.696: â”—receive_video: min=0Â ms, median=0.655Â ms, max=37.57Â ms, 99th percentile=1.39Â ms, 0.83419 calls per parent call
23:36:33.696: â”—do_encode: min=0.415Â ms, median=0.655Â ms, max=37.57Â ms, 99th percentile=1.39Â ms
23:36:33.696: â”—encode(streaming_h264): min=0.408Â ms, median=0.637Â ms, max=37.553Â ms, 99th percentile=1.357Â ms
23:36:33.696: =================================================
23:36:33.696: == Profiler Time Between Calls ==================
23:36:33.696: obs_hotkey_thread(25 ms): min=24.039 ms, median=25.001 ms, max=30.386 ms, 98.5323% within ±2% of 25 ms (0.603883% lower, 0.863782% higher)
23:36:33.696: obs_video_thread(33.3333 ms): min=10.358 ms, median=33.333 ms, max=1937.71 ms, 99.0848% within ±2% of 33.333 ms (0.452442% lower, 0.462725% higher)
23:36:33.696: =================================================
23:36:33.763: Number of memory leaks: 9
 
Last edited:

bmilitant

New Member
here is a log file from a short stream I did today with no issues:

13:13:28.151: CPU Name: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
13:13:28.151: CPU Speed: 4000MHz
13:13:28.151: Physical Cores: 4, Logical Cores: 8
13:13:28.151: Physical Memory: 8140MB Total, 4372MB Free
13:13:28.151: Windows Version: 6.1 Build 7601 (revision: 19160; 64-bit)
13:13:28.151: Running as administrator: false
13:13:28.151: Aero is Enabled
13:13:28.151: Portable mode: false
13:13:28.163: OBS 17.0.0 (64bit, windows)
13:13:28.163: ---------------------------------
13:13:28.163: ---------------------------------
13:13:28.163: audio settings reset:
13:13:28.163: samples per sec: 44100
13:13:28.163: speakers: 2
13:13:28.164: ---------------------------------
13:13:28.164: Initializing D3D11..
13:13:28.164: Available Video Adapters:
13:13:28.170: Adapter 1: NVIDIA GeForce GTX 980
13:13:28.170: Dedicated VRAM: 4203413504
13:13:28.170: Shared VRAM: 3999592448
13:13:28.170: output 1: pos={0, 0}, size={1920, 1080}, attached=true
13:13:28.192: Loading up D3D11 on adapter NVIDIA GeForce GTX 980 (0)
13:13:28.586: D3D11 loaded sucessfully, feature level used: 45056
13:13:29.272: ---------------------------------
13:13:29.272: video settings reset:
13:13:29.272: base resolution: 1920x1080
13:13:29.272: output resolution: 1280x720
13:13:29.272: downscale filter: Bicubic
13:13:29.272: fps: 30/1
13:13:29.272: format: NV12
13:13:29.273: ---------------------------------
13:13:29.274: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
13:13:29.274: [AMF Encoder] Unable to load 'amfrt64.dll', error code 126.
13:13:29.274: [AMF Encoder] Íable to load 'amfrt64.dll', error code 126.
13:13:29.280: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libcef.dll' not found, loading of module failed
13:13:29.280: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libEGL.dll' not found, loading of module failed
13:13:29.281: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libGLESv2.dll' not found, loading of module failed
13:13:29.281: Failed to load 'en-US' text for module: 'obs-browser.dll'
13:13:29.281: [browser_source: 'Version: 1.27.0']
13:13:29.282: NVENC supported
13:13:29.315: Couldn't find VLC installation, VLC video source disabled
13:13:29.316: No blackmagic support
13:13:29.317: [Media Foundation encoder]: plugin is disabled for performance reasons on Windows versions prior to 8
13:13:29.318: ---------------------------------
13:13:29.318: Loaded Modules:
13:13:29.318: win-wasapi.dll
13:13:29.318: win-mf.dll
13:13:29.318: win-dshow.dll
13:13:29.318: win-decklink.dll
13:13:29.318: win-capture.dll
13:13:29.318: vlc-video.dll
13:13:29.318: text-freetype2.dll
13:13:29.318: rtmp-services.dll
13:13:29.318: obs-x264.dll
13:13:29.318: obs-transitions.dll
13:13:29.318: obs-text.dll
13:13:29.318: obs-qsv11.dll
13:13:29.318: obs-outputs.dll
13:13:29.318: obs-filters.dll
13:13:29.318: obs-ffmpeg.dll
13:13:29.318: obs-browser.dll
13:13:29.318: image-source.dll
13:13:29.318: frontend-tools.dll
13:13:29.318: enc-amf.dll
13:13:29.318: coreaudio-encoder.dll
13:13:29.318: ==== Startup complete ===============================================
13:13:29.319: All scene data cleared
13:13:29.319: ------------------------------------------------
13:13:29.335: WASAPI: Device 'Speakers (Realtek High Definition Audio)' initialized
13:13:29.336: [WASAPISource::TryInitialize]:[Headset Microphone (ASTRO Wireless Transmitter )] Failed to activate client context: 88890004
13:13:29.336: [WASAPISource::WASAPISource] Device '{0.0.1.00000000}.{8a39e74f-1d2c-451a-9bdc-048073af7dac}' not found. Waiting for device
13:13:29.378: adding 46 milliseconds of audio buffering, total audio buffering is now 46 milliseconds
13:13:30.871: Video Capture Device: data.GetDevice failed
13:13:30.871: Video Capture Device: Video configuration failed
13:13:32.813: warning: Stream #0: not enough frames to estimate rate; consider increasing probesize
13:13:32.842: Logitec Cam: data.GetDevice failed
13:13:32.842: Logitec Cam: Video configuration failed
13:13:32.953: Switched to scene 'Twitch1'
13:13:33.003: ------------------------------------------------
13:13:33.003: Loaded scenes:
13:13:33.003: - scene 'Twitch1':
13:13:33.003: - source: 'Overlay' (image_source)
13:13:33.003: - source: 'Miscreated' (game_capture)
13:13:33.003: - source: 'Video Capture Device' (dshow_input)
13:13:33.003: - source: 'Desktop capture' (monitor_capture)
13:13:33.003: - source: 'OVERLAY 2' (image_source)
13:13:33.003: - source: 'Logitec Cam' (dshow_input)
13:13:33.003: - source: 'twitch Alerts 1 ' (browser_source)
13:13:33.003: - source: 'JAR' (browser_source)
13:13:33.003: ------------------------------------------------
13:13:41.406: ---------------------------------
13:13:41.426: [x264 encoder: 'streaming_h264'] preset: veryfast
13:13:41.469: [x264 encoder: 'streaming_h264'] settings:
13:13:41.469: rate_control: CBR
13:13:41.469: bitrate: 2900
13:13:41.469: buffer size: 2900
13:13:41.469: crf: 0
13:13:41.469: fps_num: 30
13:13:41.469: fps_den: 1
13:13:41.469: width: 1280
13:13:41.469: height: 720
13:13:41.469: keyint: 60
13:13:41.469: vfr: off
13:13:41.469:
13:13:41.469: [x264 encoder: 'streaming_h264'] custom settings: opencl=true scenecut=0
13:13:41.678: ---------------------------------
13:13:41.678: [FFmpeg aac encoder: 'Track1'] bitrate: 160, channels: 2
13:13:41.848: [rtmp stream: 'adv_stream'] Connecting to RTMP URL rtmp://live-jfk.twitch.tv/app...
13:13:41.891: [rtmp stream: 'adv_stream'] Interface: Killer e2200 Gigabit Ethernet Controller (ethernet, 100 mbps)
13:13:43.052: [rtmp stream: 'adv_stream'] Connection to rtmp://live-jfk.twitch.tv/app successful
13:13:43.053: ==== Streaming Start ===============================================
13:15:05.239: adding 92 milliseconds of audio buffering, total audio buffering is now 139 milliseconds
13:15:12.507: [game-capture: 'Miscreated'] attempting to hook fullscreen process: Miscreated.exe
13:15:12.509: [game-capture: 'Miscreated'] using helper (compatibility hook)
13:15:12.552: [game-capture: 'Miscreated'] hook not loaded yet, retrying..
13:15:15.541: [game-capture: 'Miscreated'] attempting to hook fullscreen process: Miscreated.exe
13:15:15.569: [game-capture: 'Miscreated'] d3d11 shared texture capture successful
13:15:15.574: [game-capture: 'Miscreated'] shared texture capture successful
13:15:44.440: [game-capture: 'Miscreated'] ----------------- d3d11 capture freed ----------------
13:15:44.468: [game-capture: 'Miscreated'] d3d11 shared texture capture successful
13:15:44.475: [game-capture: 'Miscreated'] shared texture capture successful
13:15:51.705: [game-capture: 'Miscreated'] ----------------- d3d11 capture freed ----------------
13:15:51.748: [game-capture: 'Miscreated'] d3d11 shared texture capture successful
13:15:51.774: [game-capture: 'Miscreated'] shared texture capture successful
13:16:09.581: [game-capture: 'Miscreated'] ----------------- d3d11 capture freed ----------------
13:16:09.621: [game-capture: 'Miscreated'] d3d11 shared texture capture successful
13:16:09.693: [game-capture: 'Miscreated'] shared texture capture successful
13:16:37.480: [game-capture: 'Miscreated'] ----------------- d3d11 capture freed ----------------
13:16:37.517: [game-capture: 'Miscreated'] d3d11 shared texture capture successful
13:16:37.542: [game-capture: 'Miscreated'] shared texture capture successful
13:17:02.234: [game-capture: 'Miscreated'] ----------------- d3d11 capture freed ----------------
13:17:02.265: [game-capture: 'Miscreated'] d3d11 shared texture capture successful
13:17:02.275: [game-capture: 'Miscreated'] shared texture capture successful
13:18:30.745: [game-capture: 'Miscreated'] ----------------- d3d11 capture freed ----------------
13:18:30.792: [game-capture: 'Miscreated'] d3d11 shared texture capture successful
13:18:30.809: [game-capture: 'Miscreated'] shared texture capture successful
13:18:59.639: [game-capture: 'Miscreated'] ----------------- d3d11 capture freed ----------------
13:18:59.675: [game-capture: 'Miscreated'] d3d11 shared texture capture successful
13:18:59.677: [game-capture: 'Miscreated'] shared texture capture successful
13:19:29.251: [rtmp stream: 'adv_stream'] User stopped the stream
13:19:29.251: Output 'adv_stream': stopping
13:19:29.251: Output 'adv_stream': Total encoded frames: 10423
13:19:29.251: Output 'adv_stream': Total drawn frames: 10423
13:19:29.251: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 54 (0.5%)
13:19:29.454: warning: 2 frames left in the queue on closing
13:19:29.525: [game-capture: 'Miscreated'] ----------------- d3d11 capture freed ----------------
13:19:29.542: ==== Streaming Stop ================================================
13:19:29.567: [game-capture: 'Miscreated'] d3d11 shared texture capture successful
13:19:29.577: [game-capture: 'Miscreated'] shared texture capture successful
13:19:34.277: [game-capture: 'Miscreated'] capture window no longer exists, terminating capture
13:19:34.440: [game-capture: 'Miscreated'] capture stopped
 
Top