Author Topic: YouTube's latest idea: server-side ad injection  (Read 1824 times)

0 Members and 1 Guest are viewing this topic.

Offline madiresTopic starter

  • Super Contributor
  • ***
  • Posts: 8080
  • Country: de
  • A qualified hobbyist ;)
YouTube's latest idea: server-side ad injection
« on: June 13, 2024, 01:58:49 pm »
From SponsorBlock (https://fosstodon.org/@sponsorblock/112603139898164385):
Quote
YouTube is currently experimenting with server-side ad injection. This means that the ad is being added directly into the video stream.

Some reddit users confirmed that: https://www.reddit.com/r/uBlockOrigin/comments/1de9kv5/youtube_is_currently_experimenting_with/
 

Offline pqass

  • Frequent Contributor
  • **
  • Posts: 871
  • Country: ca
Re: YouTube's latest idea: server-side ad injection
« Reply #1 on: June 13, 2024, 02:56:44 pm »
They may take our attention, but they'll never take our mute button!  And hopefully the FF still works.
 

Offline NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9180
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: YouTube's latest idea: server-side ad injection
« Reply #2 on: June 13, 2024, 10:45:52 pm »
They may take our attention, but they'll never take our mute button!  And hopefully the FF still works.
Anything they do to handle ads differently from content can be used against them. That includes disabling seeking, we'll just have that trigger an automatic mute and blank.

Also, unless there would be the exact same ads at the exact same times per video, wouldn't it be possible to download it multiple times and just reject what differs? (It would also generate multiple ad "views" which would make things interesting...)
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 

Offline Faranight

  • Supporter
  • ****
  • Posts: 229
  • Country: si
Re: YouTube's latest idea: server-side ad injection
« Reply #3 on: June 14, 2024, 06:09:04 am »
If they add ads directly into the video, then how are they going to serve videos without ads to paying subscribers?
And if they keep some videos without ads for this purpose, how are they going to prevent non-subs from using addons that redirect the videos from ones with ads to ad-less?
Fara-day? Fara-night.
 

Online Halcyon

  • Global Moderator
  • *****
  • Posts: 5855
  • Country: au
Re: YouTube's latest idea: server-side ad injection
« Reply #4 on: June 14, 2024, 06:13:01 am »
Hmmm. I hope this doesn't cause issues for those of us who download Youtube videos to watch locally.
 

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 15102
  • Country: fr
Re: YouTube's latest idea: server-side ad injection
« Reply #5 on: June 14, 2024, 06:37:48 am »
That sounds nice.  :-DD
 

Offline shapirus

  • Super Contributor
  • ***
  • Posts: 1619
  • Country: ua
Re: YouTube's latest idea: server-side ad injection
« Reply #6 on: June 14, 2024, 06:39:51 am »
Hmmm. I hope this doesn't cause issues for those of us who download Youtube videos to watch locally.
isn't that a criminal offense already?
 

Online Halcyon

  • Global Moderator
  • *****
  • Posts: 5855
  • Country: au
Re: YouTube's latest idea: server-side ad injection
« Reply #7 on: June 14, 2024, 06:54:00 am »
Hmmm. I hope this doesn't cause issues for those of us who download Youtube videos to watch locally.
isn't that a criminal offense already?

Not in Australia.
 

Offline PlainName

  • Super Contributor
  • ***
  • Posts: 7119
  • Country: va
Re: YouTube's latest idea: server-side ad injection
« Reply #8 on: June 14, 2024, 06:59:57 am »
If they add ads directly into the video, then how are they going to serve videos without ads to paying subscribers?
And if they keep some videos without ads for this purpose, how are they going to prevent non-subs from using addons that redirect the videos from ones with ads to ad-less?

Simples: same raw video and they know the user connected, so if that user is targeted for ads they periodically interrupt the stream and fill with the ad stream, then carry on. No need for more than one version of the video.

Same technology, I'd imagine, that lets them insert personalised adverts - not all users see the same ad in a video. And not all users see adverts now anyway - I bet they don't have a zillion different versions of a video in storage, just the one that everyone sees.
 

Offline shapirus

  • Super Contributor
  • ***
  • Posts: 1619
  • Country: ua
Re: YouTube's latest idea: server-side ad injection
« Reply #9 on: June 14, 2024, 07:06:09 am »
Hmmm. I hope this doesn't cause issues for those of us who download Youtube videos to watch locally.
isn't that a criminal offense already?

Not in Australia.
That was a joke that I hope remains only a joke.
 
The following users thanked this post: Ed.Kloonk

Offline hans

  • Super Contributor
  • ***
  • Posts: 1669
  • Country: nl
Re: YouTube's latest idea: server-side ad injection
« Reply #10 on: June 14, 2024, 09:08:53 am »
Hmmm. I hope this doesn't cause issues for those of us who download Youtube videos to watch locally.
isn't that a criminal offense already?

Criminal offense, no.

Civil lawsuit, yes, probably, especially if you agreed to their terms of service.

Criminal offense or 'legal action' is propaganda many media companies use to put people off piracy and whatnot. But in reality, it's a civil law case at best (happens more in Germany). Most of the times they can't do much other than block your IP and send messages please not to do it again.
Don't forget that for YT/Google, every user is a breathing data node ready to be mined, so the worst they can do is get people completely off their (advertising) platforms/reach.

There are only a few cases where piracy is really illegal by criminal law, that can put you in jail. Think software piracy, computer crime, etc.
 

Offline NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9180
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: YouTube's latest idea: server-side ad injection
« Reply #11 on: June 14, 2024, 12:33:37 pm »
Simples: same raw video and they know the user connected, so if that user is targeted for ads they periodically interrupt the stream and fill with the ad stream, then carry on. No need for more than one version of the video.

Same technology, I'd imagine, that lets them insert personalised adverts - not all users see the same ad in a video. And not all users see adverts now anyway - I bet they don't have a zillion different versions of a video in storage, just the one that everyone sees.
That would be easy to defeat with multiple downloads and comparing them. Only way to break that would be for each video to have the same ads at the same times for all users, but then that will allow Sponsorblock to work on injected ads.
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 

Offline tszaboo

  • Super Contributor
  • ***
  • Posts: 7820
  • Country: nl
  • Current job: ATEX product design
Re: YouTube's latest idea: server-side ad injection
« Reply #12 on: June 14, 2024, 01:32:11 pm »
Hmmm. I hope this doesn't cause issues for those of us who download Youtube videos to watch locally.
isn't that a criminal offense already?
Maybe a Kangaroo court in New York can convict us a felon as well.
For smart TVs this would actually be great if they do it. It hangs up switching video streams so often, with bad software.
But YT started "offering" me 50 second long unskippable ads. Endless enshittification.
 

Offline PlainName

  • Super Contributor
  • ***
  • Posts: 7119
  • Country: va
Re: YouTube's latest idea: server-side ad injection
« Reply #13 on: June 14, 2024, 02:46:23 pm »
Quote
That would be easy to defeat with multiple downloads and comparing them.

Yes. So?

Nothing is 100% perfect and I doubt if Google expect to catch every last viewer. They just need to make it not worthwhile for those users that would be put off - the hardcore that will jump through any hope to circumvent it probably aren't on their radar (unless they automate it for those that would otherwise succumb).

But, since you mention it, how difficult would it be to check that the destination of two (or more) streams is the same place and just send the same thing, if it got to be a problem? OK, so maybe you download one stream today and another tomorrow, and now you don't have real-time viewing and, instead, a storage issue. Plus it would be trivial to ensure that every stream is unique, even with the very same video. So now the user is using a special tool to compare rendered output rather that stream data, and a bit later the videos will not just be unique in data but will display slightly differently. Now the user had another tool that compares rendered output but allows for a certain level of difference...

I think you may need to rethink 'easy' and compare it with 'worthwhile' :)
 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 12378
  • Country: ch
