Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
youtube - how to get live stream url (.m3u8)? #18802
Comments
|
What issue was duplicated? |
Take it easy, please :) |
|
The curl command no longer works either. |
I can get m3u8 url by this command:
curl -sL "https://www.youtube.com/watch?v=rU4Fw5HYEJE" | grep -oP "ytplayer.config =\K.*?}(?=;)" | jq . | grep m3u8 | sed 's/^.hlsManifestUrl//;s/m3u8./m3u8/;s/^.*https/https/'
https://manifest.googlevideo.com/api/manifest/hls_variant/id/rU4Fw5HYEJE.0/ei/5243XNzvOpGG7QTiqLiACA/gcr/ua/itag/0/dover/11/go/1/expire/1547158344/signature/D9AB0A5E19B395CCC28754DC0172A13CD9BF12FC.12683B1BC15E7A39311BA028A7F6A495D10B0415/requiressl/yes/playlist_type/DVR/keepalive/yes/maudio/1/ip/31.223.225.203/key/yt6/source/yt_live_broadcast/ipbits/0/ratebypass/yes/hfr/1/sparams/ei%2Cgcr%2Cgo%2Chfr%2Cid%2Cip%2Cipbits%2Citag%2Cmaudio%2Cplaylist_type%2Cratebypass%2Crequiressl%2Csource%2Cexpire/file/index.m3u8
But if I run 'youtube-dl -J https://www.youtube.com/watch?v=rU4Fw5HYEJE | jq .' I don`t see any m3u8 in JSON