You mean Youtube's infrastructure? Don't worry, Google and Youtube are rolling in enough green dough thanks to those very ads they are serving. They can afford all the infrastructure they need and the engineers to build it.
How? Google made $182 billion in revenue in 2020, of which $41 billion was profit [1] (mostly in ads), and Youtube alone is on track to generate $15 billion of those [2] on an annualized basis (also almost all in ad revenue).
YouTube Vanced[1] for Android is awesome. It supports background playback and allows you to block all ads as well as community posts, surveys, premium movies, and just about anything else. They recently integrated SponsorBlock[2], which allows you to block in-video intros, outros, sponsored sections, and subscription reminders.
However it uses microG, which has long had an open issue with v2 of Google's Cast API. The issue was recently closed however I don't believe it was solved. However it is still possible to work around this. I ended up writing a quick script on my phone that uses pychromecast to initialize the cast so that it can be passed off to YouTube Vanced.
It's been a while since I've cast anything but are you certain that ads are blocked when casting from an app that blocks ads? In my experience with casting, the video is always streamed directly from the content provider's servers (YouTube) to the cast receiver (smart TV) with ads intact. You would need to mirror your phone's display in order to block ads.
They should be named dumb TVs because that what they are.
I dont even own a TV anymore an I have no plan to change that.
I just need the display to watch stuff not freaking android box. More money for high quality monitor that wont be obsolete because it no longer gets system updates.
The word "smart" is so overloaded with definitions as to be nearly useless in such discussions. I like this set of definitions:
- Intelligence is being able to observe systems [1] and understand how they work. Both Hawking and Machiavelli objectively have this.
- Smartness is being able to use one's understanding of a system [1] to achieve one's own goals. Both Hawking and Machiavelli objectively have this.
- Wisdom is being able to choose the right goals. This is where there is a clear distinction between Hawking and Machiavelli, and since it requires moral judgment to deliberate whom of them chooses "the right goals", this cannot have an objective answer.
By the way, it's easy to see with these systems that existing machines that are supposedly "intelligent" and "smart" are in fact neither.
[1] "System" shall be interpreted in the broadest way possible, i.e. "any network of interconnected actors", e.g. a machine or the financial system or any society of people.
What additional configuration is required? I was under the impression it couldn't be blocked at all due to ads being served from YouTube.com domain or similar.
Would really like to implement it on my own PiHole
Let me offer an alternative answer to tubularhells' unhelpful answer:
There isn't really a good, efficient easy way to block YouTube ads with Pi-Hole. It's a constant cat-and-mouse game of finding the appropriate domain regexes and keeping them updated.
I agree, but to anyone considering setting up Pi-Hole make sure that you don't go "overboard" with blocklists. I did and ended up blocking too much, to where regular Instagram posts, post messages, etc. were removed. It also slowed down my internet considerably, but that could be due to the excessive blocking.
We ended up uninstalling Pi-Hole and removing it from our network, which was a pain in the neck. I remember that simply removing the blocklists wasn't enough to undo the damage, which is why we had to go with the removal from network route.
I've considered revisiting Pi-Hole in the future, and I'd definitely be more cautious that time around.
With pihole I keep getting playback error when video starts basically cause the ad can't play. If I refresh then it plays normally cause YouTube doesn't show the ad the 2nd time being tricked it was already watched.
As far as I know you cannot install adblockers on the Android app for YouTube for example, and probably on other platforms too. I've looked for one but found none.
You probably use an adblocker that receives money from Google to pass through a small amount of ads. 'AdBlock Plus' is one example that does it. Many others as well.
'uBlick Origin' is currently the only one AFAIK that is truly open source and not sponsored by any ad network.
something works, because I don't get ads on my desktop browser at home (firefox + uBlock Origin + Privacy Badger + PiHole) but I do see them when I'm away from home on the app on my tablet.
OK, because ppl are gonna ask, I checked: I'm not seeing ads in the app on my tablet at home, so its the PiHole cutting ads.
Ooops, I'm not seeing ads on my desktop when using my smartphone as a hotspot either (no PiHole), so Firefox + uBO + PB also blocks YT ads.
uBO still seems to block all Youtube ads for me with little to no additional config. I don't watch much youtube on my computers though, so I could very well be mistaken.