Question / Help How to use YouTube Live as an input (rebroadcast)?

gklka

New Member
Hello!

I am trying to use OBS for mixin two YouTube Live streams into one third YouTube Live stream. Outputting the stream via RTSP to YouTube works fine. I have problem with the YouTube input. What I have tried so far:

1. Browser plugin + fullscreen: works, but has some frames, misses sound and I think it is an unnecessary thing
2. Getting direct YouTube stream urls with youtube-dl. This gives me 2 seconds of the video then it stalls. I think it is because YouTube gives HLS links, which don’t work with OBS?
3. Having YouTube full screen on one display and using Screen Capture input. This is the worst, works but consumes my display, which I need, I can always accidentally enter into screen, close window, etc.
4. Opening m.youtube.com in Safari, with iOS Safari user agent set, then copying the stream URL from the macOS default video player: this worked until 2 days ago, then it works as the 2nd option since then

Is any way to do this? Am I missing something? Any tips?
 

Tuna

Member
Do you feel comfortable when compiling and building plugins? One way it can be done is via this plugin I made:

https://obsproject.com/forum/resources/obs-gstreamer.696/

Note that this plugin is still highly experimental - which you can see by the fact you have to compile it yourself at the moment. I did a quick test following your use case 2. from your post above and it was working with this plugin configuration:

Code:
uridecodebin uri="https://somelongyoutubeurl.m3u8" name=bin ! queue !
video. bin. ! queue ! audio.
 
Top