this post was submitted on 31 Oct 2023
133 points (100.0% liked)

Technology

37630 readers
267 users here now

A nice place to discuss rumors, happenings, innovations, and challenges in the technology sphere. We also welcome discussions on the intersections of technology and society. If it’s technological news or discussion of technology, it probably belongs here.

Remember the overriding ethos on Beehaw: Be(e) Nice. Each user you encounter here is a person, and should be treated with kindness (even if they’re wrong, or use a Linux distro you don’t like). Personal attacks will not be tolerated.

Subcommunities on Beehaw:


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Car@lemmy.dbzer0.com 1 points 11 months ago (1 children)

This seems simple for one stream, but scale that up to how many unique streams that Youtube is servicing at any given second. 10k?

Google doesn't own all of the hardware involved in this video serving process. They push videos to their local CDNs, which then push the videos to the end users. If we're configuring streams on the fly with advertisements, we need to push the ads to the CDNs pushing out the content. They may already be collocated, but they may not. We need to factor in additional processing which costs time and money.

I can see this becoming an extremely ugly problem when you're working with a decentralized service model like Youtube. Nothing is ever easy since they don't own everything.

[–] GissaMittJobb@lemmy.ml 1 points 11 months ago

So what you would do is to generate the manifest files (HLS/DASH/what have you) on the fly to include the segments with ads. Since adaptive streaming is based on manifests, that stitch together segments of video files that together make up the underlying content in different bitrates, you can essentially just push in a few segments of advertising in-between the segments representing the underlying content. This isn't particularly hard to do, and you'd get the full benefit of the CDN for the segments, so there's really no issue.