Live data from Hacker News

You-get: Dumb downloader that scrapes the web

github.com

141–150 of 154 posts

Re: You-get: Dumb downloader that scrapes the web

#141
post #56
post #46

Earlier quoted context omitted.

That’s the -F option to list all the formats, including the audio streams. Pick the audio format with -f to download the audio. I usually pick the .m4a format and then run it through ffmpeg to convert to mp3.

That's really unnecessarily complicated workflow you have. It's achievable by yt-dlp with just 3 flags: --extract-audio --format bestaudio --audio-format mp3

Direct to mp3 doesn't expose all the encoding options one may want.

Re: You-get: Dumb downloader that scrapes the web

#142
post #41

For a while I had expensive internet and low bandwidth, but I loved listening to music and lectures on YouTube. At some point I realized that getting only the audio stream would save me 90% in bandwidth costs. [0] youtube-dl (and yt-dlp) has a flag, I believe -G, which gives you the URL(s) for the requested format/quality. I used the command line on my computer and put the link in VLC. On my phone I had this elaborat…

BTW if you browse YouTube with Firefox browser on Android you can play back YouTube videos with the screen locked using background player fix extension.

Or just switch FFA to desktop mode.

Re: You-get: Dumb downloader that scrapes the web

#143
post #41

For a while I had expensive internet and low bandwidth, but I loved listening to music and lectures on YouTube. At some point I realized that getting only the audio stream would save me 90% in bandwidth costs. [0] youtube-dl (and yt-dlp) has a flag, I believe -G, which gives you the URL(s) for the requested format/quality. I used the command line on my computer and put the link in VLC. On my phone I had this elaborat…

You can glitch out Safari on IOS -by quickly pressing the play button for the video in the now playing interface after switching off from the Safari app- to play the audio of Youtube videos on the background.

I mainly use this to play membership only videos that don't play in the background even if you have a Youtube Premium.

Every IOS version I pray that they don't patch this "glitch".

Re: You-get: Dumb downloader that scrapes the web

#144
post #41

For a while I had expensive internet and low bandwidth, but I loved listening to music and lectures on YouTube. At some point I realized that getting only the audio stream would save me 90% in bandwidth costs. [0] youtube-dl (and yt-dlp) has a flag, I believe -G, which gives you the URL(s) for the requested format/quality. I used the command line on my computer and put the link in VLC. On my phone I had this elaborat…

You can glitch out Safari on IOS -by quickly pressing the play button for the video in the now playing interface after switching off from the Safari app- to play the audio of Youtube videos on the background. I mainly use this to play membership only videos that don't play in the background even if you have a Youtube Premium. Every IOS version I pray that they don't patch this "glitch".

Interesting, I don't use premium but is there a reason membership only videos don't support background audio? Seems like a weird exclusion

Re: You-get: Dumb downloader that scrapes the web

#145
post #119

Earlier quoted context omitted.

mpv similarly has this option. I listen to far more videos than I watch . https://mpv.io/ >

MPV is just passing the stream selection arguments over to youtube-dl/yt-dlp.

Sure, and you can set that directly in your mpv config:

  ytdl-format=bestaudio[ext=m4a]/bestaudio[ext=webm]/bestaudio
  vo=null
The advantage is that you're setting this for a utility which can play media directly (e.g., you don't have to separately download and then play content), and that you can set preferences independently for mpv vs. other tools.

You can also of course configure your own aliases, shell functions, shell scripts, or config files for various preferred configurations, whether using mpv, ytdl, or other tools.

Re: You-get: Dumb downloader that scrapes the web

#146

Earlier quoted context omitted.

Seems like youtube-dl doesn't work anymore. I had to use a fork yt-dlp. Always makes me nervous hopping from one project to another like that, but seems like it's commonly used at least.

youtube-dl has been dead for many years now; it's a lot like XFree86, where the original project is a zombie with very few real users, but the original maintainers refuse to acknowledge reality and just shutter the thing, so newcomers get confused. Everyone's moved to yt-dlp now.