Re: YouTube's latest idea: server-side ad injection
« Reply #14 on: June 14, 2024, 03:21:34 pm »
If they add ads directly into the video, then how are they going to serve videos without ads to paying subscribers?
And if they keep some videos without ads for this purpose, how are they going to prevent non-subs from using addons that redirect the videos from ones with ads to ad-less?
Streaming them with ads doesn’t mean storing them with ads on the server. Nobody has said that the ads will be baked into the video itself, which they wouldn’t want because that’d mean the ads never change.

Think of it like this: YouTube ads so far have basically been multiple video streams (the video, plus one for each ad), with one ad stream shown at a time with the video paused. The new way is more like cable TV, where it’s one stream.

As for access control: surely you don’t believe that a URL is all that stands between subscription content and non-subscribers?!? Like, c’mon… surely you’ve seen newspaper websites that block an article page if you’re not subscribed. Nothing in the URL changes.
 

Offline PwrElectronics

  • Regular Contributor
  • *
  • Posts: 101
  • Country: us
Re: YouTube's latest idea: server-side ad injection
« Reply #15 on: June 14, 2024, 06:56:28 pm »
Some utube creators I watch now smoothy segue into a sponsored ad in the middle.  At least with these its usually possible to move the slider past the ad to skip most of it.
 

Online Marco

  • Super Contributor
  • ***
  • Posts: 6894
  • Country: nl
Re: YouTube's latest idea: server-side ad injection
« Reply #16 on: June 14, 2024, 07:39:25 pm »
If they add ads directly into the video, then how are they going to serve videos without ads to paying subscribers?
Bigger issue is how to change the ads.

Presumably it's a lossless transcode, they just add extra GOPs. Trivial to do on the fly.
 

