Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dumb question: Technical difference between downloading a YouTube video and watching it? #32808

Closed
Rekrullurker opened this issue Jun 10, 2024 · 3 comments
Labels

Comments

@Rekrullurker
Copy link

Checklist

  • [X ] I'm asking a question
  • [X ] I've looked through the README and FAQ for similar questions
  • [X ] I've searched the bugtracker for similar questions including closed ones

Question

WRITE QUESTION HERE

As I'm sure you know, when you watch a video on YouTube, you will be force-fed inline video ads every few minutes, and pretty much every purported method of blocking them doesn't work. Yet, when you download a video, presumably it's getting the file from the exact same source, only there are no ads, just the video file.

I'm curious about the technical differences between downloading a video vs. watching it in a browser. What is it that programs like youtube-dl and yt-dlp do differently than a web browser, that the site just sends the entire video uninterrupted without ads?

Is it a case of the official YouTube video player being able to be remotely controlled by YouTube, so that when they tell it to pause the video and show an ad, it does it?

If that's the case, why has nobody ever written a browser add-on that simply replaces the official player with one that won't obey YouTube's commands? It seems like that would be a better option for avoiding ads, than trying to write some convoluted ad blocker that doesn't even work.

Or is there some technical reason that a stand-alone program can download just the video, but watching a video can only be done with ads?

And yes, I know there are command line options to use youtube-dl to stream videos to a stand-alone media player, like VLC, I'm wondering why the in-browser video player can't be replaced so you get a normal YouTube experience, but without the rage-inducing ads.

@dirkf
Copy link
Contributor

dirkf commented Jun 10, 2024

When you watch a video on the YT website you are watching through the megabytes of JS code that YT includes in each video page to subvert straightforward HTML5 video. Some of that implements the exciting social media features offered by YT, some selects pointless ads that you're going to ignore.

@Rekrullurker
Copy link
Author

Why has nobody ever made a browser add-on that selectively bypasses the code that allows them to show ads?

@dirkf
Copy link
Contributor

dirkf commented Jun 10, 2024

Of course people have found various techniques for bypassing ads but an arms race against YT is not going to be successful. DNS blacklists may have been effective but YT is currently upping the stakes, so I don't know what the current status is (and anyway this is not on-topic for this tracker).

@dirkf dirkf closed this as completed Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants