• @SpicyTaint@lemmy.world
    link
    fedilink
    English
    12626 days ago

    I’ve started bulk downloading videos with yt-dlp and watching them locally. No ads or throttling to deal with.

    • @tal@lemmy.today
      link
      fedilink
      English
      38
      edit-2
      26 days ago

      If Google really wants to, they can crack down on yt-dlp, and I assume that if enough people are using it, they’re likely to do such a crackdown. Like, this works for the moment, but…

      • rumba
        link
        fedilink
        English
        1126 days ago

        It will happen eventually. All they need to do is start new/rotating keys on wildvine and put the ads at random times right in the stream, then disable fast forward if you use it to skip ads. It’ll be a UX hit, so it’ll need to be worth it to them.

        In the end, they can’t stop us from HDMI capturing and using comskip to detect / remove but there are a million ways to play tag between where we are now and that which don’t require people posting videos to pirate bay :)

            • Lv_InSaNe_vL
              link
              fedilink
              English
              326 days ago

              They aren’t fool proof, and relatively easy to detect from the source.

              Source: high end AV tech for like half a decade

            • @solrize@lemmy.ml
              link
              fedilink
              English
              1
              edit-2
              25 days ago

              strip out the HDCP

              Interesting, I had figured that was possible in principle but hadn’t kept up with what was actually around.

              But still, the HDCP stream is decompressed video, so if you want to save it, you’ll have to either put it through yet another layer or lossy compression, or burn a ridiculous amount of disk space compared to the compressed stream that Youtube sent to your computer.

              We’ll see how things go. Google in the past has made occasional modest gestures to get in the way of downloading, but they haven’t made serious effort to prevent it. Who knows whether that will last.

          • rumba
            link
            fedilink
            English
            225 days ago

            I break HDCP right now. Those keys have been leaked for AGES. $10 amazon HDMI copy in between your videocard and the capture.

      • mesaOP
        link
        fedilink
        English
        1026 days ago

        My ip was blocked a LONG time ago by google for using yt-dlp. Works with VPN but nothing else. Fun times. I think I only pulled a couple of videos off for archival services. On my own channel non-the-less.

        • @tal@lemmy.today
          link
          fedilink
          English
          15
          edit-2
          26 days ago

          You might try again. I was blocked for a couple weeks after I pulled a bunch of videos from a channel using yt-dlp, and for a while YouTube required an account (which I will not get) from that IP. But a couple weeks later, things were working again.

          • mesaOP
            link
            fedilink
            English
            1126 days ago

            Ok cool! I updated yt-dlp via pip, and it looks like its working again. No warnings or anything. Awesome.

    • @pinball_wizard@lemmy.zip
      link
      fedilink
      English
      1226 days ago

      This is the way.

      When YouTube wanted to throw me some entertainment and a couple ads, very conveniently, I was down for that.

      Now that it’s an all out technology knowledge battle - well, I’m quite good at that.

      So I spend the time I would have laughed at their ad instead working around their bullshit.

      I haven’t seen an ad in years, but I still enjoy the same content. 🤷‍♀️

      To me, it seems like they’re working really hard, just to fail to serve me ads.

      • @Psythik@lemm.ee
        link
        fedilink
        English
        225 days ago

        I would but my issue with that is that SponsorBlock doesn’t work on downloaded videos.

          • @Psythik@lemm.ee
            link
            fedilink
            English
            225 days ago

            I use SponsorBlock for more than just skipping sponsored segments. It’s also useful for skipping intros, “like and subscribe” messages, and other general annoyances in most YouTube videos. Once you get used to it, you can’t go without.

    • @B_DL@lemmynsfw.com
      link
      fedilink
      English
      726 days ago

      I’m new to yt-dlp. Care to share your flags? I’m a little confused on which ones I actually need.

      • @tal@lemmy.today
        link
        fedilink
        English
        23
        edit-2
        26 days ago

        I mean, you don’t need anything; it’ll work with no flags. I have these:

        $ cat ~/.config/yt-dlp/config
        --embed-subs
        --embed-metadata
        --embed-chapters
        --embed-thumbnail
        --sponsorblock-mark=all
        $
        

        That’ll just embed some useful metadata in the file.

        • Kairos
          link
          fedilink
          English
          3
          edit-2
          26 days ago

          Note that subtitles doesn’t include automatic subtitles. For that you have to do --write-auto-subs in conjunction

        • @sh00g@lemmy.zip
          link
          fedilink
          English
          225 days ago

          Also if you just want the audio to listen to (I like to do this with TTRPGs) you can do:

          yt-dlp -x -f bestaudio

          Also works great in a pinch for getting sounds and music for FoundryVTT.

          • @tal@lemmy.today
            link
            fedilink
            English
            2
            edit-2
            25 days ago

            I’m pretty sure that it defaults to best quality.

            goes looking at man page

               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.
            

            So I think that it should normally pull down the best audio unless you get into some situation where YouTube doesn’t offer a format that simultaneously has the combination of highest audio quality with the highest video quality; if it has to do so to get the highest video quality then, it’ll sacrifice audio quality.

            EDIT: Hmm. I could have sworn that there was more text about prioritizing relative audio and video quality at one point in the man page, but I don’t see anything there now. Maybe it can just always get the best audio quality, regardless of video quality, can pull 'em entirely separately.

      • @SpicyTaint@lemmy.world
        link
        fedilink
        English
        4
        edit-2
        26 days ago

        I’m a filthy Windows user that’s too lazy to migrate my main PC to Fedora.

        > Path\to\yt-dlp.exe -P <target directory> <URL>
        

        Multiple URLs can be separated by spaces. Put any URLs with ampersands in quotes or remove the ampersand and following arguments.

        You can find a list of all the arguments on the yt-dlp github page

    • Ebby
      link
      fedilink
      English
      426 days ago

      Me too. I’m up to 3TB locally. Had to do that slowly though. Hit some temp bans a few times.

    • @gruhuken@slrpnk.net
      link
      fedilink
      English
      1
      edit-2
      25 days ago

      I’ve been doing this with band love videos and storing them on a hard drive. One I love got taken down and almost lost a while back and it’s made me paranoid ha