News for hackers. Stuff that matters.
Re:Setting Up a Pi Hole Made My Home Network Faster by regecks on Saturday April 13, 2019 @07:50PM (#19656552)
I think that you can just look for specific markers in the stream to detect ads. e.g. I look for SCTE-35 (https://en.wikipedia.org/wiki/SCTE-35) in Twitch streams to filter out their ads. It takes no CPU at all to do. I believe broadcast TV has a similar thing in many places.
Re:Setting Up a Pi Hole Made My Home Network Faster by markovbot on Saturday April 13, 2019 @08:11PM (#19656641)
What software do you use to do that?
Re:Setting Up a Pi Hole Made My Home Network Faster by regecks on Saturday April 13, 2019 @09:17PM (#19656909)
Well, I watch Twitch using a personal fork of https://github.com/SebastianRask/Pocket-Plays-for-Twitch (which isn't really actively maintained), so when Twitch ads became in-stream this year, I replaced the default Android media player it uses with Google's ExoPlayer, and then made a bunch of changes to ExoPlayer to be able to detect when SCTE35 segments would be played, and silenced them.

I modeled my change on similar changes made by Streamlink's Twitch plugin recently: https://github.com/streamlink/streamlink/pull/2372

Re:Setting Up a Pi Hole Made My Home Network Faster by satori99 on Saturday April 13, 2019 @09:20PM (#19656919)
I have used this method with node.js+ffmpeg for Australian TV streams;

https://gist.github.com/satori99/2cb06938bfe8532ecc00e609065...