by russellbeattie · 3y ago · 0 comments
It seems YouTube is creating an arms race with ad blockers and alienating users by threatening bans than simply changing the way the ads are served. Yes, there's a whole industry around bidding for, dynamically serving and tracking ads using VAST and all that, but I'm positive Google has the market power to change that.
- Fetch the video multiple times
- Cut out the non-overlapping segments from the video shown to the user.
This assumes that a different ad is shown every time. Crowd-sourcing like with Sponsor Block could come in handy here.
I would assume they do this for caching and personalization. Presumably, YouTube can make more from personalized ads. However, if they embedded these ads in the main video stream caching would be more challenging.
So for instance, if normally the first 100 bytes of the video (as fetched via yt-dl) are like "googlevideo.com/gibberish-id?signature&rage=0-100", then you could transparently insert an ad into the next 100 bytes by making "googlevideo.com/gibberish-id?signature&rage=100-200" return the ad. Of course this makes the serving logic much more complicated, so it's probably why they don't do it. You'd also have to appropriately cut on a keyframe, muck around with muxing so things splice properly, and so on.
Another possibility to enforce that ads are seen (or at least things are appropriately delayed) is to simply only return video URLs if there was a "pingback" that an ad was seen. So if you serve a 10 sec ad, but the user requests a video URL before the 10 seconds are up, just reject it. This requires a bit more logic on the serving end to track state, but is easier than the previous proposal.
Yeah, same -- cable TV has been doing that since god knows how long. There must be some internal engineering reason(s) behind it.