188 comments

  • embedding-shape an hour ago ago

    Seems its already in Arch's repositories, and seems to work, just add another flag to the invocation:

        yt-dlp --cookies-from-browser firefox --remote-components ejs:github -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best" 'https://www.youtube.com/watch?v=XXX'
    
    It is downloading a solver at runtime, took maybe half a second in total, downloads are starting way faster than before it seems to me.

        [youtube] [jsc:deno] Solving JS challenges using deno
        [youtube] [jsc:deno] Downloading challenge solver lib script from  https://github.com/yt-dlp/ejs/releases/download/0.3.1/yt.solver.lib.min.js
    
    It would be great if we could download the solver manually with a separate command, before running the download command, as I'm probably not alone in running yt-dlp in a restricted environment, and being able to package it up together with the solver before runtime would let me avoid lessening the restrictions for that environment. Not a huge issue though, happy in general the start of downloads seems much faster now.
    • WD-42 2 minutes ago ago

      Glad to hear it’s faster now!

      YouTube barely works in a full-on browser these days, props to the team that keeps it accessible via a Python script!

    • gamer191 23 minutes ago ago

      > It would be great if we could download the solver manually with a separate command

      Download a random video and then copy ejs from yt-dlp’s cache directory (I think it’s in /home/username/.cache)

      > being able to package it up together with the solver

      `make yt-dlp-extra`

  • Tabular-Iceberg an hour ago ago

    I remember when QuickTime came out in 1991 and it was obvious to everyone that video should be copied, pasted and saved like any arbitrary data.

    It's absolutely insane to me how bad the user experience is with video nowadays, even video that's not encumbered by DRM or complex JavaScript clients.

    • usrbinbash a minute ago ago

      > It's absolutely insane to me how bad the user experience is with video nowadays

      Has nothing to do with video per se. Normal embeddings, using the standard `<video>` element and no unnecessary JS nonsense, still work the same way they did in the 90s: Right click the video and download it, it's a media element like any other.

      The reason why user experience is going to shite, is because turbocapitalism went to work on what was once The Internet, and is trying to turn it into a paywalled profit-machine.

    • Aurornis 2 minutes ago ago

      > It's absolutely insane to me how bad the user experience is with video nowadays, even video that's not encumbered by DRM or complex JavaScript clients.

      The video experience for typical video files is great these days compared to the past. I think you may be viewing the past through rose colored glasses. For years it was a pain to deal with video because you had to navigate third party players (remember Real Player?), Flash plugins, and sketchy codec pack installs from adware infested download sites. If you were tech support for friends and family during that era, it was common to have to remove adware, spyware, and other unwanted programs after someone went down the rabbit home of trying to install software to watch some video they found.

      The modern situation where your OS comes with software to play common files or you can install VLC and play anything is infinitely better than the past experience with local video.

    • throwaway94275 an hour ago ago

      1991 was the vibrant, exciting, crazy "adolescence" of the PC age and well into the period where it was cool to have a desktop PC and really learn about it.

      Phones are dominant now and have passed the PC generation by - in number, not capability. The concept of copy/paste/save for arbitrary data lives on for the non-tech masses only in the form of screenshots and screen recording features.

      • littlestymaar 3 minutes ago ago

        long press -> save image/video is perfectly supported on a phone, it's just content diffusion platform that arbitrarily restrict it.

      • fragmede 26 minutes ago ago

        "Fitting into my pocket so I can use it in line at the post office" is a capability that desktop PCs have yet to manage to achieve.

        • throw-qqqqq 13 minutes ago ago

          But are DRM and poor user experiences hard requirements for something to fit in your pocket?

          Otherwise, I don’t think I get your point - maybe you could clarify?

        • lenkite 10 minutes ago ago

          "Fitting into my carry-bag so I can use it in line at the post office" is already possible for a PC and many people do it all the time.

        • dotnet00 7 minutes ago ago

          Handhelds like the Steam Deck are PCs and can fit in some pockets :P

        • zvitiate 18 minutes ago ago

          My GPD pocket 4 fits into really large cargo pants if that counts lol, and there is the micropc2 too that’s even smaller :p

          • fragmede 7 minutes ago ago

            Oh fuck you, I didn't have the $1,500 I just spent on Amazon for one of those! I've been waiting forever for them to make one with a finger print sensor, and I thought you were responding to a different comment so I looked it up and thank you :)

    • guardian5x 27 minutes ago ago

      Back then, the focus was on optimising for the user. Now, however, companies prioritise their own interests over the user.

    • thijson 20 minutes ago ago

      I was just reading how ATSC 3 (over the air TV) is kind of stalling because they added DRM fairly late in the roll out. Several people bought receivers that are now incompatible.

    • reaperducer 2 minutes ago ago

      I remember when QuickTime came out in 1991 and it was obvious to everyone that video should be copied, pasted and saved like any arbitrary data.

      I remember when VCR's came out and everyone would take TV shows and share them with their friends.

      By now we should be able to share video on SD Cards that just pop into a slot on the top of the TV, but the electronics companies are now also the content companies, so they don't want to.

    • physicsguy 7 minutes ago ago

      Remember RealPlayer? Grainy 128 x 128 streamed videos in 1998!

    • psychoslave 44 minutes ago ago

      Yes, I see Youtube going deep into enshitiffication. On my Macbook this morning with a FF-dev edition it just stopped to work this morning. Don't know if it's related to the fact I tried to install an extension to "force H264" on my Ubuntu box. On the latter fans started to go crazy as soon as I open a single youtube tab lately and a quick research led me there.

      Actually at this point the only thing that makes the good old aMule a bit less inconvenient to my own expectations are

      - it's missing snippet previews

      - it doesn't have as many resources on every topic out there.

      • kawsper 14 minutes ago ago

        It’s not just you. My Firefox, with no extensions, have struggled on YouTube the past weeks.

        Sometimes I can’t even click on the front page, sometimes when I open a video it refuses to play.

        I don’t know what’s up, but it works in chrome.

        • z500 2 minutes ago ago

          [delayed]

  • bdz 2 hours ago ago

    I use yt-dlp (and back then youtube-dl) all the time to archive my liked videos. Started back in around 2010, now I have tens of thousands of videos saved. Storage is cheap and a huge percent of them are not available anymore on the site.

    I also save temporary videos removed after a time for example NHK honbasho sumo highlights which are only available for a month or so then they permanently remove them.

    • cantor_S_drug an hour ago ago

      You are a digital hoarder. I have taken so many pics that I wouldn't even bother to look back that them (do we ever?) but Google memories is really a neat feature, it refreshes memories. I think you should run a similar service to refresh memory of your favourite videos like they are on speed dail.

      • npteljes 33 minutes ago ago

        I look at my pictures regularly. They are on my phone, mostly I scroll back 1-3 months to refresh my memory, and I often go further back to check on how living things were around me, and to what my general surrounding looked like. I also like to look at game screenshots from time to time. Funny to see how I lived life back then.

        The Memories feature sounds cool. I have something a bit similar on my Nextcloud, "On this day", that shows an image dated on the same day in previous years, and clicking it brings up more pictures from its general time. I love it! So many memories.

      • johnisgood 3 minutes ago ago

        Might sound stupid, but: differences between Google memories vs. Snapchat memories?

        Also my issue is that I would NEVER upload the photos I have on my hard drive due to privacy issues, but if I had a local model that could categorize photos and whatnot, that would be cool. I have over 10k screenshots / images. Many of them have text on it, so probably need OCR.

        > You are a digital hoarder.

        Is this meant to be negative? Many videos I have watched on YouTube are now unavailable. I wish I had saved them, too, i.e. I wish I was a digital hoarder, too, but eh, no space for me.

      • tmountain 44 minutes ago ago

        I'm an amateur photographer. Lately, I've taken to making curated collections from my "slush feeds". Meaning, going through a particular trip, time period, moment and grabbing the best photos, and parceling them out to a dedicated album. Makes for a much better experience and fun to share with friends/family.

      • kccqzy 21 minutes ago ago

        Often when I am bored I pick a random day in the past and look at where I was on that day and which pictures I took. Refreshing memories is a great idea but the low tech way is enough for me.

      • ge96 an hour ago ago

        I compulsively take pictures of the sky, same never to be looked at

        • a012 13 minutes ago ago

          I take pictures of the sky, not to post it somewhere immediately but it’s like documentary captures for later years looking back

        • bluGill an hour ago ago

          Taking pictures is important to getting better. Be glad that each one doesn't cost $.30 in film like it would have in 1980 - not inflation adjusted (prices from memory so perhaps off a bit). That is just the cost of the film you used, if you want to look at the negative you have development costs, and even more costs to get a print. Today you don't have to worry about costs of a photo and so can take a lot of them without worry will it be good, if it is bad just learn from the mistake and throw it away.

        • apples_oranges an hour ago ago

          We can’t ever document all of life on earth but we can try

          • coldpie 12 minutes ago ago

            I always wonder how many PB of Google & Apple's servers are dedicated to blurry pictures and videos of fish in aquariums.

      • kristofferR 23 minutes ago ago

        I've seen photography compared to archery recently, and that comparison stuck with me.

        As long as you enjoy the act of shooting, that is enough. Archers doesnt have to keep and look at old scoreboards/targets for the archery to have been enjoyable and worthwhile, it's the same with modern photography.

      • anticodon 25 minutes ago ago

        I routinely review my pics and vigorously delete all duplicates or poor quality images. It helps if you do this for 10-15 minutes every day. At least I'm able to find most of the pictures I remember I took, and I don't have to scroll through 1000 snaps of some particular sunset to do that.

    • blarg1 an hour ago ago

      I started after channels started removing their own videos because they either didn't think the videos were good enough or they had a mental break and deleted their channel. So good stuff just gone.

      • doublerabbit 21 minutes ago ago

        Some of the old YTPs were fantastic. They don't exist now.

        Generations of talent & creativity just gone.

    • mynameisash 37 minutes ago ago

      I was just lamenting last night that we can't watch some of Terutsuyoshi's amazing makuuchi bouts from about three(?) years ago. I wish I'd archived them.

    • chrsw 33 minutes ago ago

      Anything you see on the Internet can be gone in a moment. If something is important to you, you must save it to guarantee you want to see it again.

    • nicman23 an hour ago ago

      do you have a cron job or something? i know it is probably trivial but eh

      • ivanjermakov an hour ago ago
        • trvz an hour ago ago

          You people always make everything more complicated than necessary.

            yt-dlp -o '%(uploader)s/%(upload_date)s - %(title)s [%(id)s].%(ext)s' --cookies-from-browser chrome https://www.youtube.com/playlist?list=LL
          • hrimfaxi 35 minutes ago ago

            That does none of the things tubearchivist does, among them:

            - Subscribe to your favorite YouTube channels - Index and make videos searchable - Play videos - Keep track of viewed and unviewed videos

            Not to mention having to ssh and copy paste URLs around, instead of visiting a page in my browser.

          • bspammer 35 minutes ago ago

            > Once your YouTube video collection grows, it becomes hard to search and find a specific video. That's where Tube Archivist comes in: By indexing your video collection with metadata from YouTube, you can organize, search and enjoy your archived YouTube videos without hassle offline through a convenient web interface.

            If you don't want the indexing and the pretty frontend that's fine, but there's a reason software like Plex is popular.

        • darkwater 27 minutes ago ago

          Ooooh thanks! ElasticSearch? Who cares, gotta use somehow that spare memory in my k8s home cluster!

        • postexitus 34 minutes ago ago

          Gives me Magnum Archives vibes.

        • moffkalast an hour ago ago

          Damn, one can really build an offline internet for themselves these days huh?

      • bdz an hour ago ago

        No! It would be easier but I burned myself so many times with removed videos that I do it on my own basically asap manually. Not a big deal once you have yt-dlp properly

    • trallnag an hour ago ago

      Do you ever go back and actually watch those videos? Whenever I start to journal, track, or just document something, after some time I notice again and again that most of the value has already been created the moment I finish working on a specific entry. Even with something seemingly very important like medical records. Maybe one exception I can think of are recordings of memories involving people close to you

      • dylan604 35 minutes ago ago

        I don’t think journaling is the same thing though as hoarding pics/videos. Even if you never go back and read through old hand written journals, just the physical process of writing has mental effects that pics/videos do not. There’s also a bit of therapeutic results from slowing down and putting thought to paper. So to me the only similarity is that you might not ever look at it again, that does not make them the same at all

      • bdz an hour ago ago

        I actually do! I have a perpetual VLC playlist which plays those videos randomly if I need some background noise.

        • avhception 36 minutes ago ago

          I also have a ton of music videos from Youtube. Many of them are fan-made, many already unavailable I sometimes play them on a projector when I'm throwing a party.

      • f_devd an hour ago ago

        I have the same with journals, but the video archiving has actually come up a few times, still fairly rare though. I think the difference is that you control the journal (and so rarely feel like you need it's content) while the videos you're archiving are by default outside of your control and can be more easily lost.

      • rob an hour ago ago

        I would be interested in knowing as well. I've been watching YouTube since it first came out and can't remember any times where I saw something I thought I needed to actually download and save in case I wanted it in 10 years. 10,000+ videos is a lot of videos to just seemingly save.

        • ndriscoll an hour ago ago

          Whether something is worth downloading is a good heuristic for whether it's worth watching in the first place. e.g. university lectures, technical talks, hobby technique tutorials, etc. are something you may want to reference in the future, or you may want to save for your kids in case they're interested in it one day, etc. The latest slop from professional "content creators" that you can't imagine keeping so you can pass it down one day? Not worth your time today either.

    • moralestapia 2 hours ago ago

      Same here and my motivation was that some of my liked videos were randomly removed and it's pretty cool music I wanted to keep forever.

      I made another script that adds the video thumbnail as album art and somehow tries to put the proper ID3 tags, it works like 90% of the time which is good enough for me.

      Then I made another script that syncs it to my phone when I connect it.

      So now I have unlimited music in my phone and I only have to click on "Like" to add more.

      And yet, none of Google's 900k TOC genius engineers have thought of this as a feature ...

      • dylan604 31 minutes ago ago

        I doubt that it’s a nobody else situation, and it’s more of a management doesn’t want it as it takes away the need for their own streaming offerings. Music industry also doesn’t want it, as there’s no more royalties coming in. Can’t release an app that pisses of the industry.

      • FergusArgyll 44 minutes ago ago

        I have a script that calls out to a small llm

          artist = llm_call("return the name of the artist based on this title", title)
        
        etc. with some stripping of newlines etc. It works well! they can often infer the correct answer even if it's not present in the title
        • moralestapia 34 minutes ago ago

          Hey ^^, that's a great idea.

          I wrote all of this stuff pre-LLMs, never occurred to me until now, thanks!

      • anamexis an hour ago ago

        > And yet, none of Google's 900k TOC genius engineers have thought of this as a feature ...

        Isn’t that the YouTube Music app?

        • moralestapia 36 minutes ago ago

          No.

          • anamexis 13 minutes ago ago

            How so? What’s missing?

            • rob 6 minutes ago ago

              [delayed]

            • moralestapia 3 minutes ago ago

              * Several hundred million tracks that are not labeled as "music" by uploaders, to start.

              * Seamless playback.

              * Native integration with my phone music player.

              * "My YouTube likes automatically go to my device".

              * If a track is removed, it stays on my device.

              (Did you take 10 seconds to read my comments here?)

  • karel-3d 6 minutes ago ago

    From https://github.com/yt-dlp/yt-dlp/issues/14404

    > What about Selenium or a headless browser solution?

    >

    > The yt-dlp maintainers have no interest in doing this except as a measure of last resort. A headless browser solution would be an admission of defeat and would go against the spirit of this project.

  • xeonmc 3 hours ago ago

    In ten years time YouTube will be entirely inaccessible from the browser as the iPad kids generation are used to doomscrolling the tablet app and Google feels confident enough to cut off the aging demographic.

    • vachina 2 hours ago ago

      They’d need dedicated hardware to enforce any kind of effective DRM. Encrypted bitstream generated on the fly watchable only on L2 attested device.

      • gruez 10 minutes ago ago

        >They’d need dedicated hardware to enforce any kind of effective DRM.

        That's already here. Even random aliexpress tablets support widevine L1 (ie. highest security level)

      • ticulatedspline an hour ago ago

        maybe to stop the .01%. switching to app only, sign in only would get them pretty much all the way there.

        They own the os, with sign-in, integrity checks, and the inability to install anything on it Google doesn't want you to install they could make it pretty much impossible to view the videos on a device capable of capturing them for the vast majority of people. Combine that with a generation raised in sandboxes and their content would be safe.

        • spwa4 an hour ago ago

          "their" content? This is Youtube.

          Of course, the same can be said for FB, Tiktok, instagram, Pintrest, reddit, ... and I'm sure the list keeps going. Frankly, Youtube is pretty damn good about this, really.

          • doublerabbit 16 minutes ago ago

            No where else to go that pays. They can pay which entices those to stay.

            Google owns that monopoly.

      • lloeki 2 hours ago ago

        Netflix is already there for 4k streams

        • KeplerBoy 2 hours ago ago

          And it's an entirely useless effort. No idea how it is done but the internet is full 4k rips.

          • alex7o an hour ago ago

            They find devices that are easy to hack (and I mean rip and tear) and extract the decryption keys from each of them, from what I have heard cheap chinese tvs and set top boxes, they extract the keys from the chips (hardware hacking, heard some even use microscopes to read the keys by hand), and then use them to decrypt streams, I heard that they catch them pretty fast to they use like 1 device per season. This is why they use mostly stollen devices.

            • jcalvinowens 43 minutes ago ago

              The really shitty thing is that vulnerable devices get blacklisted en masse, so all legitimate users get stuck with 480p video content on streaming services. The Nexus 5 got this treatment, as I understand it, because it was too easy to extract the keys.

            • 13hunteo an hour ago ago

              Interesting - do you have any sources to read further?

            • gpderetta an hour ago ago

              The analog hole is real.

        • sabatonfan 2 hours ago ago

          I knew of this chrome bug which could allow netflix to be ripped. I had heard it in comments of some section of youtube and I might need to look further into it but its definitely possible.

        • kelvinjps10 an hour ago ago

          It's not as easy as downloading a YouTube video though

      • yard2010 2 hours ago ago

        Can you explain in simple terms what would prevent one from running the decryption programmatically posing as the end client?

        • GeoAtreides an hour ago ago

          Yes, it's called: Web Environment Integrity + hardware attestation of some kind

          > "the technical means through which WEI will accomplish its ends is relatively simple. Before serving a web page, a server can ask a third-party "verification" service to make sure that the user's browsing environment has not been "tampered" with. A translation of the policy's terminology will help us here: this Google-owned server will be asked to make sure that the browser does not deviate in any way from Google's accepted browser configuration" [1]

          https://www.fsf.org/blogs/community/web-environment-integrit...

        • robmccoll an hour ago ago

          Let's say the only devices you can get that will run YouTube are running i/pad/visionOS or Android and that those will only run on controlled hardware and that the hardware will only run signed code. Now let's say the only way to get the YouTube client is though the controlled app stores on those platforms. You can build a chain of trust tied to something like a TPM in the device at one end and signing keys held by Apple or Google at the other that makes it very difficult to get access to the client implementation and the key material and run something like the client in an environment that would allow it to provide convincing evidence that it is a trusted client. As long as you have the hardware and software in your hands, it's probably not impossible, but it can be made just a few steps shy.

        • Thorrez an hour ago ago

          Here are a couple ideas:

          The decryption code could verify that it's only providing decrypted content to an attested-legitimate monitor, using DRM over HDMI (HDCP).

          You might try to modify the decryption code to disable the part where it reencrypts the data for the monitor, but it might be heavily obfuscated.

          Maybe the decryption key is only provided to a TPM that can attest its legitimacy. Then you would need a hardware vulnerability to crack it.

          Maybe the server could provide a datastream that's fed directly to the monitor and decrypted there, without any decryption happening on the computer. Then of course the reverse engineering would target the monitor instead of the code on the computer. The monitor would be a less easily accessible reverse engineering target, and it itself could employ obfuscation and a TPM.

        • bayindirh an hour ago ago

          Attestation requiring a hardware TPM 2.0 (or higher), and not being able to extract the private key from the TPM on your system.

          TPM is Mathematically Secure and you can't extract what's put in. See, Fritz-Chip.

      • oblio 2 hours ago ago

        I guess at that point we could do it the old fashioned way by pointing a camera at the screen. Or, I guess, a more professional approach based on external recording.

      • fsflover 2 hours ago ago

        Which is why Windows 11 requires TPM.

        • icpmoles 41 minutes ago ago

          DRM protection schemes usually don't rely on TPM, the real magic happens inside your GPU and the monitor.

        • goku12 an hour ago ago

          TPM isn't the only misfeature that makes Windows 11 an abomination. People who don't switch to a respectful platform is in for a lot of pain.

    • andy_ppp 2 hours ago ago

      The YouTube web app is so full of bugs it's almost unusable on a phone.

      Comments also disappear regularly on all platforms...

      • sussmannbaka 2 hours ago ago

        I can only navigate to a video by long-pressing, copying the URL and pasting it into the URL bar, otherwise I get a meaningless "something went wrong" type error message. Mobile Safari, no content blockers, not logged into a Google account. After almost two decades of making the website worse they finally succeeded in breaking "clicking a video". I wonder what the hotshots at Alphabet manage to break next :o)

        • dylan604 24 minutes ago ago

          This was happening to me browsing in FF with uBO. It would work as soon as I disabled uBO. I realized uBO needed an update, and it went back to working with uBO active after the update. For a couple of hours I was ready to never use YT again if it meant suffering their obnoxious interruptions with ads.

        • Barbing 2 hours ago ago

          Works dandily here.

          Suspicion: they’ve fingerprinted me hard and know I have premium but like to watch occasionally from Safari private (with content blockers) and don’t hassle me.

          Mainly suspect this given lack of anti-adblocking symptoms.

      • goku12 an hour ago ago

        > Comments also disappear regularly on all platforms...

        I don't believe that that's a bug. The disappearance depends a lot on the topic of those comments. It's very much deliberate censorship.

        • kllrnohj an hour ago ago

          > It's very much deliberate censorship.

          Also known as "moderation"

      • RGamma 2 hours ago ago

        Do you also get looping search results? I've also had it happen to the simple "videos" tab of a channel.

      • ACCount37 2 hours ago ago

        And the YouTube web interface is full of issues too. For example, livestreams had transient memory leaks for months already, thought to be related to their chat implementation.

        In the meanwhile, YouTube spends its effort on measures against yt-dlp, which don't actually stop yt-dlp.

        What the fuck is wrong with Google corporate as of late.

        • hbbio an hour ago ago

          > livestreams had transient memory leaks for months already

          maybe it's vibe coded nowadays

        • mring33621 an hour ago ago

          dumb middle management driven by dumb metrics

          a very old story...

      • neuroelectron 2 hours ago ago

        Google is having a hard time conforming to their own javascript standards.

    • butlike an hour ago ago

      They'll never leave money on the table like that. The older demographic are the only ones that can buy things.

    • BenGosub 31 minutes ago ago

      One constant about Google, they always bet on the web.

    • notepad0x90 an hour ago ago

      i think a lot of millenials and older gen-z use youtube on browsers. It has more and more alternative competitors too, like bilibili in China.

      • fragmede an hour ago ago

        Ooh thanks. If the 21st century is going to belong to China, then BiliBili, along with v2ex.com, is gonna need to get added to my doomscrolling itinerary.

    • wiseowise 2 hours ago ago

      Pffft, and good riddance, comrade! Just think about native application and native performance, great native animations and native experience (and native ads, of course)! We won't have this god-awful Web (that propelled modern tech world in the first place) anymore, we can finally have personal vendetta against awful JS and DOM. No more interoperability, no more leverage against corpos, just glorious proprietary enclaves where local tyrant can do anything they want!

      • ux266478 23 minutes ago ago

        > No more interoperability

        > no more leverage against corpos

        > just glorious proprietary enclaves where local tyrant can do anything they want!

        These are all literally consequences of the web btw, as are things like attestation in consumer hardware.

      • oblio 2 hours ago ago

        Think of iOS. You can basically use just 1 programming stack on iOS devices: Swift/Objective-C. You can't have JIT except for the JIT approved by the Apple Gods.

        The biggest hack to this is React Native, which barged just in due to sheer Javascript and web dominance elsewhere, and even that has a ton of problems. Plus I'm fairly sure that the React Native JS only runs in the JIT approved by the Apple Gods, anyway.

        Otherwise, we're stuck in the old days of compiled languages: C/C++ (they can't really get rid of these due to games, and they have tried... Apple generally hates/tolerates games but money is money). Rust works decently from what I hear. Microsoft bought Mono/Xamarin and that also sort of works.

        But basically nothing else is at the level of quality and polish - especially in terms of deployment - as desktops, if you want to build an app in say, Python. Or Java. Or Ruby. Or whatever other language in which people write desktop apps.

        And we're at a point where mobile computing power is probably 20x that of desktops available in 2007. The only factor that is holding us back is battery life, and that's only because phone manufacturers manufacture demand by pushing for ever slimmer phones. Plus we have tons of very promising battery techs very close to increasing battery capacities by 20-50%.

    • crazygringo 2 hours ago ago

      This is obviously not plausible. They're never going to shut off browser access on people's laptops. Watching YT at work is a major thing.

      I have to assume you're joking, but I honestly can't figure out what point you're even trying to make. Do it think it's surprising that an ad-supported site has anti-scraping/anti-downloading mechanisms? YouTube isn't a charity, it's not Wikipedia.

      • dawnerd 2 hours ago ago

        Not to mention all of the iframe embeds. I’d argue it’d helped YouTube become the defacto go to platform for corporate videos. Yeah there’s other solutions but the number of corp sites that just toss videos on YouTube is insane.

      • reddalo 2 hours ago ago

        They can't shut off browser access, but they surely can kill all non-Chromium browsers.

        • crazygringo 2 hours ago ago

          No, they can't. Way too many devices, including televisions, access YT via all sorts of browsers. Not to mention antitrust would be all over that. With their dominant browser share, getting people to switch to Chrome by removing access to YT for Firefox would get multiple governments filing lawsuits ASAP.

      • BolexNOLA 2 hours ago ago

        I don’t think it’s such a wild possibility that more and more jobs will be able to be done with locked down tablets and smart phone while fewer will be done on laptops and desktops. We are already seeing it at the personal level - people are entirely forgoing personal computers and using mobile devices exclusively. The amount isn’t huge (like 10 or 15% in the US IIRC?) but 10 years ago that was unthinkable IMO.

        I was reading a study recently that claimed Gen Z is the first generation where tech literacy has actually dropped. And I don’t blame them! When you don’t have to troubleshoot things and most of your technology “just works“ out the box compared to 20 or even 10 years ago, then you just don’t need to know how to work under the hood as much and you don’t need a fully fledged PC. You can simply download an app and generally it will just take care of whatever it is you need with a few more taps. Similar to how I am pretty worthless when it comes to working on a car vs my parents generation could all change their own oil and work on a carburetor (part of this is also technology has gotten more complicated and locked down, including cars, but you get my point).

        The point of all this is I could definitely see a world where using a desktop/laptop computer starts becoming a more fringe choice or specific to certain industries. Or perhaps they become strictly “work” tools for heavy lifting while mobile devices are for everything else. In that world many companies will simply go “well over 90% of our users are only using the app and the desktop has become a pain in the ass to support as it continues to trend downwards so…why bother?”

        Who knows the future? Some new piece of hardware could come out in 10 years and all of this becomes irrelevant. But I could see a world where devices in our hands are the norm and the large device on the desk becomes more of a thing of the past for a larger percentage of the population.

        • crazygringo 2 hours ago ago

          Just because the balance shifts doesn't mean the desktop/laptop stops being supported.

          Laptops aren't going anywhere. Even if phones and tablets replace them for a third of tasks, or a third of people.

          The idea that laptops with browsers would become so rare that YouTube would drop support, within any reasonably predictable future timeframe, is pure fantasy.

          • Barbing an hour ago ago

            All the ewaste MS generated w/Win11 min requirements… I’m thinking that kinda maneuver. Eh not really but anyways:

            A slow dropping of support for those who aren’t using an app or Chrome with some Play(Video) Integrity Extension installed.

          • BolexNOLA an hour ago ago

            >within any reasonably predictable future timeframe

            I think given the pace of technological advancement and given how every generation we see at least one major piece of electronics completely wipe out generations of predictions, this statement doesn’t serve a productive purpose other than to make “I don’t agree” sound like some variation of “it’s an objective fact that what you said is impossible.” You’re just spiking the conversation, even if that is not your intention.

            I didn’t say this is definitely going to happen. I’m just saying clearly the way we engage with computers is shifting and that means companies will adjust accordingly. It’s not that far fetched.

            As for “within any reasonably predictable future timeframe,” for all we know YouTube will become a relic.

            • crazygringo 34 minutes ago ago

              > It’s not that far fetched.

              That's what I'm disagreeing with. Your scenario is far-fetched. This isn't between two comparably plausible scenarios. You can look at current objective trends of desktop/laptop sales and see they're not moving such that they're going to meaningfully disappear to the extent where a popular site like YouTube would remove support. It's absolutely far-fetched. I'm not "spiking" any conversation, I'm simply completely disagreeing based on current actual trends.

      • astura 2 hours ago ago

        >Watching YT at work is a major thing.

        Where are these jobs where I can get paid to watch YouTube?

        • ux266478 9 minutes ago ago

          I think it would give me a life crisis and I'd feel like a failure of a boss if I learned my otherwise productive employees felt they couldn't watch sloptube the clock. A sysadmin that isn't constantly jacked into nethack is hardly a sysadmin at all. You should really demand more humane working conditions if you feel like you have to micro-optimize your work day.

        • phantasmish an hour ago ago

          Lots of people listen to the audio. It’s like a podcast, or having the radio on, which is fine in lots and lots of jobs.

          Some people probably also literally watch it, but I know multiple people who basically use it as a radio at work.

          Plus, never worked anywhere where half of everyone, including management, is more-or-less openly watching sports more than working during major tournaments?

          • crazygringo an hour ago ago

            And nobody's saying you're getting paid to watch YouTube all day. But video links get sent around, and people check out whatever 3 minute video. They watch during lunch. You know how it is.

        • JimmyBiscuit 37 minutes ago ago

          In small shops youtube is quite a handy source of information. I have to prototype and 3D print lots of stuff.

    • Fokamul an hour ago ago

      I hope they will do that, yes really.

      Because this will mean major shift to open-source and community solution, where creators will be paid directly by their viewers.

      I have NO problem, what so ever, to pay content creators directly.

      But I have HUGE problem to pay big corpos. It's ridiculous that we pay for Netflix same price as US people and for you it's cheaper than coffee and for us, if you compare median-salary, it's 5-10x MORE expensive. (cancelled every streaming platform year before as all of my friends, cloud seedbox here we go) And I don't even wanna mention Netflix's agenda they want to push (eg.: Witcher)

      That's why piracy is so frequent here in small country in EU :) Also it's legal or in grey-area, because nobody enforce it or copyright companies are unable to enforce it if you don't make money from sharing. (yes, you don't even need to use VPN with torrents)

      • latexr 44 minutes ago ago

        > Because this will mean major shift to open-source and community solution, where creators will be paid directly by their viewers.

        That’s an unrealistic nerd dream. People haven’t moved off of closed social networks such as Facebook and Instagram, and haven’t flocked to creator-owned platforms such as Nebula. The general public, i.e. the majority of people, will eat whatever Google, Meta, et al feed them. No matter how bad things get, too few people abandon those platforms in favour of something more open.

    • BinaryIgor 2 hours ago ago

      It's not YouTube though, but downloader :)

      "yt-dlp is a feature-rich command-line audio/video downloader with support for thousands of sites. The project is a fork of youtube-dl based on the now inactive youtube-dlc."

      • nicce 2 hours ago ago

        I guess the point was that yt-dlp is only possible, because of the mandatory protocols you need in the browser. Moving to native app makes it much easier to prevent downloading and denying access to the unencrypted content.

        • easton 2 hours ago ago

          I think these days yt-dlp is possible because they're relying on the infra YouTube has for their TV apps, which are html5 (ish) browser apps. so they'd also have to dedicate time to building native apps for every TV in existence, even if youtube.com went away.

          • freefaler an hour ago ago

            I think that too. When the people refresh their TVs with the newer, more DRM friendly/updated version this channel will meet its end :(

        • somat 2 hours ago ago

          My understanding is that the original yt-dl used the browser interface. yt-dlp uses the android app interface.

        • goku12 an hour ago ago

          > Moving to native app makes it much easier to prevent downloading and denying access to the unencrypted content.

          It would still be possible with native apps. Somebody will have to reverse engineer it continuously. So it will be slower, but still possible.

          However, that won't be the case if they start using some secret (like a private key) that you can't access directly from an app, or if they decide that you can't run custom/modified apps. That's what I believe to be the true intentions behind their push to adopt dystopian technologies like secure enclaves and platform attestation. Not really about security as they claim.

          • nicce an hour ago ago

            > That's what I believe to be the true intentions behind their push to adopt dystopian technologies like secure enclaves and platform attestation. Not really about security as they claim.

            Yeah, that is exactly I was thinking.

      • bluGill 2 hours ago ago

        Doesn't matter, yt-dlp looks like a browser to youtube. They can put authorization/encryption in an app that can't be done in a webpage. By killing browsers they gain control.

      • hu3 2 hours ago ago

        They know that. yt-dlp uses browser-like access to download.

  • rob 8 minutes ago ago

    [delayed]

  • ojosilva 34 minutes ago ago

    I wish @pg would just add "Replace YouTube" to his Frighteningly Ambitious Startup ideas.

    https://paulgraham.com/ambitious.html

  • djoldman 2 hours ago ago

    From

    https://github.com/yt-dlp/yt-dlp/wiki/EJS

    it looks like deno is recommended for these reasons:

    > Notes

    > * Code is run with restricted permissions (e.g, no file system or network access)

    > * Supports downloading EJS script dependencies from npm (--remote-components ejs:npm).

    • arbll an hour ago ago

      It's fine for this project since google is probably not in the business of triggering exploits in yt-dlp users but please do not use deno sandboxing as a your main security measure to execute untrusted code. Runtime-level sandboxing is always very weak. Relying on OS-level sandboxing or VMs (firecracker & co) is the right way for this.

      • jrochkind1 30 minutes ago ago

        i wonder if it would be legal if they did, as an anti-circumvention counter-measure.

    • jbreckmckye 9 minutes ago ago

      For a long time, yt-dlp worked completely with Python. They implemented a lightweight JavaScript interpreter that could run basic scripts. But as the runtime requirements became more sophisticated it struggled to scale

  • bilekas 2 hours ago ago

    More and more recently with youtube, they seem to be more and more confrontational with their users, from outright blocking adblockers, which has no bearing on youtube's service, to automatically scraping creators content for AI training and now anything API related. They're very much aware that there is no real competition and so they're taking full advantage of it. At the expense of the 'users experience' but these days, large companies simply don't suffer from a bad customer experience anymore.

    • goku12 an hour ago ago

      > At the expense of the 'users experience' but these days, large companies simply don't suffer from a bad customer experience anymore.

      This is my personal opinion. They're still affected by customer satisfaction and they're still driven by market forces. It's just that you and I are not their customers. It's not even the YT premium customers. Google is and always has been an ad service company and their primary customers have always been the big advertisers. And they do care about their experience. For example, they go overboard to identity the unique views of each ad.

      Meanwhile the rest of us - those of us who don't pay, those who subscribe and even the content creators - are their captive resources whose creativity and attention they sell to the advertisers. Accordingly, they treat us like cattle, with poor quality support that they can't be bothered about. This is visible across their product lineup from YouTube and gmail to workspace. You can expect to be demonetized or locked out of your account and hung out to dry without any recourse if your account gets flagged by mistake or falsely suspected of politics that they don't like. Even in the best case, you can only hope to raise a stink on social media and pray that it catches the attention of someone over there.

      Their advantage is that the vast majority of us choose to be their slaves, despite this abuse. Without our work and attention, they wouldn't have anything to offer their customers. To be fair to ourselves, they did pull off the bait and switch tactic on us in the beginning by offering YouTube for free and killing off all their competition in the process. Now it's really hard to match their hosting resources. But this is not sustainable anymore. We need other solutions, not complaints. Even paid ones are fine as long as they don't pull these sort of corporate shenanigans.

    • Arainach 2 hours ago ago

      >outright blocking adblockers, which has no bearing on youtube's service

      The scale of data storage, transcoding compute, and bandwidth to run YouTube is staggering. I'm open to the idea that adblocking doesn't have much effect on a server just providing HTML and a few images, but YouTube's operating costs are (presumably, I haven't looked into it) staggering and absolutely incompatible with adblocking.

      • tgv an hour ago ago

        YouTube had a $10B Q3. I cannot imagine them spending $10B on servers and staff in three months.

        • Arainach 17 minutes ago ago

          Making a profit doesn't mean that their costs aren't so high that adblocking isn't compatible.

          Walmart has profits of $157B in 2024, but their business model isn't compatible with people just walking in and grabbing stuff without paying - and doesn't make it ethical to do so even if "they'll be just fine even if I do that"

      • bitmasher9 an hour ago ago

        That’s fine, but YouTube has an obligation to make sure the ads they serve aren’t scams. They are falling short of that obligation.

        • ethmarks 39 minutes ago ago

          Could you elaborate on why? It seems to me that YouTube's implicit contract with the user is "these people paid us to show you this advert", not "we vouch for the integrity and veracity of this advert". I obviously agree that it'd be nice if YouTube would put more effort into screening adverts, but I don't see why they're _obligated_ to. I'm happy to be corrected, though.

      • titzer an hour ago ago

        > (presumably, I haven't looked into it)

        YouTube broke even sometime around 2010 and has been profitable ever since. The ad revenue has always been more than enough to sustain operating costs. It's just more growthism = more ads. If you want the YouTube of 2010--you know, the product we all liked and got used to--you can't have it. Welcome to enshittification.

        Personally I find YouTube unusable without an adblocker. On my devices that don't have an ad blocker, it's infuriating.

        • Arainach 13 minutes ago ago

          You can absolutely have that. You can pay for YouTube Premium and you don't get ads. It's shockingly reasonable in my opinion* - dollars spent to hours I watch, it's my personal best value streaming service.

          *Bias disclaimer: I work for Alphabet. Not for YouTube. There's no employee discount, I pay full price for YTP.

    • spockz an hour ago ago

      I’m recently also encountering more unskippable ads, especially in kids videos. There were always two ads. Sometimes the first wasn’t shippable and the second always was. That has gradually shifted to neither being skippable.

  • reddalo 2 hours ago ago

    I wonder why YouTube doesn't implement full DRM, such as Widevine, at this point.

    Is it because it would break compatibility with some devices? Is it too expensive?

    (not that I'd like that; I always download videos from YouTube for my personal archive, and I only use 3rd party or modified clients)

    • haunter 2 hours ago ago

      They are already experimenting with DRM on all videos in certain clients (like the HTML5 TV one) https://github.com/yt-dlp/yt-dlp/issues/12563

      Sooner or later, in the next couple of years, it will happen.

    • dspillett 2 hours ago ago

      > Is it because it would break compatibility with some devices?

      This is a significant part of it. There are many smart devices that would not be capable of running that sort of software. As those cycle out of the support windows agreed way-back-when then this sort of limitation will be removed.

      I'm sure this is not the only consideration, but it is certainly part of the equation.

    • trenchpilgrim 2 hours ago ago

      Yeah, it's pretty much to support backwards compatibility with old smart TVs and the like. They already enforce stricter rules on new hi-res content, and once those old devices cycle out of service you can expect the support to go away.

    • Mindwipe an hour ago ago

      It's just an understandable reluctance to insert a bunch of additional dependencies in your playback stack unless you really, really have to.

      People underestimate how much engineering Netflix have put in over the years to get it to work seamlessly and without much playback start latency, and replicating that over literally millions of existing videos is pretty non-trivial, as is re-transcoding.

      It's not because of older devices - any TV that has got a YouTube app for a decade was required to support Widevine as part of the agreement to get the app, so the tail end of devices you'd cut off would be tiny, and even if they wanted to keep them in use you could probably use the client certificate to authenticate them and disallow general web access. It wouldn't be 100% fullproof but if any open source project used an extracted key you could revoke it quickly.

  • goku12 35 minutes ago ago

    Just one question. I see all these 3rd party clients solving the problem separately. Isn't it easier for everyone to build a unified decoder backend that exposes a stable and consistent interface for all the frontends? That way, it will get more attention and each modification will have to be done only once.

    Since JS is the big issue here, the backend itself could be written in JS, TS or something else that compiles to WASM. That way, the decoder doesn't have to be split between two separate codebase. Deno also allows the bundle to be optionally compiled into a native executable that can run without having to install Deno separately.

  • worldsavior 2 hours ago ago

    yt-dlp feels like a whole army fighting Google. Users reporting and the army performs.

  • rwmj 25 minutes ago ago

    I wish it would have clearer instructions if you're building from source. I managed to get Deno to compile from source today, but there's nothing about how to use EJS.

  • everdrive an hour ago ago

    Perhaps a stupid question, but is there some reason I can't potentially fall back to recording my screen / audio in realtime and saving videos that way? yt-dlp is obviously far superior to this, but just thinking about what my fallback points are.

    • crazygringo an hour ago ago

      You definitely can, it's just 1) vastly slower, and 2) you have to recompress the decompressed video, which loses quality. It's therefore an option of last resort.

      Most people want to be able to download 5 hours of video in the background in 5 minutes. Not wait 5 hours while their computer is unusable.

      • netsharc an hour ago ago

        I wonder if it has to be a real computer, display, and camera, or if doing it with a "headless display" that is nonetheless being fed to a "video recorder" would work...

        Funny how it'd be like The Matrix...

        • npteljes 23 minutes ago ago

          I have written software to do this kind of recording on a laptop, running 4 of the stream itself (different episodes of the same show).

          It opened DRM enabled browsers side by side, ffmpeg captured the video from the respective parts of the screen, and each browser's audio was piped into a different dummy output, which ffmpeg also captured of course.

          The tech stack was bash, PHP, php-webdriver, Selenium, Firefox, ffmpeg. So yes, this idea absolutely works! That is, until they crank up the DRM so that software screen capture doesn't work.

        • crazygringo an hour ago ago

          It depends on a lot of factors. But even if it works in a virtual machine, your CPU is going to be pegged at 100% the whole time to handle the re-encoding. Unless you use a hardware h.264 encoder, but then the quality is pretty terrible since it's explicitly optimized for speed over quality and isn't tunable the way software encoders are.

          It's always doable, it's just an option of last resort. You always just want to access the original compressed bitstream if possible.

      • everdrive an hour ago ago

        Understood and agreed. I mostly don't even care about keeping videos from Youtube, but some of the most amazing music performances in the world are trapped on Youtube, and in many cases there is no obvious way to purchase or download them elsewhere.

        eg: https://www.youtube.com/watch?v=HAi1pn3kBqE

    • matsemann an hour ago ago

      With browser's and hardware's support for DRM they could make it impossible if they want to. Basically the OS / recording software sees a blank screen.

      I was on live TV recently and wanted to keep a recording for myself, that wasn't just filming the screen with my phone. I first tried screen recording watching the show in my browser in their streaming service. Got a black video. Then I tried their phone app, got a black video. Finally, using my phone but the web page they enabled playback without DRM and I could record and store it. When more devices support DRM they will probably get rid of that fallback as well.

      • ethmarks an hour ago ago

        I imagine there would be ways around this. I know from personal experience that Kazam screen recorder on Firefox on Ubuntu can record anything and everything, including YouTube as well as DRM content on Disney+ and Prime Video.

        I bet that it Google really wanted to it could force Firefox in line, but I imagine that actually preventing screen recording would require compliance at the OS level too, and I don't think that even Google could demand changes like that to Linux. Best they could do is block Linux clients from YouTube, but user agent spoofing or emulation could probably circumvent that.

        And even if Google does somehow manage to entirely block screen recording, we can always exploit the analog loophole.

        • anal_reactor 21 minutes ago ago

          On Linux you can feed the GPU encoded bitstream and then GPU will use hardware to decode and display it as overlay.

          • ethmarks 10 minutes ago ago

            Why is this relevant? To be clear, I'm asking from a place of ignorance. Are you saying that because the video player can have the video decoding happen entirely on the GPU, screen recording software can't pick it up? Couldn't the software just read from the GPU buffer?

    • npteljes 27 minutes ago ago

      In the current times yes, you can basically record your screen with whatever tool you fancy.

      But even now, many video sites employ DRM, and only the weakest levels of DRM streams can be recorded off the screen. If they crank that up, which is perfectly possible today, the screen recordings only shows a blank rectangle, because the encryption goes from server to video card. At this stage, "hdmi recorders" are the next level - they capture the audio/video stream from the hdmi cable output for example.

      Even further, there is technology to encrypt from server to screen. I'm not sure on the rollout on this one. I think we have a long time until this is implemented, and even then, I'm sure we will have the ability to buy screens that fake the encryption, and then let us record the signal. And, for mainstream media, there will be pirated copies until the end of time I think.

    • OGWhales an hour ago ago

      I don't know if Youtube cares, but other website do attempt to block this as well. They will either black your screen or prevent playback if you try to screen record, even encrypting to prevent recording the HDMI/DP output.

  • tensegrist 3 hours ago ago
  • zhengiszen 27 minutes ago ago

    Then someday it with require an entire llm installed locally

  • globular-toast 2 hours ago ago

    It's quite worrying. A sizeable chunk of cultural and educational material produced in the last decade is in control of greedy bastards who will never have enough. Unfortunately, downloading the video data is only part of it. Even if we shared it all on BitTorrent it's nowhere near as useful without the index and metadata.

    • anal_reactor 19 minutes ago ago

      From the preservation point of view yes. But realistically, it's been the norm throughout human history that irrelevant culture simply gets removed.

    • crazygringo an hour ago ago

      What are you talking about? It's in control of the creators. YT doesn't get exclusive copyright on user's content. Those creators can upload wherever they want.

      And YT isn't "greedy bastards". They provide a valuable service, for free, that is extremely expensive to run. Do you think YT ought to be government-funded or a charity or something?

      • OGWhales an hour ago ago

        > Do you think YT ought to be government-funded

        Benn Jordan made a pretty compelling video on this topic, arguing that the existing copyright system and artifacts of it are actually not that great and a potential government system might actually be better: https://www.youtube.com/watch?v=PJSTFzhs1O4

        I will say that is something I would not have considered reasonable prior to watching his video.

  • adolph 23 minutes ago ago

    Is captcha solving on yt-dlp's roadmap? This seems to be a natural next step. Maybe there is an external library they could integrate?

  • jrochkind1 32 minutes ago ago

    I am impressed at their resourcefulness.

    Knock on wood not to jinx it, but I wonder why this manages to stay up on github when eg paywall-busting chrome extensions get banned from there (because of DMCA takedowns I guess?)

    • shbooms 10 minutes ago ago

      there was already an attempt to take it down back in 2020/2021 [0]. The DMCA claim's main argument was that ytdl was circumventing Techincal Protection Measures (TPMs) in order to access the content. Thanks to a letter from the EFF [1] which explains how ytdl accesses content in the same way that a browser does (i.e. it does circumvent anything such as DRM), github rejected the takedown.

      this is also why ytdl has stood firm in saying they will never attempt to be compatible with anything protected by DRM.

      [0] https://github.blog/news-insights/policy-news-and-insights/s...

      [1] https://github.com/github/dmca/blob/master/2020/11/2020-11-1...

      • jrochkind1 4 minutes ago ago

        Thanks for context with good links!

  • LucavagoHellman an hour ago ago

    god damn they the youtube is at fault, always says: forbidden when trying to download a book audiobook

  • creaktive an hour ago ago

    Ah! So, that’s why brew no longer updates yt-dlp on my iMac from 2017 ¯\_(ツ)_/¯