Question / Help Works, but it's not smooth

Zimmyantz

New Member
Hi OBS Gurus,
I have a 2 PC streaming setup, I run OBS in NVENC mode on my gaming machine and RTMP across the network at very high bit rate and then add it to my OBS on the streaming machine as an RTMP Media Source, which then uploads using x264 to Twitch at normal bitrate and does all the churning.
All games have been fine, PUBG, Scum, Arma, but Black Ops 4 stutters a bit (example link below):
https://www.twitch.tv/videos/322665383

I went to the log (below) and the only thing I can see is a memory leak reported, could that be causing it, or can a guru see something else in the streaming pc log below?

Many thanks in advance,
Zim

17:55:44.916: CPU Name: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
17:55:44.917: CPU Speed: 3400MHz
17:55:44.917: Physical Cores: 4, Logical Cores: 4
17:55:44.917: Physical Memory: 16263MB Total, 9637MB Free
17:55:44.917: Windows Version: 10.0 Build 17134 (revision: 285; 64-bit)
17:55:44.917: Running as administrator: true
17:55:44.917: Aero is Enabled (Aero is always on for windows 8 and above)
17:55:44.918: Windows 10 Gaming Features:
17:55:44.918: Game DVR: On
17:55:44.923: Sec. Software Status:
17:55:44.924: Avast Antivirus: enabled (AV)
17:55:44.924: Windows Defender Antivirus: disabled (AV)
17:55:44.924: Windows Firewall: enabled (FW)
17:55:44.925: Windows Defender Antivirus: disabled (ASW)
17:55:44.925: Avast Antivirus: enabled (ASW)
17:55:44.927: Portable mode: false
17:55:45.055: OBS 21.1.0 (64bit, windows)
17:55:45.055: ---------------------------------
17:55:45.056: ---------------------------------
17:55:45.056: audio settings reset:
17:55:45.056: samples per sec: 44100
17:55:45.056: speakers: 2
17:55:45.061: ---------------------------------
17:55:45.061: Initializing D3D11...
17:55:45.061: Available Video Adapters:
17:55:45.063: Adapter 1: Intel(R) HD Graphics 4000
17:55:45.063: Dedicated VRAM: 33554432
17:55:45.063: Shared VRAM: 1845493760
17:55:45.063: output 1: pos={0, 0}, size={1920, 1080}, attached=true
17:55:45.070: Loading up D3D11 on adapter Intel(R) HD Graphics 4000 (0)
17:55:45.084: D3D11 loaded successfully, feature level used: 45056
17:55:45.707: ---------------------------------
17:55:45.707: video settings reset:
17:55:45.707: base resolution: 1920x1080
17:55:45.707: output resolution: 1280x720
17:55:45.707: downscale filter: Bicubic
17:55:45.707: fps: 60/1
17:55:45.707: format: NV12
17:55:45.707: YUV mode: 601/Full
17:55:45.708: Audio monitoring device:
17:55:45.708: name: Default
17:55:45.708: id: default
17:55:45.709: ---------------------------------
17:55:45.739: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/chrome_elf.dll' not found, loading of module failed
17:55:45.741: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
17:55:45.806: [AMF] AMF Test failed due to one or more errors.
17:55:45.806: Failed to initialize module 'enc-amf.dll'
17:55:45.891: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libcef.dll' not found, loading of module failed
17:55:45.893: LoadLibrary failed for '../../obs-plugins/64bit/libEGL.dll': The specified procedure could not be found.
17:55:45.893: (127)
17:55:45.893: Module '../../obs-plugins/64bit/libEGL.dll' not loaded
17:55:45.903: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libGLESv2.dll' not found, loading of module failed
17:55:45.916: [browser_source: 'Version: 1.31.0']
17:55:45.955: LoadLibrary failed for 'nvEncodeAPI64.dll': The specified module could not be found.
17:55:45.955: (126)
17:55:45.965: [obs-ndi] hello ! (version 4.1.3)
17:55:45.965: [obs-ndi] Trying 'C:\Program Files\NewTek\NewTek NDI Redist\v3'
17:55:45.965: [obs-ndi] Found NDI library at 'C:/Program Files/NewTek/NewTek NDI Redist/v3/Processing.NDI.Lib.x64.dll'
17:55:45.984: [obs-ndi] NDI runtime loaded successfully
17:55:45.991: [obs-ndi] NDI library initialized successfully
17:55:46.071: Couldn't find VLC installation, VLC video source disabled
17:55:46.080: No blackmagic support
17:55:46.118: ---------------------------------
17:55:46.118: Loaded Modules:
17:55:46.118: win-wasapi.dll
17:55:46.118: win-mf.dll
17:55:46.118: win-dshow.dll
17:55:46.118: win-decklink.dll
17:55:46.118: win-capture.dll
17:55:46.118: vlc-video.dll
17:55:46.118: text-freetype2.dll
17:55:46.118: rtmp-services.dll
17:55:46.118: obs-x264.dll
17:55:46.118: obs-vst.dll
17:55:46.118: obs-transitions.dll
17:55:46.118: obs-text.dll
17:55:46.118: obs-qsv11.dll
17:55:46.118: obs-outputs.dll
17:55:46.118: obs-ndi.dll
17:55:46.118: obs-filters.dll
17:55:46.118: obs-ffmpeg.dll
17:55:46.118: obs-browser.dll
17:55:46.118: image-source.dll
17:55:46.118: frontend-tools.dll
17:55:46.118: enc-amf.dll
17:55:46.118: coreaudio-encoder.dll
17:55:46.118: advanced-scene-switcher.dll
17:55:46.118: ---------------------------------
17:55:46.118: ==== Startup complete ===============================================
17:55:46.124: All scene data cleared
17:55:46.124: ------------------------------------------------
17:55:46.134: [WASAPISource::WASAPISource] Device '{0.0.0.00000000}.{7109d8db-cd87-44ef-9c4c-be29aec4354b}' not found. Waiting for device
17:55:46.389: [WASAPISource::WASAPISource] Device '{0.0.1.00000000}.{920cace2-a7ed-41fe-a727-4963d3368603}' not found. Waiting for device
17:55:46.565: [Media Source 'Ant PC']: settings:
17:55:46.565: input: rtmp://192.168.0.99/live/test
17:55:46.565: input_format: rtmp
17:55:46.565: speed: 100
17:55:46.565: is_looping: no
17:55:46.565: is_hw_decoding: yes
17:55:46.565: is_clear_on_media_end: yes
17:55:46.565: restart_on_activate: yes
17:55:46.565: close_when_inactive: yes
17:55:46.889: Switched to scene 'Ant Solo Stream'
17:55:46.890: MP: Unable to find input format for 'rtmp://192.168.0.99/live/test'
17:55:46.890: ------------------------------------------------
17:55:46.890: Loaded scenes:
17:55:46.890: - scene 'Ant Solo Stream':
17:55:46.890: - source: 'Ant PC' (ffmpeg_source)
17:55:46.890: - monitoring: monitor and output
17:55:46.890: - filter: 'Color Key' (color_key_filter)
17:55:46.890: - source: 'Image Slide Show' (slideshow)
17:55:46.890: - source: 'Social Background' (image_source)
17:55:46.890: - filter: 'Color Correction' (color_filter)
17:55:46.890: - source: 'Last Follower' (text_gdiplus)
17:55:46.890: - source: 'Last Donator' (text_gdiplus)
17:55:46.890: - source: 'Webcam Box' (image_source)
17:55:46.890: ------------------------------------------------
17:56:02.490: adding 23 milliseconds of audio buffering, total audio buffering is now 23 milliseconds
17:56:06.014: adding 464 milliseconds of audio buffering, total audio buffering is now 487 milliseconds
21:45:48.668: ---------------------------------
21:45:48.668: [x264 encoder: 'streaming_h264'] preset: veryfast
21:45:48.670: [x264 encoder: 'streaming_h264'] settings:
21:45:48.670: rate_control: CBR
21:45:48.670: bitrate: 7000
21:45:48.670: buffer size: 7000
21:45:48.670: crf: 0
21:45:48.670: fps_num: 60
21:45:48.670: fps_den: 1
21:45:48.670: width: 1280
21:45:48.670: height: 720
21:45:48.670: keyint: 60
21:45:48.670:
21:45:48.681: ---------------------------------
21:45:48.681: [FFmpeg aac encoder: 'Track1'] bitrate: 128, channels: 2, channel_layout: 3
21:45:48.681:
21:45:48.686: [rtmp stream: 'adv_stream'] Connecting to RTMP URL rtmp://eu-london.restream.io/live...
21:45:48.732: [rtmp stream: 'adv_stream'] Interface: Realtek PCIe GBE Family Controller (ethernet, 1000 mbps)
21:45:49.137: [rtmp stream: 'adv_stream'] Connection to rtmp://eu-london.restream.io/live successful
21:45:49.147: ==== Streaming Start ===============================================
00:33:54.360: [rtmp stream: 'adv_stream'] User stopped the stream
00:33:54.360: Output 'adv_stream': stopping
00:33:54.360: Output 'adv_stream': Total frames output: 604838 (605083 attempted)
00:33:54.360: Output 'adv_stream': Total drawn frames: 605132 (605141 attempted)
00:33:54.360: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 9 (0.0%)
00:33:54.360: Output 'adv_stream': Number of dropped frames due to insufficient bandwidth/connection stalls: 245 (0.0%)
00:33:54.369: ==== Streaming Stop ================================================
00:33:55.579: ==== Shutting down ==================================================
00:33:55.586: Switched to scene '(null)'
00:33:55.722: All scene data cleared
00:33:55.722: ------------------------------------------------
00:33:55.796: Freeing OBS context data
00:33:55.805: [obs-ndi] goodbye !
00:33:55.877: [Scripting] Total detached callbacks: 0
00:33:55.909: == Profiler Results =============================
00:33:55.909: run_program_init: 2729.07 ms
00:33:55.909: ┣OBSApp::AppInit: 26.439 ms
00:33:55.909: ┃ ┗OBSApp::InitLocale: 3.867 ms
00:33:55.909: ┗OBSApp::OBSInit: 2541.04 ms
00:33:55.909: ┣obs_startup: 11.298 ms
00:33:55.909: ┗OBSBasic::OBSInit: 1913.36 ms
00:33:55.909: ┣OBSBasic::InitBasicConfig: 0.723 ms
00:33:55.909: ┣OBSBasic::ResetAudio: 0.566 ms
00:33:55.909: ┣OBSBasic::ResetVideo: 652.14 ms
00:33:55.909: ┣OBSBasic::InitOBSCallbacks: 0.011 ms
00:33:55.909: ┣OBSBasic::InitHotkeys: 0.291 ms
00:33:55.909: ┣obs_load_all_modules: 408.826 ms
00:33:55.909: ┃ ┣obs_init_module(advanced-scene-switcher.dll): 2.134 ms
00:33:55.909: ┃ ┣obs_init_module(coreaudio-encoder.dll): 0.584 ms
00:33:55.909: ┃ ┣obs_init_module(enc-amf.dll): 57.289 ms
00:33:55.909: ┃ ┣obs_init_module(frontend-tools.dll): 6.724 ms
00:33:55.909: ┃ ┣obs_init_module(image-source.dll): 0.006 ms
00:33:55.909: ┃ ┣obs_init_module(obs-browser.dll): 0.769 ms
00:33:55.909: ┃ ┣obs_init_module(obs-ffmpeg.dll): 17.413 ms
00:33:55.909: ┃ ┃ ┗nvenc_check: 17.393 ms
00:33:55.909: ┃ ┣obs_init_module(obs-filters.dll): 0.018 ms
00:33:55.909: ┃ ┣obs_init_module(obs-ndi.dll): 40.743 ms
00:33:55.909: ┃ ┣obs_init_module(obs-outputs.dll): 0.015 ms
00:33:55.909: ┃ ┣obs_init_module(obs-qsv11.dll): 29.285 ms
00:33:55.909: ┃ ┣obs_init_module(obs-text.dll): 0.233 ms
00:33:55.909: ┃ ┣obs_init_module(obs-transitions.dll): 0.006 ms
00:33:55.909: ┃ ┣obs_init_module(obs-vst.dll): 0.004 ms
00:33:55.909: ┃ ┣obs_init_module(obs-x264.dll): 0.003 ms
00:33:55.909: ┃ ┣obs_init_module(rtmp-services.dll): 0.608 ms
00:33:55.909: ┃ ┣obs_init_module(text-freetype2.dll): 0.224 ms
00:33:55.909: ┃ ┣obs_init_module(vlc-video.dll): 0.047 ms
00:33:55.909: ┃ ┣obs_init_module(win-capture.dll): 0.209 ms
00:33:55.909: ┃ ┣obs_init_module(win-decklink.dll): 3.319 ms
00:33:55.909: ┃ ┣obs_init_module(win-dshow.dll): 19.812 ms
00:33:55.909: ┃ ┣obs_init_module(win-mf.dll): 0 ms
00:33:55.909: ┃ ┣obs_init_module(win-wasapi.dll): 0.008 ms
00:33:55.909: ┃ ┗reset_win32_symbol_paths: 0.832 ms
00:33:55.910: ┣OBSBasic::ResetOutputs: 0.452 ms
00:33:55.910: ┣OBSBasic::CreateHotkeys: 0.026 ms
00:33:55.910: ┣OBSBasic::InitService: 3.096 ms
00:33:55.910: ┣OBSBasic::InitPrimitives: 0.24 ms
00:33:55.910: ┗OBSBasic::Load: 769.953 ms
00:33:55.910: obs_hotkey_thread(25 ms): min=0.003 ms, median=0.01 ms, max=70.876 ms, 99th percentile=0.153 ms, 99.9982% below 25 ms
00:33:55.910: audio_thread(Audio): min=0 ms, median=0.279 ms, max=59.215 ms, 99th percentile=2.192 ms
00:33:55.910: ┗receive_audio: min=0.002 ms, median=0.406 ms, max=14.579 ms, 99th percentile=1.903 ms, 0.434268 calls per parent call
00:33:55.910: ┣buffer_audio: min=0 ms, median=0.002 ms, max=2.971 ms, 99th percentile=0.006 ms
00:33:55.910: ┗do_encode: min=0.087 ms, median=0.398 ms, max=14.569 ms, 99th percentile=1.884 ms
00:33:55.910: ┗encode(Track1): min=0.079 ms, median=0.362 ms, max=9.842 ms, 99th percentile=1.752 ms
00:33:55.910: obs_graphics_thread(16.6667 ms): min=0.382 ms, median=2.132 ms, max=489.722 ms, 99th percentile=15.452 ms, 99.1911% below 16.667 ms
00:33:55.910: ┣tick_sources: min=0.002 ms, median=0.019 ms, max=488.475 ms, 99th percentile=0.441 ms
00:33:55.910: ┣output_frame: min=0.376 ms, median=1.514 ms, max=73.166 ms, 99th percentile=13.045 ms
00:33:55.910: ┃ ┣gs_context(video->graphics): min=0.18 ms, median=1.202 ms, max=72.753 ms, 99th percentile=11.82 ms
00:33:55.910: ┃ ┃ ┣render_video: min=0.037 ms, median=1.077 ms, max=72.583 ms, 99th percentile=6.491 ms
00:33:55.910: ┃ ┃ ┃ ┣render_main_texture: min=0.012 ms, median=1.028 ms, max=72.536 ms, 99th percentile=6.185 ms
00:33:55.910: ┃ ┃ ┃ ┣render_output_texture: min=0.005 ms, median=0.014 ms, max=37.702 ms, 99th percentile=0.047 ms
00:33:55.910: ┃ ┃ ┃ ┣render_convert_texture: min=0.001 ms, median=0.012 ms, max=35.341 ms, 99th percentile=0.038 ms
00:33:55.910: ┃ ┃ ┃ ┗stage_output_texture: min=0 ms, median=0.011 ms, max=32.633 ms, 99th percentile=0.045 ms
00:33:55.910: ┃ ┃ ┣download_frame: min=0 ms, median=0.006 ms, max=64.131 ms, 99th percentile=6.159 ms
00:33:55.910: ┃ ┃ ┗gs_flush: min=0.058 ms, median=0.109 ms, max=70.657 ms, 99th percentile=0.529 ms
00:33:55.910: ┃ ┗output_video_data: min=0.152 ms, median=0.289 ms, max=63.189 ms, 99th percentile=2.053 ms
00:33:55.910: ┗render_displays: min=0 ms, median=0.523 ms, max=78.086 ms, 99th percentile=4.681 ms
00:33:55.910: video_thread(video): min=0 ms, median=0.005 ms, max=41.08 ms, 99th percentile=2.886 ms
00:33:55.910: ┗receive_video: min=0 ms, median=1.854 ms, max=19.889 ms, 99th percentile=3.174 ms, 0.423503 calls per parent call
00:33:55.910: ┗do_encode: min=0.682 ms, median=1.853 ms, max=19.888 ms, 99th percentile=3.172 ms
00:33:55.910: ┗encode(streaming_h264): min=0.671 ms, median=1.8 ms, max=19.86 ms, 99th percentile=3.061 ms
00:33:55.910: =================================================
00:33:55.910: == Profiler Time Between Calls ==================
00:33:55.910: obs_hotkey_thread(25 ms): min=19.747 ms, median=25.975 ms, max=120.379 ms, 24.8254% within ±2% of 25 ms (0.19529% lower, 74.9793% higher)
00:33:55.911: obs_graphics_thread(16.6667 ms): min=1.572 ms, median=16.667 ms, max=489.729 ms, 80.9887% within ±2% of 16.667 ms (10.3566% lower, 8.65469% higher)
00:33:55.911: =================================================
00:33:56.829: Number of memory leaks: 1
 

koala

Active Member
According to the log you posted, the stream in that log was fine. If you have problems, they are probably generated upstream on the device you use for creating the stream you re-broadcast with your "Ant PC" source, and the stream read by the source on the streaming PC already contained the errors. This assumption is made according to the GIGO saying (garbage in, garbage out).
 

Zimmyantz

New Member
According to the log you posted, the stream in that log was fine. If you have problems, they are probably generated upstream on the device you use for creating the stream you re-broadcast with your "Ant PC" source, and the stream read by the source on the streaming PC already contained the errors. This assumption is made according to the GIGO saying (garbage in, garbage out).
Thanks Koala, exactly the response I was looking for, I will take a look at the source log and if I'm struggling spotting anything, I'm coming back to you!
 

Zimmyantz

New Member
OK Koala,
Nothing is jumping out at me, here is the log (Apologies in advance, one of the reaction popups I use has swear words in the filename).
Other thing to note, I run two 970's in SLI on the gaming machine:
 

Attachments

  • 2018-10-12 17-48-42.txt
    23.7 KB · Views: 11

Zimmyantz

New Member
Cheers Koala, you've been more than helpful!
Damn SLI causes me nothing but grief, think I'm going to buy a 2080Ti when they are more available.
 
Top