Might not work, something I threw together quickly for those who want a non-youtube browser based stream.
Tech details:
Using ffmpeg and livestreamer
Using Ubuntu 18.04
Installed via apt (I'm lazy)
Command:
livestreamer --player-continuous-http --player-no-close "https://www.youtube.com/watch?v=UMtpVS0xM1c" best -O | ffmpeg -re -i - -vf scale=w=1280:h=720:force_original_aspect_ratio=decrease -c:a aac -ar 48000 -b:a 128k -c:v h264 -profile:v main -crf 20 -g 48 -keyint_min 48 -sc_threshold 0 -b:v 2500k -maxrate 2675k -bufsize 3750k -hls_time 4 -hls_playlist_type vod video.m3u8
Using hlsjs to allow the browser to play the video (view the pages source code for info). I make no promises this won't fuck up, use at your own risk.