https://github.com/ytdl-org/youtube-dl
3. Run rtsp-simple-server
(repo here)
docker run --rm -it -e RTSP_PROTOCOLS=tcp -p 8554:8554 -p 1935:1935 -p 8888:8888 aler9/rtsp-simple-server
ffmpeg -re -stream_loop -1 -i $(youtube-dl -g https://www.youtube.com/watch\?v\=vbgwWfwGSR4) -f rtsp rtsp://localhost:8554/stream
rtsp://localhost:8554/stream