Stream pauses and creates a 7 - 10 second lag

FitPod25

New Member
Hi All,

I use OBS to stream from a windows PC over a local ethernet connected network, to only 20 devices. Everything works fast and fine 95% of the time but every now and then the stream pauses and thereafter there is a 7 - 10 second lag, which is very noticeable and frustratingly distracting.

Below, and attached, is a copy of the relevant log file. The fault occurred approximately 12:45. I would be very grateful if anyone could highlight any causes of this error.

06:22:30.357: CPU Name: Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz
06:22:30.357: CPU Speed: 3000MHz
06:22:30.357: Physical Cores: 8, Logical Cores: 8
06:22:30.357: Physical Memory: 7997MB Total, 4029MB Free
06:22:30.357: Windows Version: 10.0 Build 19042 (release: 2009; revision: 1055; 64-bit)
06:22:30.357: Running as administrator: true
06:22:30.357: Aero is Enabled (Aero is always on for windows 8 and above)
06:22:30.358: Windows 10 Gaming Features:
06:22:30.358: Game DVR: On
06:22:30.358: Hardware GPU Scheduler: On
06:22:30.359: Sec. Software Status:
06:22:30.359: AVG Antivirus: enabled (AV)
06:22:30.359: Microsoft Defender Antivirus: disabled (AV)
06:22:30.360: Windows Firewall: enabled (FW)
06:22:30.360: Current Date/Time: 2021-06-16, 06:22:30
06:22:30.360: Browser Hardware Acceleration: true
06:22:30.360: Portable mode: false
06:22:30.528: OBS 27.0.1 (64-bit, windows)
06:22:30.528: ---------------------------------
06:22:30.529: ---------------------------------
06:22:30.529: audio settings reset:
06:22:30.529: samples per sec: 48000
06:22:30.529: speakers: 2
06:22:30.530: ---------------------------------
06:22:30.530: Initializing D3D11...
06:22:30.530: Available Video Adapters:
06:22:30.532: Adapter 0: NVIDIA GeForce GTX 1660 Ti
06:22:30.532: Dedicated VRAM: 1987051520
06:22:30.532: Shared VRAM: 4192894976
06:22:30.532: PCI ID: 10de:2182
06:22:30.532: Driver Version: 27.21.14.6677
06:22:30.532: output 0: pos={0, 0}, size={3840, 2160}, attached=true, refresh=30, name=AAA
06:22:30.532: Adapter 1: Intel(R) UHD Graphics 630
06:22:30.532: Dedicated VRAM: 134217728
06:22:30.532: Shared VRAM: 4192894976
06:22:30.532: PCI ID: 8086:3e98
06:22:30.532: Driver Version: 27.20.100.8854
06:22:30.534: Loading up D3D11 on adapter NVIDIA GeForce GTX 1660 Ti (0)
06:22:30.611: D3D11 loaded successfully, feature level used: b000
06:22:30.611: DXGI increase maximum frame latency success
06:22:30.612: D3D11 GPU priority setup success
06:22:30.941: ---------------------------------
06:22:30.941: video settings reset:
06:22:30.941: base resolution: 1920x1080
06:22:30.941: output resolution: 1920x1080
06:22:30.941: downscale filter: Lanczos
06:22:30.941: fps: 60/1
06:22:30.941: format: NV12
06:22:30.941: YUV mode: 709/Partial
06:22:30.941: NV12 texture support enabled
06:22:30.942: Audio monitoring device:
06:22:30.942: name: AAA (NVIDIA High Definition Audio)
06:22:30.942: id: {0.0.0.00000000}.{ae49dc04-22c7-4d30-88a8-0def4f3927e3}
06:22:30.944: ---------------------------------
06:22:30.944: Skipping module '../../obs-plugins/64bit/chrome_elf.dll', not an OBS plugin
06:22:30.947: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
06:22:30.947: Failed to load 'en-US' text for module: 'decklink-captions.dll'
06:22:30.948: Failed to load 'en-US' text for module: 'decklink-ouput-ui.dll'
06:22:30.975: [AMF] Unable to load 'amfrt64.dll', error code 126.
06:22:30.977: [AMF] AMF Test failed due to one or more errors.
06:22:30.977: Failed to initialize module 'enc-amf.dll'
06:22:30.982: Skipping module '../../obs-plugins/64bit/libcef.dll', not an OBS plugin
06:22:30.987: Skipping module '../../obs-plugins/64bit/libEGL.dll', not an OBS plugin
06:22:30.988: Skipping module '../../obs-plugins/64bit/libGLESv2.dll', not an OBS plugin
06:22:30.991: [obs-browser]: Version 2.14.3
06:22:30.991: [obs-browser]: CEF Version 75.1.16+g16a67c4+chromium-75.0.3770.100
06:22:30.993: NVENC supported
06:22:30.994: [noise suppress: Nvidia RTX denoiser disabled, redistributable not found]
06:22:31.066: Couldn't find VLC installation, VLC video source disabled
06:22:31.070: [rtmp-services plugin] Remote update of URL "https://obsproject.com/obs2_update/rtmp-services/v3/package.json" failed: Could not resolve host: obsproject.com
06:22:31.072: A DeckLink iterator could not be created. The DeckLink drivers may not be installed
06:22:31.072: No blackmagic support
06:22:31.075: ---------------------------------
06:22:31.075: Loaded Modules:
06:22:31.075: win-wasapi.dll
06:22:31.075: win-mf.dll
06:22:31.075: win-dshow.dll
06:22:31.075: win-decklink.dll
06:22:31.075: win-capture.dll
06:22:31.075: vlc-video.dll
06:22:31.075: text-freetype2.dll
06:22:31.075: rtmp-services.dll
06:22:31.075: obs-x264.dll
06:22:31.075: obs-vst.dll
06:22:31.075: obs-transitions.dll
06:22:31.075: obs-text.dll
06:22:31.075: obs-qsv11.dll
06:22:31.075: obs-outputs.dll
06:22:31.075: obs-filters.dll
06:22:31.075: obs-ffmpeg.dll
06:22:31.075: obs-browser.dll
06:22:31.075: image-source.dll
06:22:31.075: frontend-tools.dll
06:22:31.075: enc-amf.dll
06:22:31.075: decklink-ouput-ui.dll
06:22:31.075: decklink-captions.dll
06:22:31.075: coreaudio-encoder.dll
06:22:31.075: ---------------------------------
06:22:31.076: ==== Startup complete ===============================================
06:22:31.079: All scene data cleared
06:22:31.079: ------------------------------------------------
06:22:31.140: WASAPI: Device 'Speakers (2- USB Audio Device)' [48000 Hz] initialized
06:22:31.140: [Loaded global audio device]: 'Desktop Audio'
06:22:31.140: [WASAPISource::WASAPISource] Device '{0.0.1.00000000}.{1ca41cc5-2b91-4cf8-a7fc-727d53b49063}' not found. Waiting for device
06:22:31.140: [Loaded global audio device]: 'Mic/Aux'
06:22:31.235: WASAPI: Device 'Microphone (2- USB Audio Device)' [48000 Hz] initialized
06:22:31.281: adding 42 milliseconds of audio buffering, total audio buffering is now 42 milliseconds (source: Trainers Headset)
06:22:31.281:
06:22:31.290: ---------------------------------
06:22:31.290: [DShow Device: 'Trainer Cam'] settings updated:
06:22:31.290: video device: c922 Pro Stream Webcam
06:22:31.290: video path: \\?\usb#vid_046d&pid_085c&mi_00#7&2d0b0798&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global
06:22:31.290: resolution: 640x480
06:22:31.290: flip: 0
06:22:31.290: fps: 30.00 (interval: 333333)
06:22:31.290: format: YUY2
06:22:31.363: [window-capture: 'Timer'] update settings:
06:22:31.363: executable: FitPodTimer.exe
06:22:31.363: method selected: Automatic
06:22:31.363: method chosen: BitBlt
06:22:31.363:
06:22:31.363: Switched to scene 'Intro'
06:22:31.364: ------------------------------------------------
06:22:31.364: Loaded scenes:
06:22:31.364: - scene 'Intro':
06:22:31.364: - source: 'Background' (image_source)
06:22:31.364: - scene 'Stream':
06:22:31.364: - source: 'White_BG' (image_source)
06:22:31.364: - source: 'Timer' (window_capture)
06:22:31.364: - source: 'Trainer Cam' (dshow_input)
06:22:31.364: - source: 'Trainers Headset' (wasapi_input_capture)
06:22:31.364: - scene 'Outro':
06:22:31.364: - source: 'Outro_Image' (image_source)
06:22:31.364: ------------------------------------------------
06:22:31.368: AutoUpdateThread::run: Failed to fetch manifest file: Could not resolve host: obsproject.com
06:22:31.438: WhatsNewInfoThread::run: Failed to fetch whatsnew file: Could not resolve host: obsproject.com
09:32:41.386: [jim-nvenc: 'streaming_h264'] settings:
09:32:41.386: rate_control: CBR
09:32:41.386: bitrate: 5750
09:32:41.386: cqp: 20
09:32:41.386: keyint: 60
09:32:41.386: preset: llhp
09:32:41.386: profile: high
09:32:41.386: width: 1920
09:32:41.386: height: 1080
09:32:41.386: 2-pass: false
09:32:41.386: b-frames: 2
09:32:41.386: lookahead: true
09:32:41.386: psycho_aq: true
09:32:41.386:
09:32:41.410: ---------------------------------
09:32:41.411: [FFmpeg aac encoder: 'adv_stream_aac'] bitrate: 128, channels: 2, channel_layout: 3
09:32:41.411:
09:32:41.412: [rtmp stream: 'adv_stream'] Connecting to RTMP URL rtmp://10.42.0.1/live...
09:32:41.415: [rtmp stream: 'adv_stream'] Interface: Killer E2400 Gigabit Ethernet Controller (ethernet, 1000 mbps)
09:32:41.470: [rtmp stream: 'adv_stream'] Connection to rtmp://10.42.0.1/live successful
09:32:41.473: ==== Streaming Start ===============================================
09:33:08.559: User switched to scene 'Stream'
09:33:08.561: A sprite cannot be drawn without a width/height
10:06:44.867: User switched to scene 'Intro'
10:06:50.212: [rtmp stream: 'adv_stream'] User stopped the stream
10:06:50.212: Output 'adv_stream': stopping
10:06:50.212: Output 'adv_stream': Total frames output: 122728
10:06:50.212: Output 'adv_stream': Total drawn frames: 122517 (122928 attempted)
10:06:50.212: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 411 (0.3%)
10:06:50.212: Video stopped, number of skipped frames due to encoding lag: 483/122923 (0.4%)
10:06:50.214: ==== Streaming Stop ================================================
10:06:50.284: warning: 2 frames left in the queue on closing
12:15:05.540: [jim-nvenc: 'streaming_h264'] settings:
12:15:05.540: rate_control: CBR
12:15:05.540: bitrate: 5750
12:15:05.540: cqp: 20
12:15:05.540: keyint: 60
12:15:05.540: preset: llhp
12:15:05.540: profile: high
12:15:05.540: width: 1920
12:15:05.540: height: 1080
12:15:05.540: 2-pass: false
12:15:05.540: b-frames: 2
12:15:05.540: lookahead: true
12:15:05.540: psycho_aq: true
12:15:05.540:
12:15:05.564: ---------------------------------
12:15:05.565: [FFmpeg aac encoder: 'adv_stream_aac'] bitrate: 128, channels: 2, channel_layout: 3
12:15:05.565:
12:15:05.566: [rtmp stream: 'adv_stream'] Connecting to RTMP URL rtmp://10.42.0.1/live...
12:15:05.566: [rtmp stream: 'adv_stream'] Interface: Killer E2400 Gigabit Ethernet Controller (ethernet, 1000 mbps)
12:15:05.611: [rtmp stream: 'adv_stream'] Connection to rtmp://10.42.0.1/live successful
12:15:05.615: ==== Streaming Start ===============================================
12:15:21.260: User switched to scene 'Stream'
12:16:12.695: [rtmp stream: 'adv_stream'] User stopped the stream
12:16:12.695: Output 'adv_stream': stopping
12:16:12.695: Output 'adv_stream': Total frames output: 4008
12:16:12.695: Output 'adv_stream': Total drawn frames: 4028
12:16:12.697: ==== Streaming Stop ================================================
12:16:12.773: warning: 2 frames left in the queue on closing
12:16:15.153: User switched to scene 'Intro'
12:32:01.720: [jim-nvenc: 'streaming_h264'] settings:
12:32:01.720: rate_control: CBR
12:32:01.720: bitrate: 5750
12:32:01.720: cqp: 20
12:32:01.720: keyint: 60
12:32:01.720: preset: llhp
12:32:01.720: profile: high
12:32:01.720: width: 1920
12:32:01.720: height: 1080
12:32:01.720: 2-pass: false
12:32:01.720: b-frames: 2
12:32:01.720: lookahead: true
12:32:01.720: psycho_aq: true
12:32:01.720:
12:32:01.739: ---------------------------------
12:32:01.739: [FFmpeg aac encoder: 'adv_stream_aac'] bitrate: 128, channels: 2, channel_layout: 3
12:32:01.739:
12:32:01.740: [rtmp stream: 'adv_stream'] Connecting to RTMP URL rtmp://10.42.0.1/live...
12:32:01.741: [rtmp stream: 'adv_stream'] Interface: Killer E2400 Gigabit Ethernet Controller (ethernet, 1000 mbps)
12:32:01.790: [rtmp stream: 'adv_stream'] Connection to rtmp://10.42.0.1/live successful
12:32:01.794: ==== Streaming Start ===============================================
12:32:16.916: User switched to scene 'Stream'
13:04:33.549: User switched to scene 'Intro'
13:04:35.220: [rtmp stream: 'adv_stream'] User stopped the stream
13:04:35.221: Output 'adv_stream': stopping
13:04:35.221: Output 'adv_stream': Total frames output: 117016
13:04:35.221: Output 'adv_stream': Total drawn frames: 116805 (117209 attempted)
13:04:35.221: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 404 (0.3%)
13:04:35.221: Video stopped, number of skipped frames due to encoding lag: 465/117204 (0.4%)
13:04:35.223: ==== Streaming Stop ================================================
13:04:35.264: warning: 2 frames left in the queue on closing
 

Attachments

In the log i can't see no real problem. But:

So you stream locally by a (self driven) rtmp server on your local network, isn't it? CBR roughly 6000 to 20 users at once. Where you have seen the pause/lag? On the viewers player? Then it may be that your re-distributing rtmp -Server is the bottleneck in the system.

At least there seem to be no disconnects and reconnects from obs to the server... and if you count for the stamped frames (against 60fps) that fits perfectly to your streaming walltimes. There seems hardly a frame lost during streaming.

So the downstream side to your 20 players seems more problematic then the upstream between OBS and the server...?
 
Last edited:
In the log i can't see no real problem. But:

So you stream locally by a (self driven) rtmp server on your local network, isn't it? CBR roughly 6000 to 20 users at once. Where you have seen the pause/lag? On the viewers player? Then it may be that your distributing rtmp -Server is the bottleneck in the system. At least there seem to be no disconnects and reconnects from obs to the server... So the downstream side to your 20 players seems more problematic then the upstream between OBS and the server...?

Thank you for taking the time to assist. Correct, I stream to a local Linux based server running NGINX. I am streaming a live cam to the other devices on the network. The pause / lag occurs on OBS, the screen and audio delay, then pick back up about 7 - 10 seconds later. The receiving devices seem to just be receiving the direct output, pause/lag included.

I am unable to consistently replicate the issue so I do not know the exact cause :(
 
So you see the pause and log on the obs machine already, right?

Then try to disable the " Hardware GPU Scheduler: On "
It is mentioned somewhere here in the forum, i forgot. It's something within the win10 settings...
 
So you see the pause and log on the obs machine already, right?

Then try to disable the " Hardware GPU Scheduler: On "
It is mentioned somewhere here in the forum, i forgot. It's something within the win10 settings...

Yeah thats right.

Awesome. I'll give that a go. Thank you so much. Really appreciate it
 
If that doesn' help, try different capture methods or step back to 26.1.1
There are other posts here that mention problems with the capture methods in 27.x
 
Back
Top