The author(s) got into legal trouble.

https://youtube-dl.org

> Due to a ruling of the Hamburg Regional Court, access to this website is blocked.

https://openjur.de/u/2466945.html

Re: You-get: Dumb downloader that scrapes the web

#147
post #119

Earlier quoted context omitted.

MPV is just passing the stream selection arguments over to youtube-dl/yt-dlp.

Sure, and you can set that directly in your mpv config: ytdl-format=bestaudio[ext=m4a]/bestaudio[ext=webm]/bestaudio vo=null The advantage is that you're setting this for a utility which can play media directly (e.g., you don't have to separately download and then play content), and that you can set preferences independently for mpv vs. other tools. You can also of course configure your own aliases, shell functions,…

Yup, it's pretty great.

It's worth noting, though, that ytdl can output video content to stdout, so it is possible to stream video by piping to any player, although mpv's method is much more convenient.

Sometimes it is necessary to download files regardless, though, due to DASH separating audio and video into distinct files. You often need to remux them with a container like MP4, AVI, or Matroska in order to use them locally.

Re: You-get: Dumb downloader that scrapes the web

#148
post #146

Earlier quoted context omitted.

youtube-dl has been dead for many years now; it's a lot like XFree86, where the original project is a zombie with very few real users, but the original maintainers refuse to acknowledge reality and just shutter the thing, so newcomers get confused. Everyone's moved to yt-dlp now.

The author(s) got into legal trouble. https://youtube-dl.org > Due to a ruling of the Hamburg Regional Court, access to this website is blocked. https://openjur.de/u/2466945.html

For providing a tool that lets people download YT videos? The same should apply to yt-dlp, but that project is hosted on github.com with no apparent problems. What's stopping the youtube-dl people from doing the same and just ignoring this silly court ruling?

Re: You-get: Dumb downloader that scrapes the web

#149
post #146

Earlier quoted context omitted.

The author(s) got into legal trouble. https://youtube-dl.org > Due to a ruling of the Hamburg Regional Court, access to this website is blocked. https://openjur.de/u/2466945.html

For providing a tool that lets people download YT videos? The same should apply to yt-dlp, but that project is hosted on github.com with no apparent problems. What's stopping the youtube-dl people from doing the same and just ignoring this silly court ruling?

The case is about downloading music or rather enabling others to do so ("Beihilfe"). GEMA really is quite terrible.

What's stopping them? Dunno, (the threat of) police showing up at the door? Shitty pop songs are not worth going to prison for.

Re: You-get: Dumb downloader that scrapes the web

#150

Earlier quoted context omitted.

This library/program solves problems that people have with pages like youtube... too many ads, no way to download videos for offline use (or archive for when they get removed), and better performance with a native player. If I was forced to watch all the ads on youtube, i wouldn't watch videos there at all.

I get it. But I don't. For YouTube you can pay for premium. Consuming not only their resources but also their incredible streaming algorithm for free is just a dirty move. Doing this just puts you into the statistic of bad users that incentives companies like Google to push more intrusive DRM. Which at the end of the day makes us all suffer. Good luck finding an alternative by the way.

And I consider them bad advertisers and just don't care.

We had the internet without ads. Then we had the internet with small banner ads, that didn't track users but were there because of the page content. Then those ads moved from text/image to animated gif, and they became annoying. Then flash was used and it became a security concern. Then the number of ads went up and up, video was introduced, autoplaying, with audio, and at some point most of the internet is unusable without an adblock. It's not something we, the users, wanted, the advertisers (google included) made the internet unusable without an adblock, and that includes 3 25 second ads on a 1m20s video on youtube.

If advertisers returned to non-animated banners above/below the video, we wouldn't have to install adblocks everywhere anymore, and people would see the ad without wanting to kill the advertiser for bad intrusive advertising practices.

They started it, they went too far, we're just reacting to what they're doing. And as we've seen with other platforms, even paying for premium doesn't mean no-ads. And still an adblock is needed to remove the in-video ads ("this video is sponsored by shadow vpn audible").

Post reply on HN