chrippa / livestreamer

Command-line utility that extracts streams from various services and pipes them into a video player of choice. No longer maintained, use streamlink or youtube-dl instead.
http://livestreamer.io/
BSD 2-Clause "Simplified" License
3.88k stars 585 forks source link

Support alternative YouTube livestream URL format #1541

Open baptx opened 7 years ago

baptx commented 7 years ago

Please add support for livestream URL format like this (supported by youtube-dl and mpv): https://www.youtube.com/c/FRANCE24English/live https://www.youtube.com/c/FRANCE24/live

France24 YouTube livestream often changes its URL, making previous ones unavailable: https://www.youtube.com/watch?v=qKEk1YCOz8Q https://www.youtube.com/watch?v=gq11un3xqsA https://www.youtube.com/watch?v=NkruFxgEisY https://www.youtube.com/watch?v=dHI7hP90ze0

I managed to get a main URL (the one that I shared and is not supported by livestreamer) that always refers to the current livestream URL. I took it from the source code of France24 tweets: https://twitter.com/FRANCE24/status/691656070327070721 https://twitter.com/France24_en/status/691656277202706433 https://twitter.com/France24_fr/status/633928942227968000

baptx commented 7 years ago

Currently I can use a hack for livestreamer to get the referred YouTube video id: livestreamercurl https://www.youtube.com/c/FRANCE24English/live | grep -o https://www.youtube.com/v/.*? | tr -d ?best By the way, I have seen that the main URL does not play very well with youtube-dl and mpv, it is cut sometimes, I don't know why.

kenderson commented 7 years ago

+1 for Support of these formats in Livestreamer!