Live data from Hacker News

Youtube-dl: Command-line program to download videos

github.com

201–210 of 253 posts

Re: Youtube-dl: Command-line program to download videos

#201
post #180

I presume this is only for the occasional thing that people are afraid will disappear from youtube or is there some other reason for downloading that I'm missing?

Youtube wants me to concede too much JS execution on too many domains (I block strictly), or else I can not skip the ads. It becomes a huge annoyance when I'm watching my favourite TV show that's also uploaded to YT and I have the same idiotic Grammarly ad in my face every 10 minutes. But I can easily run mpv and watch, without looking at ads that are completely uninteresting and persistent enough to feel harassing t…

I assume from your comment you only use a script blocker (like uMatrix, Noscript, ...?) but not an actual ad blocker (I'd recommend uBlock Origin).

That would make your grammarly problem go away pretty fast.

Re: Youtube-dl: Command-line program to download videos

#202

Earlier quoted context omitted.

...and specify to only grab the videos as mp3's to download that perfect song/mix playlist!

Aspiring DJs do this, then play out the files they got from youtube-dl via Serato or whatever, then every other minimally competent DJ in the room immediately knows what’s happening based on how obviously shit it sounds. Practice mixing in headphones and playing room scale PA are two different ballgames, and when amplified, any youtube-dl format is as obvious to me as a file being ripped from source vinyl. YouTube do…

Thanks mr. Gatekeeper

Re: Youtube-dl: Command-line program to download videos

#203

Earlier quoted context omitted.

And by not everyone you can very well mean Youtube itself. I'm in Hungary, sometimes I watch gameplay videos that are only enjoyable in at least 720p and Youtube can't keep up with the bandwidth. I have a 1 gbit connection. And Youtube won't buffer the whole video if you pause it. youtube-dl is really a must in this situation.

I'm not familiar with the situation in hungary but isn't it more likely that your ISP is throttling or otherwise artificially limiting the connection to Youtube, Netflix and other services with bandwith-heavy content.

Well, they don't throttle torrent in any noticeable way (torrenting with 10-20 MB/s or even more is not uncommon). And torrenting is pretty active in Hungary. They also provide ipv6 addresses too, I really can't say anything bad about my ISP. But it could very well be them who do the throttling to Youtube, I can't any way verify that.

Re: Youtube-dl: Command-line program to download videos

#204

I have an alias setup in my .bash_profile to easily download and save as .mp3 file: > alias ymp3="youtube-dl --extract-audio --audio-format mp3"

In my ~/.bashrc, this works well for me. I did have to add --restrict-filenames after encountering some sites using really long titles that were problematic.

  ytdl()
  {
    mkdir /tmp/ytdl && cd /tmp/ytdl
    for URL in "$@" ; do youtube-dl -o '%(title)s.%(ext)s' "$URL" --restrict-filenames; done ;
    mv /tmp/ytdl/* ~/Desktop/
    rm -rf /tmp/ytdl
    exit
  }

Re: Youtube-dl: Command-line program to download videos

#205
post #165

Earlier quoted context omitted.

But they don't download the ads, so I doubt they matter very much as far as google is concerned

You can actually download the ads with YouTube-dl... I believe it's YouTube only and still named as 'experimental', but theoretically it could be a default to appease the big G.

Do you know where to find this or if this is definitely true? I tried looking around before and YouTube-dl didn’t have any ad downloading ability. I just tried looking now and at first glance it doesn’t look like it does. Nothing in the changelog for past year either.

Re: Youtube-dl: Command-line program to download videos

#206
post #165

Earlier quoted context omitted.

You can actually download the ads with YouTube-dl... I believe it's YouTube only and still named as 'experimental', but theoretically it could be a default to appease the big G.

But surely they arrive as separate files, and not interspersed in the main video. So it's implausible they'd ever be watched.

Yes they would most likely arrive as separate files. Though YouTube-dl could force their main codebase to merge the videos. Regardless from looking around it doesn’t look like ads are downloaded.

Re: Youtube-dl: Command-line program to download videos

#207
post #58
post #56

Earlier quoted context omitted.

That would be sad, but I'll ditch Youtube for good if they'll introduce this garbage.

YouTube has the network effect just like every other big provider. You can’t ditch it unless the content you want to see has decided to move elsewhere.

The only way to make the content move elsewhere is to have enough people move elsewhere so that the content needs to move to meet an audience.

Re: Youtube-dl: Command-line program to download videos

#208

The most useful part of youtube-dl is that it works with mpv, so you just pass a URL on the command line and MPV just plays the video in it. I have two monitors, so I put a button on my Firefox toolbar to launch MPV with the current URL, and configured MPV to start fullscreen on the second monitor immediately and quit when done. It's made my video-watching experience on the web an order of magnitude better.

`youtube-dl -g` will output the final URL it has resolved, which you can then pipe to any video player that supports streaming from an URL.

Re: Youtube-dl: Command-line program to download videos

#209

I have an alias setup in my .bash_profile to easily download and save as .mp3 file: > alias ymp3="youtube-dl --extract-audio --audio-format mp3"

Me too. I have also set it to burn thumbnail:

alias mp3='youtube-dl -x --audio-format "mp3" --audio-quality 0 --embed-thumbnail $*'

Re: Youtube-dl: Command-line program to download videos

#210

The most useful part of youtube-dl is that it works with mpv, so you just pass a URL on the command line and MPV just plays the video in it. I have two monitors, so I put a button on my Firefox toolbar to launch MPV with the current URL, and configured MPV to start fullscreen on the second monitor immediately and quit when done. It's made my video-watching experience on the web an order of magnitude better.

Sincere curiosity: is there any advantage over playing full screen via a browser? I'm a heavy youtube-dl user and command line addicted myself, but cannot imagine an advantage in using youtube-dl for live-playing a video, when using the browser seems to give the same experience.

Videos are horribly choppy when I try to view them fullscreen in a browser. It's like playing a game without V-sync on. The same videos work flawlessly in MPV. Firefox in Ubuntu 18.04 with a Nvidia 750ti and proprietary drivers. YMMV.
Post reply on HN