133
submitted 8 months ago by throws_lemy@lemmy.nz to c/technology@beehaw.org
you are viewing a single comment's thread
view the rest of the comments
[-] Car@lemmy.dbzer0.com 26 points 8 months ago

Thankfully it seems that encoding ads into the video stream is still too expensive for them to implement.

I'm assuming that asking CDNs to combine individualized ads with content and push the unique streams to hosts does not scale well.

[-] blindsight@beehaw.org 16 points 8 months ago* (last edited 8 months ago)

Since they target ads demographically and ads change frequently, that would be a mess... The encoding, storage, and tracking would be a Big problem.

If they go this route, it would only make sense if they build a new video codec that allows for linearly splitting content at key frames so they can concatenate the ads with the video in a single file at runtime.

But then couldn't ad detectors just start playback at the key frames?

Even if it works, it would still be a Big Deal since re-encoding all of YouTube would be Hard. I guess they could just use the codec for all newly added material. Playback might suck on older devices, too; idk if they use h264 (that has dedicated hardware decoders)?

[-] jmcs@discuss.tchncs.de 5 points 8 months ago

If they go back to contextual ads instead of making the NSA look like reasonable people, they could pre-insert them like some podcasts do

[-] noodlejetski@lemm.ee 3 points 8 months ago

and for that, there's SponsorBlock https://sponsor.ajay.app/

[-] lemmyvore@feddit.nl 2 points 8 months ago

It's not that expensive. You can mix or overlay stuff over a video stream fairly cheaply. Sure, it will be a hit overall for their bottom line but they'll do it if they have to.

They can also turn on DRM for all videos on the platform. Currently it's only used for paid videos and it's very hard to bypass.

[-] GissaMittJobb@lemmy.ml 1 points 8 months ago

I don't think that inlining ads into the stream would be expensive, because of how adaptive streaming formats work. There are probably other reasons why they haven't chosen this option yet.

[-] Car@lemmy.dbzer0.com 1 points 8 months ago

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 8 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.

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

Technology

37208 readers
302 users here now

Rumors, happenings, and innovations in the technology sphere. If it's technological news or discussion of technology, it probably belongs here.

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