To get rid of the annoying YouTube message (ad blocker are not allowed on Youtube) use this custom filter in uBlock extension
- Open uBlock extension dashboard
- Open my filters tab
- Copy & Paste this code into my filter
- Apply changes and close all tabs
via: enderman
You don’t need to re-encode the video. Look up HLS segments, which is the standard for streaming video and I assume YouTube uses it.
Each video is split into many segments, like 10 seconds long (though the duration doesn’t matter). The browser first fetches a “playlist” which is just a list of these segments. Then the video player plays each segment in order. So Google could just insert ad-segments into the video stream, and if they did it cleverly, there would be no way to determine that they were ads.
If the browser itself could check those fragments though… 🤔
Yeah they are sooner or later going to do something like this. But then we can download videos and use Ai to remove the ads.
Will probably pop up YouTube proxys that does this on request so we don’t even have to download.