Choppy Youtube Live Stream with OBS

Hi guys

I did a youtube live stream using a pre-recorded video using obs but it was totally choppy. Really bad quality

How can I fix it?

I am attaching the log data here:

11:26:54.754: CPU Name: Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz
11:26:54.757: CPU Speed: 2500MHz
11:26:54.757: Physical Cores: 1, Logical Cores: 1
11:26:54.757: Physical Memory: 2047MB Total, 841MB Free
11:26:54.757: Windows Version: 6.3 Build 9600 (release: unavailable; revision: 19000; 64-bit)
11:26:54.757: Running as administrator: true
11:26:54.757: Aero is Enabled (Aero is always on for windows 8 and above)
11:26:54.760: Current Date/Time: 2021-11-21, 11:26:54
11:26:54.760: Browser Hardware Acceleration: true
11:26:54.760: Portable mode: false
11:26:55.607: OBS 27.1.3 (64-bit, windows)
11:26:55.608: ---------------------------------
11:26:55.611: ---------------------------------
11:26:55.611: audio settings reset:
11:26:55.611: samples per sec: 48000
11:26:55.611: speakers: 2
11:26:55.619: ---------------------------------
11:26:55.619: Initializing D3D11...
11:26:55.619: Available Video Adapters:
11:26:55.637: Loading up D3D11 on adapter Microsoft Basic Render Driver (0)
11:26:55.638: D3D11 loaded successfully, feature level used: b000
11:26:55.638: DXGI increase maximum frame latency success
11:26:55.642: D3D11 GPU priority setup failed (not admin?)
11:26:56.266: ---------------------------------
11:26:56.266: video settings reset:
11:26:56.266: base resolution: 1920x1080
11:26:56.266: output resolution: 1280x720
11:26:56.266: downscale filter: Bicubic
11:26:56.266: fps: 30/1
11:26:56.266: format: NV12
11:26:56.266: YUV mode: 709/Partial
11:26:56.266: NV12 texture support not available
11:26:56.267: Audio monitoring device:
11:26:56.267: name: Default
11:26:56.267: id: default
11:26:56.268: ---------------------------------
11:26:56.269: Skipping module '../../obs-plugins/64bit/chrome_elf.dll', not an OBS plugin
11:26:56.282: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
11:26:56.284: LoadLibrary failed for 'libobs-winrt': The specified module could not be found.
11:26:56.284: (126)
11:26:56.285: Failed to load 'en-US' text for module: 'decklink-captions.dll'
11:26:56.288: Failed to load 'en-US' text for module: 'decklink-ouput-ui.dll'
11:26:56.311: [AMF] Unable to load 'amfrt64.dll', error code 126.
11:26:56.313: [AMF] AMF Test failed due to one or more errors.
11:26:56.313: Failed to initialize module 'enc-amf.dll'
11:26:56.346: Skipping module '../../obs-plugins/64bit/libcef.dll', not an OBS plugin
11:26:56.410: Skipping module '../../obs-plugins/64bit/libEGL.dll', not an OBS plugin
11:26:56.417: Skipping module '../../obs-plugins/64bit/libGLESv2.dll', not an OBS plugin
11:26:56.451: [obs-browser]: Version 2.16.3
11:26:56.451: [obs-browser]: CEF Version 75.1.16+g16a67c4+chromium-75.0.3770.100
11:26:56.456: [obs-browser]: Blacklisted device detected, disabling browser source hardware acceleration.
11:26:56.524: [noise suppress]: NVIDIA RTX denoiser disabled, redistributable not found
11:26:56.583: Couldn't find VLC installation, VLC video source disabled
11:26:56.600: A DeckLink iterator could not be created. The DeckLink drivers may not be installed
11:26:56.601: No blackmagic support
 
continues...