Offline NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9180
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: YouTube's latest idea: server-side ad injection
« Reply #17 on: June 14, 2024, 11:23:42 pm »
But, since you mention it, how difficult would it be to check that the destination of two (or more) streams is the same place and just send the same thing, if it got to be a problem?
Surprisingly hard if you take advantage of VPNs or proxies. Or multiple users can collaborate on that problem. (See below for how that could be done without sending full resolution videos between users.)
Quote
Plus it would be trivial to ensure that every stream is unique, even with the very same video. So now the user is using a special tool to compare rendered output rather that stream data, and a bit later the videos will not just be unique in data but will display slightly differently. Now the user had another tool that compares rendered output but allows for a certain level of difference...
There are "fingerprinting" algorithms that can assign values to an image such that images that look nearly identical would have very close values, for easy comparison. A simple one would be to downscale each frame to something small like 240x135 (that's 1/8 of 1080p) and crush the bit depth to something like 5 bits per color. Good luck defeating that without introducing very obvious visual artifacts. But that's unlikely to be implemented in the first place, it would be quite costly to encode a new stream every time.

It's also worth mentioning that MythTV implemented video ad detection like 2 decades ago, with a level of computing power less than a modern Raspberry Pi.
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 15102
  • Country: fr
Re: YouTube's latest idea: server-side ad injection
« Reply #18 on: June 15, 2024, 12:16:22 am »
As a corollary, will this further prevent third-party players to play YT videos, instead of having to use their browser player only?

VLC used to work well for this, apparently it doesn't anymore already. Have been unable to play (stream) YT videos with VLC for a couple months. It did work fine before that.
There are other players that still work, but for how long.
 

Offline John B

  • Frequent Contributor
  • **
  • Posts: 814
  • Country: au
Re: YouTube's latest idea: server-side ad injection
« Reply #19 on: June 15, 2024, 12:42:39 am »
Hopefully the ad is an individual chunk in the stream, then something like yt-dlp could be the best way to grab a local copy. Even if there needs to be a manual identification of the chunk which the user can discard.
 

Online amyk

  • Super Contributor
  • ***
  • Posts: 8374
Re: YouTube's latest idea: server-side ad injection
« Reply #20 on: June 15, 2024, 12:51:25 am »
Broadcast TV ads were always "in the stream", and VCRs several decades ago could automatically detect and pause recording during them (I think it was a heuristic based on the audio and video levels), so this is just going back to that model - only with more computing power to detect the boundaries.

VLC used to work well for this, apparently it doesn't anymore already. Have been unable to play (stream) YT videos with VLC for a couple months. It did work fine before that.
VLC still works for me.
 

Online themadhippy

  • Super Contributor
  • ***
  • Posts: 2883
  • Country: gb
Re: YouTube's latest idea: server-side ad injection
« Reply #21 on: June 15, 2024, 01:06:49 am »
Quote
Broadcast TV ads were always "in the stream", and VCRs several decades ago could automatically detect and pause recording during them (I think it was a heuristic based on the audio and video levels),
thought they worked by the cue dot. the black+ white square that you used to see top right of the screen just before the ad break.
 

Online Halcyon

  • Global Moderator
  • *****
  • Posts: 5855
  • Country: au
Re: YouTube's latest idea: server-side ad injection
« Reply #22 on: June 15, 2024, 03:00:14 am »
...enshittification.

A word I'm going to start using far more often.

 ;D

Quote
Broadcast TV ads were always "in the stream", and VCRs several decades ago could automatically detect and pause recording during them (I think it was a heuristic based on the audio and video levels),
thought they worked by the cue dot. the black+ white square that you used to see top right of the screen just before the ad break.

That's only in the UK to my knowledge. Definitely not a thing in most parts of the world. I think some (most?) VCR's worked by detecting the brief fade-to-black between the main program and the first commercial. Then each commercial is typically played back-to-back with no (or very few) black frames in between, then fading back to black before the main program begins again.

You can see an example of this at the 12:06 mark in this video: https://youtu.be/hFHYX96eZhU?feature=shared&t=726
« Last Edit: June 15, 2024, 03:15:10 am by Halcyon »
 

Offline tggzzz

  • Super Contributor
  • ***
  • Posts: 20274
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: YouTube's latest idea: server-side ad injection
« Reply #23 on: June 15, 2024, 10:09:28 am »
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 

Online Halcyon

  • Global Moderator
  • *****
  • Posts: 5855
  • Country: au
Re: YouTube's latest idea: server-side ad injection
« Reply #24 on: June 16, 2024, 09:23:05 am »
I'm hearing reports that many users of Android-based TV's and various other devices are having a horrible experience. Not sure if this is tied to this garbage YouTube is trying, with injecting ads into video streams, but it's causing video to lock up while the audio keeps going.

Brilliant.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf