News for hackers. Stuff that matters.
Re:YouTube's new anti-adblock measures by ranger_danger on Friday June 20, 2025 @01:57PM (#44330199)
I'm surprised they don't just inject the ads directly into the video stream, I think that would solve their issue overnight (not that I want any ads personally). You could also rate-limit it to the playback speed to prevent pre-downloading the stream easily. But now that everything uses HLS/DASH, it's easy to inject different content right in the middle of the stream without re-encoding anything.
Re:YouTube's new anti-adblock measures by walthamstow on Friday June 20, 2025 @02:13PM (#44330366)
That's how some podcast houses do it. Sometimes they'll be mid sentence and the ad will come in.

I pay for a subscription to The Athletic, who used to offer ad free podcasts in their app. Last month they signed an exclusive deal with Acast, and now I cannot possibly listen to their podcasts without ads.

Re:YouTube's new anti-adblock measures by crazygringo on Friday June 20, 2025 @02:07PM (#44330306)
I've also wondered about this for a long time. It seems like there must be something difficult about it, but I can't even guess. Otherwise it seems like they would be, no?
Re:YouTube's new anti-adblock measures by kevindamm on Friday June 20, 2025 @08:12PM (#44333339)
I suspect the difficulty is due to a fear of it turning away too many users, not necessarily a technical one.
Re:YouTube's new anti-adblock measures by recursive on Friday June 20, 2025 @08:29PM (#44333428)
Turning them to where? Doubt it. Those are low value users anyway.
Re:YouTube's new anti-adblock measures by ilkke on Friday June 20, 2025 @08:50PM (#44333540)
If the value was low they wouldn't be squeezing it.
Re:YouTube's new anti-adblock measures by recursive on Saturday June 21, 2025 @05:15PM (#44340779)
Get valuable or leave I guess.
Re:YouTube's new anti-adblock measures by lanfeust6 on Friday June 20, 2025 @02:09PM (#44330327)
The creators themselves will include sponsor segments in their videos, but some users go a step further and use sponsorblock to automatically skip through.
Re:YouTube's new anti-adblock measures by optimalsolver on Friday June 20, 2025 @02:06PM (#44330295)
Creators will never accept it.
Re:YouTube's new anti-adblock measures by recursive on Friday June 20, 2025 @08:30PM (#44333436)
Creators will take what they're given. They have no leverage.
Re:YouTube's new anti-adblock measures by k12sosse on Friday June 20, 2025 @07:13PM (#44332987)
How does Twitch do it? They're super aggressive and even using third party clients that do a good job and not displaying ads, you still get an occasional "commercial break" screen where they're not serving you the content, or the ad, just a "let's all go to the lobby" screen.
Re:YouTube's new anti-adblock measures by thaumasiotes on Friday June 20, 2025 @08:23PM (#44333401)
Those clients could be doing a better job - when twitch starts playing an ad on the main stream, they also provide a secondary stream that shows the actual content.
Re:YouTube's new anti-adblock measures by plopz on Friday June 20, 2025 @11:25PM (#44334229)
i believe that secondary stream is used for picture in picture so its lower quality, like 480p or something
Re:YouTube's new anti-adblock measures by thaumasiotes on Friday June 20, 2025 @11:34PM (#44334264)
Maybe; I don't know anything about it. I will note that that belief could easily develop, true or not, if twitch streams start out in low resolution and increase as you buffer them.

A third-party client has room to make a dramatic improvement on the twitch experience by not dropping audio while you make the switch from the ad stream to the content stream.