11:26:56.618: ---------------------------------
11:26:56.618: Loaded Modules:
11:26:56.618: win-wasapi.dll
11:26:56.618: win-mf.dll
11:26:56.618: win-dshow.dll
11:26:56.618: win-decklink.dll
11:26:56.618: win-capture.dll
11:26:56.618: vlc-video.dll
11:26:56.618: text-freetype2.dll
11:26:56.618: rtmp-services.dll
11:26:56.618: obs-x264.dll
11:26:56.618: obs-vst.dll
11:26:56.618: obs-transitions.dll
11:26:56.618: obs-text.dll
11:26:56.618: obs-qsv11.dll
11:26:56.618: obs-outputs.dll
11:26:56.618: obs-filters.dll
11:26:56.618: obs-ffmpeg.dll
11:26:56.618: obs-browser.dll
11:26:56.618: image-source.dll
11:26:56.618: frontend-tools.dll
11:26:56.618: enc-amf.dll
11:26:56.618: decklink-ouput-ui.dll
11:26:56.618: decklink-captions.dll
11:26:56.618: coreaudio-encoder.dll
11:26:56.618: ---------------------------------
11:26:56.620: ==== Startup complete ===============================================
11:26:56.632: All scene data cleared
11:26:56.633: ------------------------------------------------
11:26:56.666: [Media Source 'Media Source']: settings:
11:26:56.666: input: C:/Users/Administrator/Downloads/Moneywillcometoy1.mp4
11:26:56.666: input_format: (null)
11:26:56.666: speed: 100
11:26:56.666: is_looping: yes
11:26:56.666: is_linear_alpha: no
11:26:56.666: is_hw_decoding: no
11:26:56.666: is_clear_on_media_end: yes
11:26:56.666: restart_on_activate: yes
11:26:56.666: close_when_inactive: no
11:26:56.667: Switched to scene 'Scene 2'
11:26:56.667: ------------------------------------------------
11:26:56.667: Loaded scenes:
11:26:56.667: - scene 'Scene':
11:26:56.667: - scene 'Scene 2':
11:26:56.667: - source: 'Media Source' (ffmpeg_source)
11:26:56.667: ------------------------------------------------
11:26:57.502: adding 64 milliseconds of audio buffering, total audio buffering is now 64 milliseconds (source: Media Source)
11:26:57.502:
11:26:57.929: adding 106 milliseconds of audio buffering, total audio buffering is now 170 milliseconds (source: Media Source)
11:26:57.929:
11:27:05.470: adding 42 milliseconds of audio buffering, total audio buffering is now 213 milliseconds (source: Media Source)
11:27:05.470:
11:27:06.205: adding 21 milliseconds of audio buffering, total audio buffering is now 234 milliseconds (source: Media Source)
11:27:06.205:
11:27:58.539: [Media Source 'Media Source']: settings:
11:27:58.539: input: C:/Users/Administrator/Downloads/Moneywillcometoy1.mp4
11:27:58.539: input_format: (null)
11:27:58.539: speed: 100
11:27:58.539: is_looping: yes
11:27:58.539: is_linear_alpha: no
11:27:58.539: is_hw_decoding: no
11:27:58.539: is_clear_on_media_end: yes
11:27:58.539: restart_on_activate: yes
11:27:58.539: close_when_inactive: no
11:30:15.330: Uploading thumbnail file "C:/Users/Administrator/Downloads/Portal2.jpg"...
11:30:23.853: ---------------------------------
11:30:23.853: [x264 encoder: 'simple_h264_stream'] preset: veryfast
11:30:23.853: [x264 encoder: 'simple_h264_stream'] settings:
11:30:23.853: rate_control: CBR
11:30:23.853: bitrate: 2500
11:30:23.853: buffer size: 2500
11:30:23.853: crf: 23
11:30:23.853: fps_num: 30
11:30:23.853: fps_den: 1
11:30:23.853: width: 1280
11:30:23.853: height: 720
11:30:23.853: keyint: 60
11:30:23.853:
11:30:23.868: ---------------------------------
11:30:23.868: [FFmpeg aac encoder: 'simple_aac'] bitrate: 160, channels: 2, channel_layout: 3
11:30:23.868:
11:30:24.043: [rtmp stream: 'simple_stream'] Connecting to RTMP URL rtmps://a.rtmps.youtube.com:443/live2...
11:30:24.061: [rtmp stream: 'simple_stream'] Interface: Microsoft Hyper-V Network Adapter #4 (ethernet, 4294 mbps)
11:30:24.412: [rtmp stream: 'simple_stream'] Connection to rtmps://a.rtmps.youtube.com:443/live2 successful
11:30:24.447: ==== Streaming Start ===============================================
11:30:40.212: adding 256 milliseconds of audio buffering, total audio buffering is now 490 milliseconds (source: Media Source)
11:30:40.212:
11:30:40.492: adding 21 milliseconds of audio buffering, total audio buffering is now 512 milliseconds (source: Media Source)
11:30:40.492:
11:30:41.014: adding 128 milliseconds of audio buffering, total audio buffering is now 640 milliseconds (source: Media Source)
11:30:41.014:
12:09:34.401: Max audio buffering reached!
12:09:34.401: adding 320 milliseconds of audio buffering, total audio buffering is now 960 milliseconds (source: Media Source)
12:09:34.401:
12:09:34.821: Source Media Source audio is lagging (over by 3466.32 ms) at max audio buffering. Restarting source audio.
23:06:27.264: [rtmp stream: 'simple_stream'] User stopped the stream
23:06:27.264: Output 'simple_stream': stopping
23:06:27.264: Output 'simple_stream': Total frames output: 1252051 (1252515 attempted)
23:06:27.264: Output 'simple_stream': Total drawn frames: 85697 (1252900 attempted)
23:06:27.264: Output 'simple_stream': Number of lagged frames due to rendering lag/stalls: 1167203 (93.2%)
23:06:27.265: Output 'simple_stream': Number of dropped frames due to insufficient bandwidth/connection stalls: 464 (0.0%)
23:06:27.265: [rtmp stream: 'simple_stream'] Freeing 2 remaining packets
23:06:28.636: Video stopped, number of skipped frames due to encoding lag: 1022/1252886 (0.1%)
23:06:30.274: ==== Streaming Stop ================================================
23:07:21.812: ==== Shutting down ==================================================
23:07:21.857: All scene data cleared
23:07:21.857: ------------------------------------------------
23:07:22.214: [Scripting] Total detached callbacks: 0
23:07:22.214: Freeing OBS context data
23:07:22.357: == Profiler Results =============================
23:07:22.357: run_program_init: 6401.78 ms
23:07:22.357: ┣OBSApp::AppInit: 19.765 ms
23:07:22.357: ┃ ┗OBSApp::InitLocale: 4.996 ms
23:07:22.357: ┗OBSApp::OBSInit: 6265.78 ms
23:07:22.357: ┣obs_startup: 7.082 ms
23:07:22.357: ┗OBSBasic::OBSInit: 5409.77 ms
23:07:22.357: ┣OBSBasic::InitBasicConfig: 2.208 ms
23:07:22.357: ┣OBSBasic::ResetAudio: 0.171 ms
23:07:22.357: ┣OBSBasic::ResetVideo: 656.159 ms
23:07:22.361: ┣OBSBasic::InitOBSCallbacks: 0.008 ms
23:07:22.361: ┣OBSBasic::InitHotkeys: 0.461 ms
23:07:22.361: ┣obs_load_all_modules: 349.781 ms
23:07:22.361: ┃ ┣obs_init_module(coreaudio-encoder.dll): 0.505 ms
23:07:22.361: ┃ ┣obs_init_module(decklink-captions.dll): 0.033 ms
23:07:22.361: ┃ ┣obs_init_module(decklink-ouput-ui.dll): 2.172 ms
23:07:22.361: ┃ ┣obs_init_module(enc-amf.dll): 16.391 ms
23:07:22.361: ┃ ┣obs_init_module(frontend-tools.dll): 15.634 ms
23:07:22.361: ┃ ┣obs_init_module(image-source.dll): 0.009 ms
23:07:22.361: ┃ ┣obs_init_module(obs-browser.dll): 4.941 ms
23:07:22.361: ┃ ┣obs_init_module(obs-ffmpeg.dll): 38.945 ms
23:07:22.361: ┃ ┃ ┗nvenc_check: 38.303 ms
23:07:22.361: ┃ ┣obs_init_module(obs-filters.dll): 0.103 ms
23:07:22.361: ┃ ┣obs_init_module(obs-outputs.dll): 0.731 ms
23:07:22.361: ┃ ┣obs_init_module(obs-qsv11.dll): 23.257 ms
23:07:22.361: ┃ ┣obs_init_module(obs-text.dll): 0.503 ms
23:07:22.361: ┃ ┣obs_init_module(obs-transitions.dll): 0.012 ms
23:07:22.361: ┃ ┣obs_init_module(obs-vst.dll): 0.002 ms
23:07:22.361: ┃ ┣obs_init_module(obs-x264.dll): 0.002 ms
23:07:22.361: ┃ ┣obs_init_module(rtmp-services.dll): 2.639 ms
23:07:22.361: ┃ ┣obs_init_module(text-freetype2.dll): 0.354 ms
23:07:22.361: ┃ ┣obs_init_module(vlc-video.dll): 0.033 ms
23:07:22.361: ┃ ┣obs_init_module(win-capture.dll): 6.083 ms
23:07:22.361: ┃ ┣obs_init_module(win-decklink.dll): 7.299 ms
23:07:22.361: ┃ ┣obs_init_module(win-dshow.dll): 9.927 ms
23:07:22.361: ┃ ┣obs_init_module(win-mf.dll): 0 ms
23:07:22.361: ┃ ┣obs_init_module(win-wasapi.dll): 0.018 ms
23:07:22.361: ┃ ┗reset_win32_symbol_paths: 0.111 ms
23:07:22.361: ┣OBSBasic::ResetOutputs: 1.799 ms
23:07:22.361: ┣OBSBasic::CreateHotkeys: 0.05 ms
23:07:22.361: ┣OBSBasic::InitService: 2.442 ms
23:07:22.361: ┣OBSBasic::InitPrimitives: 0.08 ms
23:07:22.361: ┗OBSBasic::Load: 42.762 ms
23:07:22.361: obs_hotkey_thread(25 ms): min=0.001 ms, median=0.003 ms, max=13172.1 ms, 99th percentile=0.02 ms, 99.5906% below 25 ms
23:07:22.361: audio_thread(Audio): min=0 ms, median=8.834 ms, max=5608.95 ms, 99th percentile=42.657 ms
23:07:22.361: ┗receive_audio: min=0.001 ms, median=0.378 ms, max=611.397 ms, 99th percentile=3.241 ms, 15.886 calls per parent call
23:07:22.361: ┣buffer_audio: min=0 ms, median=0.001 ms, max=301.623 ms, 99th percentile=0.012 ms
23:07:22.361: ┗do_encode: min=0.079 ms, median=0.374 ms, max=611.394 ms, 99th percentile=3.237 ms
23:07:22.361: ┣encode(simple_aac): min=0.076 ms, median=0.343 ms, max=611.341 ms, 99th percentile=3.138 ms
23:07:22.361: ┗send_packet: min=0 ms, median=0.02 ms, max=602.448 ms, 99th percentile=1.018 ms
23:07:22.361: obs_graphics_thread(33.3333 ms): min=0.018 ms, median=22.656 ms, max=19542 ms, 99th percentile=1244.48 ms, 50.0497% below 33.333 ms
23:07:22.361: ┣tick_sources: min=0.001 ms, median=0.008 ms, max=331.469 ms, 99th percentile=0.025 ms
23:07:22.362: ┣output_frame: min=0.012 ms, median=1.239 ms, max=19418.8 ms, 99th percentile=1241.55 ms
23:07:22.362: ┃ ┣gs_context(video->graphics): min=0.011 ms, median=0.814 ms, max=19418.5 ms, 99th percentile=1240.95 ms
23:07:22.362: ┃ ┃ ┣render_video: min=0.007 ms, median=0.519 ms, max=5616 ms, 99th percentile=0.903 ms
23:07:22.362: ┃ ┃ ┃ ┣render_main_texture: min=0.004 ms, median=0.416 ms, max=5615.86 ms, 99th percentile=0.749 ms
23:07:22.362: ┃ ┃ ┃ ┣render_output_texture: min=0.024 ms, median=0.036 ms, max=520.652 ms, 99th percentile=0.087 ms
23:07:22.362: ┃ ┃ ┃ ┣render_convert_texture: min=0.04 ms, median=0.057 ms, max=675.37 ms, 99th percentile=0.123 ms
23:07:22.362: ┃ ┃ ┃ ┗stage_output_texture: min=0.004 ms, median=0.009 ms, max=1.518 ms, 99th percentile=0.027 ms
23:07:22.362: ┃ ┃ ┣gs_flush: min=0.003 ms, median=0.047 ms, max=243.741 ms, 99th percentile=0.108 ms
23:07:22.362: ┃ ┃ ┗download_frame: min=0 ms, median=0.017 ms, max=19418.2 ms, 99th percentile=1241.91 ms
23:07:22.362: ┃ ┗output_video_data: min=0.001 ms, median=0.327 ms, max=5496.25 ms, 99th percentile=0.594 ms
23:07:22.362: ┗render_displays: min=0 ms, median=0.242 ms, max=4231.61 ms, 99th percentile=0.499 ms
23:07:22.362: video_thread(video): min=0.001 ms, median=198.478 ms, max=14676.8 ms, 99th percentile=1159.13 ms
23:07:22.362: ┗receive_video: min=1.852 ms, median=5.584 ms, max=5128.97 ms, 99th percentile=265.679 ms, 14.6263 calls per parent call
23:07:22.363: ┗do_encode: min=1.851 ms, median=5.584 ms, max=5128.97 ms, 99th percentile=265.678 ms
23:07:22.363: ┣encode(simple_h264_stream): min=1.85 ms, median=5.538 ms, max=5128.95 ms, 99th percentile=264.152 ms
23:07:22.363: ┗send_packet: min=0.001 ms, median=0.025 ms, max=412.654 ms, 99th percentile=0.579 ms
23:07:22.363: =================================================
23:07:22.363: == Profiler Time Between Calls ==================
23:07:22.363: obs_hotkey_thread(25 ms): min=24.037 ms, median=319.37 ms, max=13390.8 ms, 13.8209% within ±2% of 25 ms (0.0414166% lower, 86.1377% higher)
23:07:22.363: obs_graphics_thread(33.3333 ms): min=0.258 ms, median=445.199 ms, max=19542 ms, 0.0160088% within ±2% of 33.333 ms (2.34529% lower, 97.6387% higher)
23:07:22.363: =================================================
23:07:24.949: Number of memory leaks: 0
 

