• SpicyTaint@lemmy.world
    link
    fedilink
    English
    arrow-up
    117
    ·
    1 day 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
      arrow-up
      37
      arrow-down
      1
      ·
      edit-2
      1 day 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…

      • throwawayacc0430@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        19
        ·
        1 day ago

        Nah. How would you crack down a program that just play the videos in the background and then just capture the content while it’s played?

        Just queue up a bunch of vidoe you wanna watch, and let the program just essentially screen record it.

        Well if you say “DRM”? Well we could share it to a display that itself is hacked and record all the signals.

        Unless they are doing proctoring as if it were a test, there will always be some way to circumvent it.

          • throwawayacc0430@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            11
            ·
            edit-2
            1 day ago

            I’m so used to the sponsorship thing that I just instinctively tap/click the right side of the screen a few times to skip it.

            (As for why I don’t use sponsorblock: I don’t block them because I wanna take a few seconds to take a peak into the sponsor segment to make sure they don’t have very evil sponsors like ahem “Betterhelp” (I don’t trust someone that still have that as a sponsor in 2025)

            Edit: Also, I’m pretry sure someone will build a locally run AI model that can detect the ads/buffering and cut it out. “AI” might not give you true information in terms of search results, but pattern recognition is like its main job, right?

          • Vanilla_PuddinFudge@infosec.pub
            link
            fedilink
            English
            arrow-up
            10
            ·
            edit-2
            1 day ago

            Imagine adblock re-rencoding software that picks mp4s clean based on repeated content(ads). The user could select each ad as they happen, mark them as such and let it identify them from there. Imagine sharable or federated caches of these ad records between users.

            Someone who can code, please, imagine it.

            • passenger@sopuli.xyz
              link
              fedilink
              English
              arrow-up
              8
              arrow-down
              3
              ·
              edit-2
              1 day ago

              What they should be imagining instead is a better video sharing platform. There are alternatives already…

              • SaharaMaleikuhm@feddit.org
                link
                fedilink
                English
                arrow-up
                7
                arrow-down
                1
                ·
                edit-2
                1 day ago

                Cause all you need is your imagination!

                And billions of dollars to build and run the site with servers worldwide. No biggie

      • Vanilla_PuddinFudge@infosec.pub
        link
        fedilink
        English
        arrow-up
        11
        arrow-down
        1
        ·
        1 day ago

        Virtual desktop program that watches videos and uses sponsorblock and adblock after the fact to pick it clean and re-encode it.

        I’m that level of anal

        • tal@lemmy.today
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 day ago

          I’m not really following video DRM, but my understanding is that Widevine won’t run in a VM with a virtualized video card like that.

      • rumba@piefed.zip
        link
        fedilink
        English
        arrow-up
        12
        ·
        1 day 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 :)

          • rumba@piefed.zip
            link
            fedilink
            English
            arrow-up
            2
            ·
            7 hours ago

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

            • solrize@lemmy.ml
              link
              fedilink
              English
              arrow-up
              1
              ·
              edit-2
              7 hours 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.

            • Lv_InSaNe_vL@lemmy.world
              link
              fedilink
              English
              arrow-up
              3
              arrow-down
              1
              ·
              1 day ago

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

              Source: high end AV tech for like half a decade

      • mesa@piefed.socialOP
        link
        fedilink
        English
        arrow-up
        10
        ·
        1 day 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
          arrow-up
          15
          ·
          edit-2
          1 day 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.

          • mesa@piefed.socialOP
            link
            fedilink
            English
            arrow-up
            11
            ·
            1 day ago

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

        • Vanilla_PuddinFudge@infosec.pub
          link
          fedilink
          English
          arrow-up
          4
          ·
          edit-2
          1 day ago

          Right. At the end of the bullshit, the content still plays to completion if the user hits play. We can script and Ai and remove ads all day long after a program snags the feed.

    • pinball_wizard@lemmy.zip
      link
      fedilink
      English
      arrow-up
      12
      ·
      1 day 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
        arrow-up
        2
        ·
        9 hours ago

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

          • Psythik@lemm.ee
            link
            fedilink
            English
            arrow-up
            2
            ·
            5 hours 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.

    • gruhuken@slrpnk.net
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      17 hours 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

    • B_DL@lemmynsfw.com
      link
      fedilink
      English
      arrow-up
      7
      ·
      1 day 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
        arrow-up
        23
        ·
        edit-2
        1 day 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.

        • sh00g@lemmy.zip
          link
          fedilink
          English
          arrow-up
          2
          ·
          6 hours 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
            arrow-up
            2
            ·
            edit-2
            5 hours 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.

        • Kairos@lemmy.today
          link
          fedilink
          English
          arrow-up
          3
          ·
          edit-2
          1 day ago

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

      • SpicyTaint@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        edit-2
        1 day 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@lemmy.ssba.com
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 day ago

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