News for hackers. Stuff that matters.
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.