Youtube-dl [UPD] Download Live Stream

0 views
Skip to first unread message

Marjatta Jenner

unread,
Jan 18, 2024, 2:47:44 PM1/18/24
to gravbesburtsync

You can use Youtube-dlG, a multi-platform GUI for youtube-dl. The GUI lets you download multiple videos at once, can automatically convert downloaded videos to audio, lets you select the video quality and more.

I know this is not really the answer for a GUI however, I couldn't help but notice how the specific characteristics mentioned are already available with youtube-dl if you add a few extra options to your command.

youtube-dl download live stream


Download Zip ››› https://t.co/Tp6Nb0kNmn



I cannot seem to play a Youtube livestream (e.g. ) on Chromecast using the media_extractor.play_media component.
When I replace the url with a regular Youtube video HA does play without any issues.

Has there been any update on this? I was also wondering if you could get around this by just having home assistant display an internal HTML page to the chromecast with just a simple iframe to the live video embedded?

My problem was very similar, I wanted to make an alarm clock with a YouTube live show. My problem was that the id changed every day when I started the stream. For this Google has its YouTube api. I created a new sensor to get the live id and call it from the automation. I leave the code below:

IMHO it is insane for people to regularly stream media with Tor Browser. The attack surface of Firefox ESR and all other browsers is huge, let alone allowing the gambit of Javascript. Compare how many critical security vulnerabilities are seen in regular browser updates vs media players.

Analysis of more than 23,000 free streaming websites revealed that, perhaps unsurprisingly, the illegal streams posed a major security risk, exposing people to malware, data theft and financial scams.

Many overlay adverts on livestreaming sports sites have fake close buttons, or close buttons that move when a mouse is hovered over them. This deceptiveness exposes users to further risk of being exposed to malware.

Because youtube keeps changing the website that results in breaking youtube-dl. Downloading is not something youtube appreciates. Then the youtube-dl developers need to fix it and release a newer version.

Jan Ozer develops training courses for streaming media professionals; provides encoding-related testing services to encoder developers; helps video producers perfect their encoding ladders and deploy new codecs. Jan blogs primarily at the Streaming Learning Center.

youtube-dl is a command-line program to download videos from YouTube.com and a few more sites. It requires the Python interpreter (2.6, 2.7, or 3.2+), and it is not platform-specific. We also provide a Windows executable that includes Python. youtube-dl should work in your Unix box, in Windows, or in Mac OS X. It is released to the public domain, which means you can modify it, redistribute it or use it however you like.

Develops training courses for streaming media professionals; provides encoding-related testing services to encoder developers; helps video producers perfect their encoding ladders and deploy new codecs. Jan blogs primarily at the Streaming Learning Center.

I want to add a live channel from youtube as iptv input (for ex.External Contentwww.youtube.comContent embedded from external sources will not be displayed without your consent.Display all external contentThrough the activation of external content, you agree that personal data may be transferred to third party platforms. We have provided more information on this in our privacy policy.)

If you create a custom playlist, this often works for some weeks or months, but then a stream MRL changes. Many free IPTV channels have a single live stream MRL embedded in a web page. And the page address never changes. If you had a PVR client that can extract the MRL from a web page automatically, you could create a custom IPTV channel list that always works. Has it been done?

Would also be great if there was a PVR client for SopCast & BitTorrent Live p2p channels
Best use for Kodi is: combine PVR clients as needed to create a live channel guide with DVB / IPTV / P2P channels all in one menu. This is the future of television

You appear to be at least partially wrong, I checked that list and only see one item. I will happily obey the rules here, but it's hard to keep track of what is banned and what is not. I am only interested in content which is legitimately free. There are many TV series, live news channels and documentary films deliberately posted online by the content owner. YouTube live channels are but one example. So I would suggest that the forum server should employ a script which notifies the user of banned topics when posting, to avoid accidental violations. I am not convinced that censorship is a good idea, but will obey the rules to the best of my ability and apologise for the one single oversight.

