News for hackers. Stuff that matters.
Re:YouTube punishes ad-blocker users with slower videos on n... by spullara on Tuesday November 21, 2023 @01:33PM (#38367943)
If they weren't cheap about it they would just serve a video that has the ads built into it. Instead they try and play them separately because that is cheaper. It would also be a better user experience because there wouldn't be these sharp edges between playing the ad and the content that are separately buffered.
Re:YouTube punishes ad-blocker users with slower videos on n... by Nifty3929 on Tuesday November 21, 2023 @01:45PM (#38368138)
Youtube doesn't produce the videos. Are you suggesting they should re-encode them with the ads inserted into that particular video file? That seems worse, with little gain. Plus think about all of the additional storage and streaming cost required for that, because you'd have to duplicate that ad in all the videos now. Meaning each 15sec ad would add a tiny bit to each of 1B videos, instead of just being a separate 15sec video all by itself. And separate cached in all the places where that video is cached.

This is a bad idea.

Re:YouTube punishes ad-blocker users with slower videos on n... by packetlost on Tuesday November 21, 2023 @02:03PM (#38368309)
I'm fairly certain you could inject ads directly into the video stream at the protocol layer (HLS/DASH) without too much difficulty. Both operate by sending self-contained chunks of encoded media at a time. The real issue there is then preventing the user from skipping those parts of the video.
Re:YouTube punishes ad-blocker users with slower videos on n... by dontblink on Tuesday November 21, 2023 @02:09PM (#38368380)
Technically you are correct. In practice this is difficult to implement though. If you disagree, please provide a PoC?
Re:YouTube punishes ad-blocker users with slower videos on n... by marcosdumay on Tuesday November 21, 2023 @02:26PM (#38368666)
It's almost certainly easier than making an ad-blocker-blocker that works for a reasonable amount of time.

For a start, once you do it, it's done.

Re:YouTube punishes ad-blocker users with slower videos on n... by RandallBrown on Tuesday November 21, 2023 @04:12PM (#38370224)
It's been a long time since I regularly uploaded videos to YouTube, but they used to reencode the video into a bunch of different formats.
Re:YouTube punishes ad-blocker users with slower videos on n... by spullara on Tuesday November 21, 2023 @07:59PM (#38373113)
As others have pointed out, you wouldn't do it that way. You would do it dynamically at runtime inserting them into the video stream.
Re:YouTube punishes ad-blocker users with slower videos on n... by hypeatei on Tuesday November 21, 2023 @03:41PM (#38369764)
Yeah, I'm not sure this is a technical problem for them. Twitch embeds ads into the stream so they can't be blocked.

Honestly, I think YouTube/Google is doing this to setup an argument that ad-blockers are piracy tools so they can be legislated away. Much easier than investing time into a technical solution.

Re:YouTube punishes ad-blocker users with slower videos on n... by overstay8930 on Tuesday November 21, 2023 @01:42PM (#38368093)
There are hundreds of reasons why this wouldn't work, mainly the fact that almost nobody watches the same ads, meaning you're just rendering 100,000+ different versions of the same video depending on who watches it.
Re:YouTube punishes ad-blocker users with slower videos on n... by civilitty on Tuesday November 21, 2023 @02:00PM (#38368279)
You don’t need to render the whole video, just the frames between the last keyframe of the content and the first keyframe of the ad. The rest can just be cached as is.