Re:YouTube's new anti-adblock measures by ekimekim on Friday June 20, 2025 @08:53PM (#44333557)
Twitch puts the ads directly in the HLS stream, but as seperate segments from the content (a HLS stream is made of many small video files, on twitch they're about 2s long). They're trivial to recognize and filter out (they're actually explicitly tagged as ad segments) but it still won't serve you the actual stream you were trying to watch - the ad segments override it. The best you can do is just block until the first non-ad segment arrives.
Re:YouTube's new anti-adblock measures by noman-land on Friday June 20, 2025 @07:32PM (#44333096)
There exists crowdsourced adblocking based on timestamps (SponsorBlock, Tubular). Soon we will have realtime on-device content-aware AI adblocking. They will ever win.
Re:YouTube's new anti-adblock measures by thomassmith65 on Friday June 20, 2025 @07:35PM (#44333119)
Once we get content-aware AI adblocking, every video and podcast will turn into a product placement.
Re:YouTube's new anti-adblock measures by xnx on Friday June 20, 2025 @08:15PM (#44333362)
I use content aware and blocking to remove inserted and native ads from podcasts. The next level adblocking will be rewriting content that is overly commercial.
Re:YouTube's new anti-adblock measures by toomuchtodo on Friday June 20, 2025 @08:17PM (#44333369)
LLM ad blockers as content processors are next.
Re:YouTube's new anti-adblock measures by noahjk on Friday June 20, 2025 @08:26PM (#44333416)
Any info on how you do that?
Re:YouTube's new anti-adblock measures by coppsilgold on Friday June 20, 2025 @11:04PM (#44334156)
I imagine you can do it by AI-transcribing the podcast while preserving timestamp metadata for each symbol. Use LLM to identify undesirable segments (ask it to output json or something) and then cut them out from the audio with ffmpeg.

Then you would need to set up a server that would do all this and serve as a 'mirror' to your podcasts without the ads.

Re:YouTube's new anti-adblock measures by xnx on Friday June 20, 2025 @11:21PM (#44334221)
You almost exactly described my process: podcast-dl > whisper > Gemini > ffmpeg > ftp > cheap web host
Re:YouTube's new anti-adblock measures by thomassmith65 on Friday June 20, 2025 @11:29PM (#44334244)
If you've gone through that much effort, you might as well turn it into a subscription service. It would be resource intensive, but some people would gladly pay through their nose to rid their podcasts of ads.
Re:YouTube's new anti-adblock measures by xnx on Saturday June 21, 2025 @11:30AM (#44338314)
I'd definitely like to make it easier to use and spread it more widely, but I can't directly distribute the edited (copyrighted) podcast files. Might share transcript markers of the text right before and after ad segments, which is like a slightly more complicated version of what SponsorBlock does.
Re:YouTube's new anti-adblock measures by walthamstow on Saturday June 21, 2025 @11:19AM (#44338226)
What's your prompt for Gemini like, does it include examples of ads? Assume you're using Flash for cost?

I also have a setup like this, I transcribe with Whisper and send it to OpenAI 4o-mini to detect ads then clip those segments with pydub, but my prompt must be lacking because the success rate on detecting ads is maybe 60%

Re:YouTube's new anti-adblock measures by xnx on Saturday June 21, 2025 @02:22PM (#44339606)
My Gemini Flash 2.0 prompt: "Below is the transcript of a podcast preceded by a line number. Reply with the line numbers that are likely to be from advertisements, promotions, commercials, sponsorships, or ending credits."

I think it's better than 60%, but I should definitely set up some evals.

I split the text by sentence, but was considering having the LLM try and put into paragraph (that might conceptually chunk commercial sentences together), but what I've got has been good enough for me.

I wanted to switch to Flash 2.5, but it looks like they increased the price a lot.

I think I could do a fair bit of ad identification just with text heuristics: "This podcast is sponsored/supported by...", etc.

Re:YouTube's new anti-adblock measures by noahjk on Friday June 20, 2025 @11:12PM (#44334188)
I actually found a project which does almost exactly what you've described:

https://github.com/jdrbc/podly_pure_podcasts

Re:YouTube's new anti-adblock measures by nickthegreek on Friday June 20, 2025 @09:06PM (#44333638)
got any links to set this up?
Re:YouTube's new anti-adblock measures by xnx on Saturday June 21, 2025 @02:23PM (#44339609)
Not yet. It's an extremely crude collection of scripts and code, but I should still put it out there soon.
Re:YouTube's new anti-adblock measures by hsbauauvhabzb on Friday June 20, 2025 @08:17PM (#44333371)
It’s already a race to the bottom, blocking tech improves and so does marketing. The latter will pump out as much as you’re scientifically proven to accept before switching off.
Re:YouTube's new anti-adblock measures by ekianjo on Friday June 20, 2025 @08:05PM (#44333293)
They are already doing product placement everywhere..'
Re:YouTube's new anti-adblock measures by thomassmith65 on Friday June 20, 2025 @08:28PM (#44333425)
Few shows are relentless about it.

In the future, everything will be like that vapid chicken wing podcast (the one where they bring on an interesting, talented person and then waste half an hour interviewing her about sriracha)

So Ira Glass will be narrating This American Life while simultaneously reviewing different varieties of Doritos, etc.

...or the producers of The Rest is History will add the Planters Peanut Man as a third host

...or Marques Brownlee will review every product in relation to how well it works with Bose headphones

Re:YouTube's new anti-adblock measures by sodality2 on Friday June 20, 2025 @09:03PM (#44333614)
> Few shows are relentless about it.

My favorite relentless one is Tracker (Amazon Prime), who spend approximately 30% of screen time dedicated to showing off a GMC pickup and Airstream, but the most egregious was one dialog line:

> As Colter enters and gives them hugs, Velma remembers that they got a gift for him. Reenie hands him the gift - very conspicuously packaged in an Amazon box with its trademark logo and blue tape - and says, "I've gotta say, next-day delivery is pretty sweet. Thank you, Amazon Prime!"

Re:YouTube's new anti-adblock measures by nickthegreek on Friday June 20, 2025 @09:08PM (#44333646)
that is not what they do on hot ones. sean is an intelligent interviewer and their team goes above and beyond to find interesting lore in people’s past to showcase. guests are routinely impressed.
Re:YouTube's new anti-adblock measures by thomassmith65 on Friday June 20, 2025 @09:19PM (#44333714)
If a person enjoys a show that is also a brand of hot sauce, it's not for me to say they shouldn't. It's just not my thing; I have too many hangups.
Re:YouTube's new anti-adblock measures by squigz on Friday June 20, 2025 @08:53PM (#44333556)
No, the future will not be like that.
Re:YouTube's new anti-adblock measures by thomassmith65 on Friday June 20, 2025 @09:13PM (#44333669)
I've seen the future, and it kills 99.99% of germs, bacteria and viruses...

...it powers through tough grease and grime

...with no harsh smells!

The future is Fantastik®.

Re:YouTube's new anti-adblock measures by noman-land on Saturday June 21, 2025 @01:54AM (#44334904)
Even though I hate advertising I think Hot Ones is one of the few efforts to do a good job with this.

1. Interviewing a guest while they are eating insanely spicy food is an extremely novel idea and the guest's reactions and answers end up being really interesting and unexpected as a result. It humanizes famous people in a way I've never seen before because you can't just bluff your way through it.

2. The hot sauce vendors are often small companies or indie makers (at least they used to be). This is way different than reviewing 11 bags of Superman Transformers 3D Doritos Walmart Product Placement for the next blockbuster.

3. Hot sauce is interesting! Nearly every culture on every continent has hot sauce. They are made from a huge variety of interesting and unusual ingredients but are also simple and can be made at home. Hot sauce hasn't been explored in this way in popular culture.

Re:YouTube's new anti-adblock measures by bitpush on Friday June 20, 2025 @09:55PM (#44333839)
I'm sorry to burst your bubble but ad blockers are on borrowed time.

This is like saying I was able to sneak into a concert. Sure, but at some point the restrictions are gonna come down hard.

Re:YouTube's new anti-adblock measures by grugagag on Friday June 20, 2025 @10:21PM (#44333963)
There will always be a cat and mouse chase, regardless of technology advancements.
Re:YouTube's new anti-adblock measures by noman-land on Saturday June 21, 2025 @01:45AM (#44334858)
All I ask is that I can pay the creator directly for content without any middle-man. Anything less will be routed around.

It's not like sneaking into a concert. It's like attending a free concert at a mall and wearing a mask so the cameras can't read your lips. Or covering your phone screen with your hand when you show a friend a private photo of a special moment.

Re:YouTube's new anti-adblock measures by bitpush on Saturday June 21, 2025 @02:24AM (#44335044)
> It's like attending a free concert at a mall

Who pays for the electricity, upkeep, security and airconditioning of the mall? Who pays for the sound stage, the technicians, the lighting of the mall?

The band decided to perform at the mall, because they like the facilities there. They always had a choice to perform at their house ("own website"), but they chose the mall ("YouTube") and as long as YouTube is hosting their videos, YouTube deserves to be compensated.

Re:YouTube's new anti-adblock measures by globular-toast on Saturday June 21, 2025 @03:10AM (#44335325)
That is between the band and the mall. The public didn't sign up for anything.
Re:YouTube's new anti-adblock measures by globular-toast on Saturday June 21, 2025 @03:06AM (#44335291)
It's not analogous to sneaking into a concert. YouTube is open and public, always has been. It would not be YouTube if it wasn't.
Re:YouTube's new anti-adblock measures by johan914 on Saturday June 21, 2025 @03:24AM (#44335433)
Nobody can stop you from putting a black screen over the ad, or a scenic nature video.
Re:YouTube's new anti-adblock measures by thomassmith65 on Friday June 20, 2025 @07:33PM (#44333102)
They don't want to boil the frog too quickly. Eventually, Youtube will embed ads directly into the stream. As the post mentions:

  To be clear this isn’t server-side ad insertion; the ad and content streams are still separate (YouTube is doing a server-side ad insertion experiment, but that’s separate from fake buffering)
Re:YouTube's new anti-adblock measures by eddythompson80 on Friday June 20, 2025 @08:29PM (#44333427)
Yep. It's been pretty funny actually both here but especially on r/youtube.

Pretty much since YouTube started cracking down on adblockers, r/youtube top post Every. Single. Day. is usually someone complaining that they just got hit with "adblock detected" and comments split between "Yeah it sucks, hit me last month" and "Huh, uBlock Origin works fine for me. I must be super smart. YouTube can't defeat me"

Re:YouTube's new anti-adblock measures by mullingitover on Friday June 20, 2025 @09:23PM (#44333727)
> Eventually, Youtube will embed ads directly into the stream

We've all seen what they're doing with AI-generated video, and we know their market and political power. Eventually they'll be remaking the video so the person or animal or rock or tree on the screen is giving AI-generated product testimonials.

Re:YouTube's new anti-adblock measures by peer2pay on Friday June 20, 2025 @07:37PM (#44333133)
It has to be a cost thing. HLS is so insanely optimised down to the hardware level that adding any kind of compute for targeting would increase costs exponentially.

I’m not too deep into it anymore but there’s some great articles from Netflix out there talking about the crazy optimisations done to their edge servers for streaming.

Re:YouTube's new anti-adblock measures by esperent on Friday June 20, 2025 @08:38PM (#44333483)
It would break all the time stamps as well, unless you had fixed length ads. Sponsorblock already skips ads embedded in videos, so I don't think this would make ads much harder to block.
Re:YouTube's new anti-adblock measures by BriggyDwiggs42 on Friday June 20, 2025 @10:35PM (#44334044)
True, it would be sorta impossible to make timestamps work without sending the length of the ad section, so you could easily skip it programmatically.
Re:YouTube's new anti-adblock measures by cyberax on Friday June 20, 2025 @10:10PM (#44333902)
> HLS is so insanely optimised down to the hardware level that adding any kind of compute for targeting would increase costs exponentially.

Not really. They'll just need to recode for you that one minute with the ad. The rest of the video can stay the same.

If they're doing it smartly, they can even avoid full recompression and just splice in the ad.

Re:YouTube's new anti-adblock measures by oneseventwonine on Friday June 20, 2025 @10:38PM (#44334065)
Agree, it has to do with cost, considering the sheer number of videos they have. Plus, oftentimes the ad won't be relevant after a week or two, in which case they can't re-encode again.
Re:YouTube's new anti-adblock measures by 2OEH8eoCRo0 on Friday June 20, 2025 @09:02PM (#44333605)
If they had balls they'd force the user to be logged in.
Re:YouTube's new anti-adblock measures by Retr0id on Friday June 20, 2025 @09:17PM (#44333700)
One could splice ads out of the video on the client just as easily as they splice them in, assuming you can detect them (which could be done via crowdsourced databases a la sponsorblock).
Re:YouTube's new anti-adblock measures by cyberax on Friday June 20, 2025 @10:11PM (#44333906)
They can splice the video just for you at a random location.
Re:YouTube's new anti-adblock measures by asadotzler on Saturday June 21, 2025 @01:32AM (#44334784)
Sure, and I can use "technology" to identify those splices, and fix them in various ways that work for me because I control the client (unlike Chrome users) and that gives me the power to make the web behave how I want it to, if I'm willing to put in the effort (or someone else does it for me.)
Re:YouTube's new anti-adblock measures by smitop on Friday June 20, 2025 @09:58PM (#44333858)
YouTube is currently running an A/B test for server-side insertion according to what some other people have posted. I'm not getting SSAI ads so I can't really know much about them though.
Re:YouTube's new anti-adblock measures by rasz on Friday June 20, 2025 @11:57PM (#44334367)
They are working on it. Web YT player no longer fetches separate video and audio streams from the server, it requests them pre bundled and receives a single server side muxed stream.
Re:YouTube's new anti-adblock measures by aucisson_masque on Saturday June 21, 2025 @02:22AM (#44335037)
I think it’s only a matter of time before it’s reality.

They own the hosting website, if they want to show their user ads, they will find a way, even if it takes a few year.

Re:YouTube's new anti-adblock measures by layer8 on Saturday June 21, 2025 @03:27AM (#44335453)
Injecting the ads directly would make them skippable. Unskippable ads are inherently detectable (because the unskippability has to be communicated to the client-side player controls), so there’s no easy way out.
Re:YouTube's new anti-adblock measures by bspammer on Saturday June 21, 2025 @03:58AM (#44335611)
Twitch seems to have won the war against adblockers by injecting directly into the video stream. It’s been months now and I still see ads. I assume it isn’t as easy as you say to skip them otherwise uBlock would have done it already.
Re:YouTube's new anti-adblock measures by chippiewill on Saturday June 21, 2025 @04:25AM (#44335731)
For livestreaming it's easier because you can't skip forward anyway
Re:YouTube's new anti-adblock measures by Strom on Saturday June 21, 2025 @06:01AM (#44336200)
The core difference is that when Twitch plays an ad, they'll never send you that part of the video. [1] So buffering doesn't help. If YouTube would do this, you could have a custom player that preloads enough of the video so that all ads could be automatically skipped and as a viewer you wouldn't notice their existence. However, on Twitch, even if you're willing to give up the live factor and would buffer, you still would have missing parts of the video where an ad was placed. So you would lose content. [2]

--

[1] They do send a super low resolution stream with no audio, but not the actual quality you are watching in.

[2] Right now Twitch does not stop sending content in markets where they don't have ad inventory. So there are actually browser extensions already that will use a custom foreign market server to proxy the video during ad breaks, so that you can still have an 100% effective ad blocker.

Re:YouTube's new anti-adblock measures by jay_kyburz on Saturday June 21, 2025 @05:44AM (#44336114)
The server can just ignore the player and send the bytes for the ad until its finished.
Re:YouTube's new anti-adblock measures by layer8 on Saturday June 21, 2025 @08:18AM (#44337000)
The server can't completely ignore the player, as it would have to adjust the embedded timestamps to be consistent with the skip operations, or otherwise the player won't show the video. In other words, the server would have to act as if the ad is embedded wherever you skip to in the video. Not only would it mean that users lose their position in the video when they try to skip, since after the ad it would continue in a different place, but it would also mean that timestamps don't uniquely identify positions in the non-ad parts of the video anymore, which is a nonstarter in many ways.
Re:YouTube's new anti-adblock measures by ranger_danger on Saturday June 21, 2025 @02:08PM (#44339484)
JS on the client (which is already required) can be instructed by the server to manipulate the timeline. You could zero it out completely (or stop it from moving at all) while an ad is playing and then return it to the right spot after, this is not rocket science.
Re:YouTube's new anti-adblock measures by layer8 on Saturday June 21, 2025 @02:12PM (#44339516)
For JS on the client side to be able to behave in the way you describe, it has to be informed by the server about the unskippable parts. Thus browser extensions are informed as well, and can take action correspondingly. In the worst case, they’ll behave as YouTube’s new hold screen does now.

Anything that JS on the client can do is also under control of browser extensions. We are talking about YouTube’s options under that constraint.

Re:YouTube's new anti-adblock measures by ranger_danger on Saturday June 21, 2025 @03:40PM (#44340178)
I don't think there's any reason the JS would have to know ahead of time, and the server still controls what video fragments are served when, so I don't think JS can be reliably used to skip ads that are embedded in the video stream, especially if the download speed is limited to somewhere close to the playback speed.
Re:YouTube's new anti-adblock measures by layer8 on Saturday June 21, 2025 @04:05PM (#44340372)
When the player performs a skip, it waits for stream packages whose timestamps matches the new position after the skip. It’s the client who requests a different segment of the video, and waits until it receives the respective segment, as identified by the embedded timestamps. Skipping isn’t a purely server-side operation in that sense, the client side has to cooperate. The server has no control over which timestamps the client wants to play.

The only other alternative is to make it a live stream of indefinite length where the user can’t skip forward.

Re:YouTube's new anti-adblock measures by ranger_danger on Saturday June 21, 2025 @07:26PM (#44341484)
I'm not sure what point you're trying to make, or how it invalidates anything I said already. Not trying to be rude, I just don't understand where you're going with this.
Re:YouTube's new anti-adblock measures by jay_kyburz on Saturday June 21, 2025 @09:16PM (#44342217)
The server can always just say no, here are the bytes for you, and this is the timestamp, deal with it.