Stream is lagging. No alert messages

samuemx

New Member
Hello,
I´m streaming to youtube. My bandwidth test shows 68 mbps but my stream is lagging a lot. What I am doing is using a Display Source and in there there is a video running.

Here is my log:

OBS 25.0.8 (mac) log file uploaded at 2020-06-11, 19:24:36

18:49:03.050: CPU Name: Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
18:49:03.050: CPU Speed: 2300MHz
18:49:03.050: Physical Cores: 2, Logical Cores: 4
18:49:03.051: Physical Memory: 8192MB Total
18:49:03.051: OS Name: Mac OS X (NSMACHOperatingSystem)
18:49:03.051: OS Version: Version 10.15.4 (Build 19E287)
18:49:03.051: Kernel Version: 19.4.0
18:49:03.055: hotkeys-cocoa: Getting keyboard keys failed
18:49:03.055: hotkeys-cocoa: Using layout 'com.apple.keylayout.Spanish-ISO'
18:49:03.056: Portable mode: false
18:49:03.193: OBS 25.0.8 (mac)
18:49:03.193: ---------------------------------
18:49:03.194: ---------------------------------
18:49:03.194: audio settings reset:
18:49:03.194: samples per sec: 44100
18:49:03.194: speakers: 2
18:49:03.215: ---------------------------------
18:49:03.216: Initializing OpenGL...
18:49:03.246: Loading up OpenGL on adapter Intel Inc. Intel(R) Iris(TM) Plus Graphics 640
18:49:03.246: OpenGL loaded successfully, version 4.1 INTEL-14.5.22, shading language 4.10
18:49:03.348: ---------------------------------
18:49:03.348: video settings reset:
18:49:03.348: base resolution: 1920x1080
18:49:03.348: output resolution: 1280x720
18:49:03.348: downscale filter: Bicubic
18:49:03.348: fps: 30/1
18:49:03.348: format: NV12
18:49:03.348: YUV mode: 601/Partial
18:49:03.348: NV12 texture support not available
18:49:03.348: Audio monitoring device:
18:49:03.348: name: Default
18:49:03.348: id: default
18:49:03.349: ---------------------------------
18:49:03.373: Failed to load 'en-US' text for module: 'decklink-ouput-ui.so'
18:49:03.413: os_dlopen(libpython3.7m.dylib->libpython3.7m.dylib): dlopen(libpython3.7m.dylib, 257): image not found
18:49:03.413:
18:49:03.413: [Python] Could not load library: libpython3.7m.dylib
18:49:03.677: A DeckLink iterator could not be created. The DeckLink drivers may not be installed
18:49:03.677: No blackmagic support
18:49:03.769: [VideoToolbox encoder]: Adding VideoToolbox H264 encoders
18:49:04.152: [obs-browser]: Version 2.8.6
18:49:04.361: VLC found, VLC video source enabled
18:49:04.361: ---------------------------------
18:49:04.361: Loaded Modules:
18:49:04.361: vlc-video.so
18:49:04.361: text-freetype2.so
18:49:04.361: rtmp-services.so
18:49:04.361: obs-x264.so
18:49:04.361: obs-vst.so
18:49:04.361: obs-transitions.so
18:49:04.361: obs-outputs.so
18:49:04.361: obs-libfdk.so
18:49:04.361: obs-filters.so
18:49:04.361: obs-ffmpeg.so
18:49:04.361: obs-browser.so
18:49:04.361: mac-vth264.so
18:49:04.361: mac-syphon.so
18:49:04.361: mac-decklink.so
18:49:04.361: mac-capture.so
18:49:04.361: mac-avcapture.so
18:49:04.361: linux-jack.so
18:49:04.361: image-source.so
18:49:04.361: frontend-tools.so
18:49:04.361: decklink-ouput-ui.so
18:49:04.361: coreaudio-encoder.so
18:49:04.361: ---------------------------------
18:49:04.362: os_dlopen(../obs-plugins/obs-browser->../obs-plugins/obs-browser.so): dlopen(../obs-plugins/obs-browser.so, 257): image not found
18:49:04.362:
18:49:04.362: ==== Startup complete ===============================================
18:49:04.414: All scene data cleared
18:49:04.414: ------------------------------------------------
18:49:04.463: coreaudio: device 'USB Audio Device' initialized
18:49:04.465: [Loaded global audio device]: 'Mic/Aux'
18:49:04.465: - filter: 'Noise Suppression' (noise_suppress_filter)
18:49:04.465: - filter: 'Compressor' (compressor_filter)
18:49:04.465: - filter: 'Noise Gate' (noise_gate_filter)
18:49:04.465: - filter: 'Gain' (gain_filter)
18:49:04.469: coreaudio: device 'iShowU Audio Capture' initialized
18:49:04.469: [Loaded global audio device]: 'Mic/Aux 2'
18:49:04.736: adding 46 milliseconds of audio buffering, total audio buffering is now 46 milliseconds (source: Mic/Aux)
18:49:04.736:
18:49:04.743: Cam: Selected device 'HD Pro Webcam C920'
18:49:04.749: Cam: Using preset 640x480
18:49:04.897: [rtmp-services plugin] Successfully updated file 'services.json' (version 133)
18:49:04.897: [rtmp-services plugin] Successfully updated package (version 133)
18:49:05.166: Switched to scene 'Videos'
18:49:05.166: ------------------------------------------------
18:49:05.166: Loaded scenes:
18:49:05.166: - scene 'En espera':
18:49:05.166: - source: 'bg' (image_source)
18:49:05.166: - source: 'Logo' (image_source)
18:49:05.166: - source: 'Título' (image_source)
18:49:05.166: - source: 'Pronto' (text_ft2_source)
18:49:05.166: - scene 'Principal':
18:49:05.166: - source: 'bg' (image_source)
18:49:05.166: - source: 'Título' (image_source)
18:49:05.166: - source: 'Cam' (av_capture_input)
18:49:05.166: - source: 'Logo 2' (image_source)
18:49:05.166: - source: 'Test' (display_capture)
18:49:05.166: - scene 'Con libros':
18:49:05.166: - source: 'bg' (image_source)
18:49:05.166: - source: 'Logo' (image_source)
18:49:05.166: - source: 'Cam' (av_capture_input)
18:49:05.166: - source: 'Título' (image_source)
18:49:05.166: - source: 'Telefono' (display_capture)
18:49:05.166: - scene 'Videos':
18:49:05.166: - source: 'monitor' (display_capture)
18:49:05.166: ------------------------------------------------
18:53:12.638: Settings changed (stream 1)
18:53:12.639: ------------------------------------------------
18:54:31.130: ---------------------------------
18:54:31.130: [x264 encoder: 'simple_h264_stream'] preset: veryfast
18:54:31.133: [x264 encoder: 'simple_h264_stream'] settings:
18:54:31.133: rate_control: CBR
18:54:31.133: bitrate: 4000
18:54:31.133: buffer size: 4000
18:54:31.133: crf: 0
18:54:31.133: fps_num: 30
18:54:31.133: fps_den: 1
18:54:31.133: width: 1280
18:54:31.133: height: 720
18:54:31.133: keyint: 60
18:54:31.133:
18:54:31.154: [CoreAudio AAC: 'simple_aac']: settings:
18:54:31.154: mode: AAC
18:54:31.154: bitrate: 160
18:54:31.154: sample rate: 44100
18:54:31.154: cbr: on
18:54:31.154: output buffer: 1536
18:54:31.154: [rtmp stream: 'simple_stream'] Connecting to RTMP URL rtmp://a.rtmp.youtube.com/live2...
18:54:33.277: [rtmp stream: 'simple_stream'] Connection to rtmp://a.rtmp.youtube.com/live2 successful
18:54:33.281: ==== Streaming Start ===============================================
19:02:47.176: Test: Dropped 1 frames
19:05:32.887: WriteN, RTMP send error 32 (519 bytes)
19:05:32.888: WriteN, RTMP send error 32 (59 bytes)
19:05:32.888: WriteN, RTMP send error 9 (42 bytes)
19:05:32.888: [rtmp stream: 'simple_stream'] Disconnected from rtmp://a.rtmp.youtube.com/live2
19:05:32.888: Output 'simple_stream': stopping
19:05:32.888: Output 'simple_stream': Total frames output: 17615 (19764 attempted)
19:05:32.888: Output 'simple_stream': Total drawn frames: 19808 (19852 attempted)
19:05:32.888: Output 'simple_stream': Number of lagged frames due to rendering lag/stalls: 44 (0.2%)
19:05:32.888: Output 'simple_stream': Number of dropped frames due to insufficient bandwidth/connection stalls: 2149 (10.9%)
19:05:32.888: Output 'simple_stream': Reconnecting in 10 seconds..
19:05:32.889: [rtmp stream: 'simple_stream'] Freeing 2106 remaining packets
19:05:32.890: Video stopped, number of skipped frames due to encoding lag: 1/19788 (0.0%)
19:05:42.895: ---------------------------------
19:05:42.895: [x264 encoder: 'simple_h264_stream'] preset: veryfast
19:05:42.895: [x264 encoder: 'simple_h264_stream'] settings:
19:05:42.895: rate_control: CBR
19:05:42.895: bitrate: 4000
19:05:42.895: buffer size: 4000
19:05:42.895: crf: 0
19:05:42.895: fps_num: 30
19:05:42.895: fps_den: 1
19:05:42.895: width: 1280
19:05:42.895: height: 720
19:05:42.895: keyint: 60
19:05:42.895:
19:05:42.900: [CoreAudio AAC: 'simple_aac']: settings:
19:05:42.900: mode: AAC
19:05:42.900: bitrate: 160
19:05:42.900: sample rate: 44100
19:05:42.900: cbr: on
19:05:42.900: output buffer: 1536
19:05:42.900: [rtmp stream: 'simple_stream'] Connecting to RTMP URL rtmp://a.rtmp.youtube.com/live2...
19:05:47.525: [rtmp stream: 'simple_stream'] Connection to rtmp://a.rtmp.youtube.com/live2 successful
19:08:07.482: [rtmp stream: 'simple_stream'] User stopped the stream
19:08:07.487: Output 'simple_stream': stopping
19:08:07.487: Output 'simple_stream': Total frames output: 3912 (4177 attempted)
19:08:07.487: Output 'simple_stream': Total drawn frames: 4333 (4338 attempted)
19:08:07.487: Output 'simple_stream': Number of lagged frames due to rendering lag/stalls: 5 (0.1%)
19:08:07.487: Output 'simple_stream': Number of dropped frames due to insufficient bandwidth/connection stalls: 265 (6.3%)
19:08:07.492: ==== Streaming Stop ================================================
19:08:29.202: Settings changed (outputs)
19:08:29.202: ------------------------------------------------
19:08:38.649: ---------------------------------
19:08:38.649: [x264 encoder: 'simple_h264_stream'] preset: veryfast
19:08:38.649: [x264 encoder: 'simple_h264_stream'] settings:
19:08:38.649: rate_control: CBR
19:08:38.649: bitrate: 3500
19:08:38.649: buffer size: 3500
19:08:38.649: crf: 0
19:08:38.649: fps_num: 30
19:08:38.649: fps_den: 1
19:08:38.649: width: 1280
19:08:38.649: height: 720
19:08:38.649: keyint: 60
19:08:38.649:
19:08:38.657: [CoreAudio AAC: 'simple_aac']: settings:
19:08:38.657: mode: AAC
19:08:38.657: bitrate: 160
19:08:38.657: sample rate: 44100
19:08:38.657: cbr: on
19:08:38.657: output buffer: 1536
19:08:38.657: [rtmp stream: 'simple_stream'] Connecting to RTMP URL rtmp://a.rtmp.youtube.com/live2...
19:08:39.972: [rtmp stream: 'simple_stream'] Connection to rtmp://a.rtmp.youtube.com/live2 successful
19:08:39.976: ==== Streaming Start ===============================================
19:08:49.113: Telefono: Dropped 1 frames
19:11:48.939: Telefono: Dropped 3 frames
19:18:16.845: [rtmp stream: 'simple_stream'] User stopped the stream
19:18:16.846: Output 'simple_stream': stopping
19:18:16.846: Output 'simple_stream': Total frames output: 16009 (17276 attempted)
19:18:16.846: Output 'simple_stream': Total drawn frames: 17254 (17346 attempted)
19:18:16.846: Output 'simple_stream': Number of lagged frames due to rendering lag/stalls: 92 (0.5%)
19:18:16.846: Output 'simple_stream': Number of dropped frames due to insufficient bandwidth/connection stalls: 1267 (7.3%)
19:18:16.846: Video stopped, number of skipped frames due to encoding lag: 105/17305 (0.6%)
19:18:16.847: ==== Streaming Stop ================================================
19:19:33.076: ---------------------------------
19:19:33.076: [x264 encoder: 'simple_h264_stream'] preset: veryfast
19:19:33.077: [x264 encoder: 'simple_h264_stream'] settings:
19:19:33.077: rate_control: CBR
19:19:33.077: bitrate: 3500
19:19:33.077: buffer size: 3500
19:19:33.077: crf: 0
19:19:33.077: fps_num: 30
19:19:33.077: fps_den: 1
19:19:33.077: width: 1280
19:19:33.077: height: 720
19:19:33.077: keyint: 60
19:19:33.077:
19:19:33.081: [CoreAudio AAC: 'simple_aac']: settings:
19:19:33.081: mode: AAC
19:19:33.081: bitrate: 160
19:19:33.081: sample rate: 44100
19:19:33.081: cbr: on
19:19:33.081: output buffer: 1536
19:19:33.081: [rtmp stream: 'simple_stream'] Connecting to RTMP URL rtmp://a.rtmp.youtube.com/live2...
19:19:37.220: [rtmp stream: 'simple_stream'] Connection to rtmp://a.rtmp.youtube.com/live2 successful
19:19:37.223: ==== Streaming Start ===============================================
19:22:16.782: monitor: Dropped 2 frames
19:22:16.786: Test: Dropped 1 frames
--


And I don´t know if its helpful but this is the stream: https://www.youtube.com/watch?v=M5sspDoMEGM

How can I improve this?
 
Top