Keyframes on HLS for YouTube?

AS-3Ddruck

New Member
I started using today HLS instead of RTMP/RTMPS for Streaming my 1440p Video.
Something i noticed is that the Keyframe Intervall is important for HLS to work right?

So i set the Service to "YouTube - HLS" and entered my "Stream Key".
After that i went to Output and set on my CBR 20000 kbps a Keyfrme Interval of "3".
This should work right?
Because sometimes i get stutters in my stream without skipping/dropping Frames.

Did i everyything right?

(I belive this was the right Logfile: https://pastebin.com/ZYZyDS5f )
 

rockbottom

Active Member
Just looked at your log, it's already @ 2 seconds not 3 as you stated.

20:02:14.987: [x264 encoder: 'streaming_h264'] preset: faster
20:02:14.987: [x264 encoder: 'streaming_h264'] profile: high
20:02:14.987: [x264 encoder: 'streaming_h264'] settings:
20:02:14.987: rate_control: CBR
20:02:14.987: bitrate: 20000
20:02:14.987: buffer size: 20000
20:02:14.987: crf: 23
20:02:14.987: fps_num: 60
20:02:14.987: fps_den: 1
20:02:14.987: width: 2560
20:02:14.987: height: 1440
20:02:14.987: keyint: 120

Muxer errors & NDI is wrecking your audio too, real fast....

20:02:14.991: [FFmpeg aac encoder: 'adv_stream_aac'] bitrate: 160, channels: 2, channel_layout: 3
20:02:14.991:
20:02:14.991: [ffmpeg muxer: 'adv_stream'] Using muxer settings:
20:02:14.991: method=PUT
20:02:14.991: http_persistent=1
20:02:14.991: ignore_io_errors=1
20:02:14.991: http_user_agent=libobs/27.0.1
20:02:14.991: hls_time=2
20:02:14.996: ==== Streaming Start ===============================================
20:02:14.996: [ffmpeg hls muxer: 'adv_stream'] Writing to path 'https://a.upload.youtube.com/http_upload_hls?cid={stream_key}&copy=0&file=out.m3u8'...
20:03:52.718: adding 213 milliseconds of audio buffering, total audio buffering is now 213 milliseconds (source: Mikro)
20:03:52.718:
20:09:19.746: adding 64 milliseconds of audio buffering, total audio buffering is now 277 milliseconds (source: Mikro)
20:09:19.746:
20:11:32.642: adding 128 milliseconds of audio buffering, total audio buffering is now 405 milliseconds (source: GamingPC)
20:11:32.642:
20:13:24.570: adding 362 milliseconds of audio buffering, total audio buffering is now 768 milliseconds (source: GamingPC)
20:13:24.570:
20:15:12.267: Max audio buffering reached!
20:15:12.267: adding 192 milliseconds of audio buffering, total audio buffering is now 960 milliseconds (source: Mikro)


19:52:20.664: Loaded scenes:
19:52:20.664: - scene 'Stream':
19:52:20.664: - source: 'GamingPC' (ndi_source)
19:52:20.664: - filter: 'obs-ndi - Fix alpha blending' (premultiplied_alpha_filter)
19:52:20.664: - source: 'Mikro' (ndi_source)
19:52:20.664: - source: 'Discord' (ndi_source)
19:52:20.664: - source: 'System Info' (text_gdiplus_v2)
19:52:20.664: - source: 'Display Capture' (monitor_capture)
 

AS-3Ddruck

New Member
Yes, i guess this was before i set it to 3.
But why does my Stream still laag on the Viewer end?
Watched the Stream on my 2. Monitor and my Phone.
Booth had the exact same freezes for 1-2 Seconds.

What is that?
 

rockbottom

Active Member
The log file appears to be truncated, all network info was removed. I suspect you're using Wi-Fi but beyond that, how the hell would I know?
 

AS-3Ddruck

New Member
I remove nothing.
I use Cat 6 Cables to my Router with a Gigabit Connection. (1000 Mbps Down 50 Mbps Upload)
 

rockbottom

Active Member
For your purposes (Streaming), that Gig means nothing Jon Snow, you only have 50Mb/s upload (maybe).... Can't tell if there's an issues there cause it's not in the log.

You should try to figure out your NDI wows, fix the internal shit before you start streaming.
 

rockbottom

Active Member
Your NDI is causing issues & it needs to be fixed or it's just going to wreck your stream even if you get the HLS working flawlessly.
 

rockbottom

Active Member
Your NDI version looks new enough, just don't upgrade past v4.6 for now. I haven't had any issues with NDI5 but some have.

I posted NDI guides in this thread earlier today, they may help you figure out what's going on if it's your network causing trouble.

 

AS-3Ddruck

New Member
I reinstalled NDI again from this Source again (Gaming PC + Streaming PC):

checked and uchecked Allow hardware acceleration
1631956690652.png


Any other Ideas?
 

AS-3Ddruck

New Member
Okay, i guess it works now.
Installed NDI 5 on my Gaming PC and Streaming PC.

If there is a Issue that comes with it i updated this Thread.
 
Top