Lawrence_SoCal

Active Member
Please don't post your logs like that. Instead follow the steps as listing in the pinned post in this forum
And notice
23:06:27.264: Output 'simple_stream': Number of lagged frames due to rendering lag/stalls: 1167203 (93.2%)

real-time video encoding is VERY computationally demanding. And you are using a relatively ancient circa 2013 CPU without a GPU to offload encoding to. And you have minimal RAM which makes it worse. And I'm guessing you are using a HDD, not SSD, right?
I recommend monitoring hardware resource (CPU, GPU, RAM, Disk I/O, etc) utilization [for ex. using Task manager’s Performance tab and/or Resource Monitor] to see if your system is being maxed out with your settings. To get this to work, maybe, will require you becoming advanced, if not expert, in optimizing your Operating System and OBS for an under-powered system (and that probably means not having fancy overlays, plug-ins, etc)
 
Last edited:
@Lawrence_SoCal

Thanks for getting back to me.

I had no idea about the cause of the issue as I am totally new to OBS

If I wanted to get a new PC for doing this type of live streams.

What would be the ideal configuration to avoid a lagging or choppy video?

Thanks

Please don't post your logs like that. Instead follow the steps as listing in the pinned post in this forum
And notice
23:06:27.264: Output 'simple_stream': Number of lagged frames due to rendering lag/stalls: 1167203 (93.2%)