To some extent I think this sort of censorship is becoming kind of absurd, since Google indexes pirate content but Google is not a banned topic, there is a strange double standard here. In any case, no pirate channel is going to be reliable, so you would not want such things to pollute your custom PVR channel list (where the family expects everything to just work!) I am more interested in finding ways to get legitimate free channels into the PVR lineup that you see when Kodi starts up. If an authentic free stream can be viewed in a web browser, and there is a static URL associated with that stream, it should be possible to add that stream to the PVR channel list, and right now this is not always easy or possible. Kodi will be much more popular when it overcomes this limitation, and the success of open platforms is what I really want to support more than anything else.

1. Kodi routinely freezes when you enable/disable the PVR client or backend (e.g. TV headend)
2. FilmOn PVR client does not work (channels & EPG data appear in list, but dont play)
3. There is no PVR client for live YouTube channels
4. OTA channel scan on VDR client is broken
5. OTA (local) channels from PVR backends are no longer grouped together in the channel lineup when PVR IPTV simple client is enabled

If Team Kodi or LibreELEC would open an online retail store and sell a hardware package that is fully supported, I know lots of people who would love to buy it (so long as its not effing Wetek.) I will concede that some of the commercial platforms are even less user friendly with respect to the lack of support for a PVR client, EPG, and custom live channel list. However, a built-in setup wizard which automates the configuration of multiple OTA / IPTV PVR clients would place Kodi + LibreELEC on a whole different level where it could actually compete with the mainstream IPTV platforms, cable & satellite boxes. That would lead to widespread adoption by the masses, more developers, more sources of funding, better support from content producers, hardware vendors, et cetera. The world needs an open standard TV platform and Kodi has the potential to be that standard, if you can fix the most serious bugs and simplify configuration.

I think we need a dedicated PVR client for Livestreamer, similar to IPTV simple client, so you can just make a playlist with your favorite live channels. Kodi PVR features have a steep learning curve: many new users do not realize that multiple PVR clients can be activated simultaneously, and do not understand the purpose of the different clients. This is why Kodi needs an automatic setup wizard that helps the user to choose and configure PVR clients.

Then you need to check which number (resolution) that you prefer using:
#youtube-dl --list-formats External Contentwww.youtube.comContent embedded from external sources will not be displayed without your consent.Display all external contentThrough the activation of external content, you agree that personal data may be transferred to third party platforms. We have provided more information on this in our privacy policy.

For example, if you prefer to stream at number 91, then you do:
#youtube-dl -f 91 External Contentwww.youtube.comContent embedded from external sources will not be displayed without your consent.Display all external contentThrough the activation of external content, you agree that personal data may be transferred to third party platforms. We have provided more information on this in our privacy policy. -g

It's very hard to track all of 100s of sites for the HTML engine changes. It's not "hard" but just impossible. The only project I know (and it's feeding ALL other "downloaders" with the code) is youtube-dl.

Chainik I use SVPtube, but it crashes the mpc-hc player a lot, which forces it to close immediately, so I can only watch a handful of videos with that. However, sometimes the video will open and play properly at certain times, and then it'll start crashing again on other times. I will use Youtube dl for when I want to watch stuff that I can't on youtube, but at the same time, I don't know how to download links from other sites, like the commands for them so youtube-dl is able to download them.

Then after about 20 tries I found one that worked. It has the strange name of
video downloader CocoCut
You just start playing the video and it detects the stream and brings up a menu where you select one version to download, and away it goes.

Merged with animelover1984/youtube-dl: You get most of the features and improvements from animelover1984/youtube-dl including --write-comments, BiliBiliSearch, BilibiliChannel, Embedding thumbnail in mp4/ogg/opus, playlist infojson etc. Note that NicoNico livestreams are not available. See #31 for details.

By default, yt-dlp tries to download the best available quality if you don't pass any options.This is generally equivalent to using -f bestvideo*+bestaudio/best. However, if multiple audiostreams is enabled (--audio-multistreams), the default format changes to -f bestvideo+bestaudio/best. Similarly, if ffmpeg is unavailable, or if you use yt-dlp to stream to stdout (-o -), the default becomes -f best/bestvideo+bestaudio.

df19127ead
Reply all
Reply to author
Forward
0 new messages