this post was submitted on 23 Sep 2024
553 points (97.3% liked)

Technology

59374 readers
7261 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 88 points 1 month ago (16 children)

Honestly, I've kind of always wondered why they didn't just do this. It's always seemed like the obvious thing to me.

I mean, I hope it doesn't work, because screw Google, but I'm still surprised it took them this long to try it.

[–] [email protected] 83 points 1 month ago (11 children)

Because it's much more expensive. What they're talking about here is basically modifying the video file as they stream it. That costs CPU/GPU cycles. Given that only about 10% of users block ads, this is only worth doing if they can get the cost down low enough that those extra ad views actually net them revenue.

[–] [email protected] 19 points 1 month ago

This isn't how YouTube has streamed videos for many, many years.

Most video and live streams work by serving a sequence of small self-contained video files (often in the 1-5s range). Sometimes audio is also separate files (avoids duplication as you often use the same audio for all video qualities as well as enables audio-only streaming). This is done for a few reasons but primarily to allow quite seamless switching between quality levels on-the-fly.

Inserting ads in a stream like this is trivial. You just add a few ad chunks between the regular video chunks. The only real complication is that the ad needs to start at a chunk boundary. (And if you want it to be hard to detect you probably want the length of the ad to be a multiple of the regular chunk size). There is no re-encoding or other processing required at all. Just update the "playlist" (the list of chunks in the video) and the player will play the ad without knowing that it is "different" from the rest of the chunks.

load more comments (10 replies)
load more comments (14 replies)