real-time video encoding is VERY computationally demanding. And you are using a relatively ancient circa 2013 CPU without a GPU to offload encoding to. And you have minimal RAM which makes it worse. And I'm getting you are using a HDD, not SSD, right?
I recommend monitoring hardware resource (CPU, GPU, RAM, Disk I/O, etc) utilization [for ex. using Task manager’s Performance tab and/or Resource Monitor] to see if your system is being maxed out with your settings. To get this to work, maybe, will require you becoming advanced, if not expert, in optimizing your Operating System and OBS for an under-powered system (and that probably means not having fancy overlays, plug-ins, etc)
 

Lawrence_SoCal

Active Member
What would be the ideal configuration to avoid a lagging or choppy video?
That is like asking 'what car should I get?' A proper answer is always 1. what do you want it to do (requirements) and 2. what is your budget?

You could get a 4-5 year old PC, and get it working. Or you could have aspirations for settings you wish to use that means you need a US$5->10K workstation (just look at some upper-end content creator configs at PugetSystems.com) ... it depends. sort of like multi-variant calculus. Your log shows a very simple OBS setup, so to get that working wouldn't take much. Seriously, a gaming laptop from 2015 (with NVENC), with care and expertise in setup (OS & OBS) might work for you. But if you wish to focus on content and creation, vs technical skills of optimizing a setup, and you have the budget, get something newer, more powerful. As for what exactly, it depends... for an example of the nuance on can get into on just GPU model, see this discussion https://obsproject.com/forum/thread...recording-gameplay-locally.150468/post-550211
- the important thing to discern from that discussion for you is that you need to balance resource demands, and key bottlenecks to consider are CPU and GPU. And you can move some workload from one to the other. *IF* your quality expectations aren't high, then an older nVidia GPU with NVENC installed in your current PC might work (not great, no guarantees, and you may need to make sure OS (Operating System) is working efficiently (ie not many of default settings which turn on performance sapping eye candy and other unnecessary background processes). There are others much better than I on this forum at making good use of older under-powered systems for OBS

Just be aware that laptops, especially consumer models, run into thermal (therefore performance) throttling, so beware any U model CPUs (lowest end power, battery life optimized models). If you have the money, and want something that will last a few years, for 1080p streaming, and not high-end gaming or other really demanding workloads, then a I'd go for a 6-core or higher CPU, and a nVidia GTX1650 Super (Turing NVENC) or higher. Personally, I avoid consumer line computers as I keep my systems running for a long time and therefore find value in higher build quality/components in the right business class systems. Then again, until recently I wasn't dealing with video and didn't need that much CPU or GPU..... and GPU prices are crazy high this year (and are expected to remain that way well into next year :( )

One more thing... beware trying to solve just (only) for what you set up today in OBS. Once you get the basics working, you may then (likely want to) move to things like ' oh, I should add some audio filter/effects like compression, etc' [which requires CPU], or I'd like to do a chroma key background [more computational demands], etc. And you may start streaming/recording at 720p, but quickly move to 1080p. Etc. this list goes on.
 
Top