reels2real · Issue #1

The Ad Muter

Watch it work A real ad, covered and muted. 40 seconds on YouTube.

A Mi TV Stick, a laptop, an AI, and a war on Prime Video ads.

Pritamchief ad hater
Claudechief ad watcher
Chapter 1 · Movie Nightthe projector, Prime Video, and ads

Movie night at home: the projector on its tripod, Prime Video on the wall. Then the ads started, and there was no skip button. Every break meant grabbing the remote, muting, and remembering to unmute. Pritam wanted the TV to do that by itself and asked Claude to help. Together they started on a test bench: the Mi TV Stick on a small monitor.

Movie night in a dark room: a projector on a tripod throws Prime Video's Mirzapur: The Movie page onto the wall. Movie night. Projector on, Prime Video on the wall. Then the ads came.
Pritam, every single ad break:
Subscribed… and still seeing ads? Hmmm.
Fine. I'll just mute the ads.CLICK!
Yay! …wait, it's manual. Every. Single. Break.
Let's automate it! Claude, you in?DING!
So Pritam and Claude built a test bench. The test bench: the Mi TV Stick on a small Zebronics monitor, a USB webcam on an Amazon Basics tripod pointing at it, and an ASUS laptop showing the webcam's view. Mi TV Stick on a small monitor, a webcam on a tripod, and the laptop.
THE AD MUTER · ISSUE #12
Chapter 2 · Plan A: The Webcama webcam on a tripod, watching the TV

The first idea was simple: let a camera watch the screen. Pritam set up a USB webcam on a tripod, pointed at the screen, and Claude wrote a small program on the laptop to read its picture. The bright screen blew the first frames out completely. With the exposure turned right down, the app tiles became readable, but everything still depended on the room light and on where the tripod stood.

The webcam's view of a Prime ad: the screen washed out to white, the Ad badge a faint smudge in the corner. Plan A: a webcam watches the TV for ads. GLARE!
The webcam's view after lowering the exposure: Android TV's app grid is readable. Exposure down to −7. Now it could read the screen.
Sort of.
THE AD MUTER · ISSUE #13
Chapter 3 · Claude Takes the Remoteswitching on developer mode

Claude asked Pritam to switch on Developer options and USB debugging on the stick. From then on it could talk to the stick over Wi-Fi using ADB, Android's debugging connection, and it went through the options one by one, testing each on the real TV. Chromecast could mute the stick but had no idea what was on screen. The Google TV remote link knew which app was open, but not whether an ad was playing. Asking Prime for its on-screen text returned nothing at all.

Device Preferences › About
Buildtap × 7
Developer options › USB debuggingON
You are now a developer!
Tap Build 7 times, then switch on USB debugging.
What did that switch unlock? ADB.
Laptop Claude runs here Home Wi-Fi Ad TV + Mi TV Stick Android inside press buttons · install apps · ask what's on screenshots · status
ADB (Android Debug Bridge) is a door Android leaves for app developers. Once USB debugging is on, a computer on the same Wi-Fi can drive the stick: no cable, no extra hardware. That's how Claude, running on the laptop, could see and press things on the TV.
Then Claude took over. Approach after approach:
  • ✗Webcamworks, but glare and room light decide
  • ✗Chromecast mutemutes fine, can't see ads
  • ✗Google TV remote linkknows the app, not the ad
  • ✗Read Prime's text over ADBPrime exposes no text at all
  • ✓ADB screenshotsee the next panel
THE AD MUTER · ISSUE #14
Chapter 4 · The Breakthroughan ADB screenshot during a real ad

Then Claude took a screenshot over ADB while an ad was playing. The controls Prime draws on top of the video were perfectly sharp, including the yellow “Ad 0:19” badge in the corner. Counting yellow pixels in that corner was enough: 212 during the ad, none during the movie. No camera, no AI.

An ADB screenshot during a Prime ad: the copy-protected video is completely black, but the yellow Ad 0:19 badge in the top right and a Send to phone box are perfectly sharp.Prime protects its video, so the picture came out completely black. But the ad's text overlays were completely visible.
The movie came out black. The badge didn't.
"Ad 0:19"! 212 yellow pixels in the ad, 0 in the movie.
BINGO!
THE AD MUTER · ISSUE #15
Chapter 5 · Version 1the first one that worked

The first working version ran on Pritam's laptop. Every couple of seconds it checked whether Prime was open, looked at the badge corner, muted when the yellow “Ad” showed up, and unmuted when it was gone. It only ever undid its own mutes. Then a real ad break arrived in the middle of a movie.

The first idea, the way it was really planned:
Pritam & Claude

Found it. The yellow "Ad" badge: 212 yellow pixels during the ad, 0 in the movie.

Plan: every ~2 s, if Prime is open, screenshot that corner. Badge there → mute. Gone twice in a row → unmute.

Only undo your own mutes. If I muted it myself, leave it alone.

Deal. And if you unmute during an ad, I stay out of it until that break is over.

Make it fun, but above all reliable. Use all the tricks.

Then I'll also read the countdown, and the ad-break dots on the progress bar, to look faster when a break is near.

Small job: one script on your laptop. Starting now.

Version 1, on the laptop:
Is Prime Video open?↓ Screenshot the badge corner↓ Yellow "Ad"? → MUTE↓ Badge gone → UNMUTE (only our own mute) First real break: muted 1 second after the badge appeared. Countdown 110 s. Unmuted 1 second after the ad ended.
THE AD MUTER · ISSUE #16
Chapter 6 · Making It Fastthe same night

Version 1 worked, but it was slow. One look at the screen took about 5 seconds on the little stick, so Claude grabbed only the thin strip with the badge instead of the whole picture. Android's normal key command could take up to 10 seconds, so it wrote straight to the stick's virtual remote. It also learned to read the countdown, and Prime's progress bar told it when the next break was due.

Then: make it quick.
One look at the screen:5 s→1.5 s→0.9 s
Only the badge's strip of the screen, not the full picture
One key press:1–10 s→0.5 s
sent straight to the stick's virtual remote
ZOOM!
The gaps in Prime's progress bar are the ad breaks.
Prime Video's progress bar for Mirzapur: The Movie, from 04:21 to 03:26:53, with three small gaps marking the ad breaks.
One look at the bar, and Claude knew when to check every second instead of every few.
Muted. But something was still bugging Pritam.
Pritam & Claude

The audio is muted, but I can still see the ads.

lightbulb moment

Let's hide the video as well.

Doable. A tiny app on the stick can lay a full-screen cover over Prime whenever the watcher says "ad". The remote keeps working, and the countdown corner stays uncovered.

And if the watcher ever goes quiet, the cover removes itself after a few seconds. The screen can't get stuck dark.

Keep it non-invasive. Go.

$ ./build.sh
compile resources …… ok
compile Java ………… ok
convert to dex ……… ok
align + sign ………… ok
$ adb install adcover.apk
Success
THE AD MUTER · ISSUE #17
Chapter 7 · The Coverlater that night

Muting fixed the sound, but the ad was still on screen. That night Claude wrote a small app for the stick that lays a dark frosted cover over the TV while an ad plays. It leaves the badge corner clear so the countdown stays visible, and it removes itself if the watcher goes quiet, so the screen can never get stuck dark.

Through the webcam: the TV covered by a dark frosted screen reading AD, BACK IN 0:43, with the top-right corner left clear for Prime's own countdown. Later that night, the ad lost its picture too. A frosted cover with its own countdown. Prime's badge corner stays clear. SHHH!
THE AD MUTER · ISSUE #18
Chapter 8 · The Pi Takes Overfrom the laptop to the Pi

Version 1 lived on Pritam's laptop, and laptops go to sleep. If it slept in the middle of an ad, the TV could stay muted all evening. So the watcher moved to the Raspberry Pi that already sits on the home network. Claude installed ADB and a text reader for the countdown on the Pi, set the watcher up as a service that starts at boot and restarts itself, and switched the laptop's copy off so the two would never fight over the mute button.

The laptop sleeps. The Pi doesn't.
Laptopsleeps, travels, restarts
→
Raspberry Pialways on, on the home Wi-Fi
⇢
Mi TV Stickwatched over ADB
The safety note

muted-by-watcher.flag

Before muting, the watcher writes this note. If it crashes mid-ad, the new copy finds the note and unmutes. The TV never stays stuck on mute.

House rules for the Pi
bootstarts by itself
crashrestarts by itself
1watcher per TV, never two: they'd fight over the mute toggle
THE AD MUTER · ISSUE #19
Chapter 9 · The Projectora second screen

Next screen: the BenQ GV30 projector, which has its own Android TV dongle inside, the QS01. Same Prime, same yellow badge, but at 720p, so Claude scaled every measurement. Then a surprise: the projector's mute key didn't mute Android at all. It went down a wire to the projector's own speaker chip as a blind on/off toggle. Claude gave the cover app its own mute switch, so the watcher could always tell whether the sound was off.

The second TV The BenQ GV30 projector on its tripod, in a dark room.
Same badge, smaller screen (720p):
Prime's Ad 0:20 badge on the projector.Prime's player bar on the projector with a Go ad free button.
“Go ad free”? I'm already paying for Prime!
Where the mute key really goes
Remote: MUTE→QS01→ wire →projector's speaker chipblind toggle: can't tell if it's on or off
Watcher→Cover app→Android mutereadable: the watcher always knows
First night on the projector
  • ✗Yellow movie artwork fooled it oncenow it checks the badge's shape: a word-sized yellow patch on dark grey
  • ✗The movie's first seconds stayed muted for 9 snow it unmutes first and reads the bar later: 2 s
  • ✓Real pre-roll, 22 smuted, covered, unmuted
  • ✓Real mid-roll, 28 smuted, covered, unmuted on time
THE AD MUTER · ISSUE #110
Chapter 10 · Does It Even Need the Pi?one simple question

With two screens working, Pritam asked a simple question: does this really need a Raspberry Pi taking a screenshot every second? Claude looked at what Prime tells Android about playback, the same report that powers the remote's play button. During an ad, Prime still says “playing”, but it takes away seeking. That one change was the whole detector. No screenshots during playback, and faster than the badge watcher.

The question that changed everything:
Pritam & Claude

Does it even need the Pi?

Maybe not. Every video app tells Android what it's doing: playing, paused, which buttons work. Let me watch what Prime says during an ad.

Found it. During an ad, Prime still says playing, but seek, fast-forward and rewind disappear. The number goes 1049455 → 1049095: exactly 360 apart.

So the TV can watch itself?

Yes. One small app on the TV, listening to Prime. No Pi, no screenshots while you watch.

What Prime tells Android
Show
REWPLAYFF
leave it
Ad
REWPLAYFF
mute + cover
Race against the badge watcher
Ad starts:1.7 ssooner
Ad ends:0.5 ssooner
Screenshots while you watch:0
The one ad it can't hear: pause ads. A pause-screen ad on Prime Video: a still advert with Press Back to close ad. Pause for 5 seconds and Prime shows a still ad, but its status just says “paused”. So the app takes a screenshot only while paused. Covered 5.3 s after the pause.
No Pi, no screenshots. Just the TV looking after itself: A real screenshot during a Prime ad: a solid dark cover reading AD PLAYING, Prime's Ad 0:12 countdown left visible in the top-right corner, and the TV's mute icon in the bottom-right. A real ad, covered and muted by the app alone. Prime's own “Ad 0:12” still shows in the corner.
THE AD MUTER · ISSUE #111
Chapter 11 · Can We Do the Same to YouTube?the next app with ads

Prime was handled. But on the Mi TV Box, YouTube was still playing ads, so Pritam asked the obvious question. Good news: unlike Prime on that box, YouTube's TV app reports its ads honestly. During an ad it says “playing” and takes away seeking, the very same sign. So muting was instant. Even better, many YouTube ads can be skipped after five seconds, so Claude taught the app to spot the Skip button and press OK, the remote's own button, all by itself.

A YouTube ad playing on the wall from the projector: a soft-drink ad with a Sponsored label and YouTube's skip countdown ring in the corner. Prime was quiet now. YouTube wasn't.
The question, the evening after:
Pritam & Claude

Can we do the same to YouTube?

YouTube tells Android the same story: during an ad it's playing, but seeking is gone (51 instead of 379).

So: mute and cover the moment an ad starts. And when the Skip button shows up, I'll press OK for you.

Do it.

The real Skip button
YouTube TV's Skip button: a light grey pill reading Skip with a skip icon and a dark circle showing 5.
I thought the circle was a countdown to Skip. It's the time left in the whole ad. Oops.
The cover leaves this corner open, so the button stays visible.
Meanwhile, at dinner…
I'm going to eat. Songs are playing. Keep watching and refining.
While Pritam ate: no sound blip between two ads in a row (wait 0.8 s before unmuting), and a Skip check every second instead of every two.
One real YouTube ad, second by second
  1. Ad starts (YouTube's status says so)
  2. Muted and covered
  3. Skip button appears → OK pressed
  4. The ad is gone
  5. Sound back, the song carries on
SKIP!
A real YouTube ad, covered: A real screenshot from the Mi TV Stick during a YouTube ad: the screen covered dark with AD PLAYING in the middle, and YouTube's own Skip in 19 countdown ring visible in the open bottom-right corner. Covered and muted. YouTube's own “Skip in 19” stays visible in the open corner.
THE AD MUTER · ISSUE #112
Chapter 12 · A Nicer Waitmaking the cover fun

The ads were silent and hidden now, but a two-minute break staring at a dark screen that says “AD PLAYING” is still two minutes of nothing. So Pritam turned the cover into something worth looking at: a big clock and date, and a quote that changes every seven seconds, taking turns between English and Hindi. Forty of them, written for this. The corner with Prime's countdown stays open, so you always know how long is left.

Pritam's wish list, one message at a time:
Pritam & Claude

Make the “AD PLAYING” text larger, and add some funny quotes while the ad runs. Make it less boring.

Done: bigger title, and 25 quotes that change every 7 seconds.

Add some quotes in Hindi too.

Show the date and time.

Alternate between Hindi and English.

Done. Clock and date top-left, quotes take turns: English, Hindi, English…

“AD PLAYING” that big isn't important. Put it below the clock.

Moved. Small and quiet under the clock, the quote gets the middle.

Before The old cover: a dark screen with only AD PLAYING in the middle.
After (a real ad on the projector) The new cover during a real Prime ad on the projector: the time and date top-left, a small AD PLAYING label, a Hindi quote in the middle, and Prime's own Ad 0:23 in the open corner.
A few of the forty
“Somewhere, a marketing team is crying into their KPIs.”“चाय बन गई क्या? यही सही मौका है।”“Ad detected. Volume deployed to an undisclosed location.”“बस दो मिनट... मैगी से भी जल्दी!”“No ears were harmed during this commercial break.”“विज्ञापन आया, आवाज़ गई। हिसाब बराबर।”
Movie night, again. The projector on its tripod in a dark room, throwing the ad cover onto the wall: the time, the date, AD PLAYING, the quote Somewhere, a marketing team is crying into their KPIs, and Prime's own Ad 0:16 in the corner. The projector, mid-ad: no noise, no ad, just the time and a joke.
THE AD MUTER · ISSUE #113
Chapter 13 · The Demo That Failedfilming the proof

Pritam set up a phone to film a demo on the Mi Stick: a two-minute Prime ad break, covered and muted. It went perfectly, until one ad handed over to the next. The cover vanished for about eleven seconds, and a little sound slipped through. Pritam's guess: the muter had mistaken the end of one ad for the end of the whole break. Claude went through the video frame by frame and through Android's own logs, and found something else. The stick has only 1 GB of memory. Starting the next ad needed a bit more, and Android made room by closing the cover app, twice.

From Pritam's video: the countdown keeps running while the cover is gone. Five frames from Pritam's demo video: covered at Ad 1:01, then three frames of ads showing with the countdown at 0:59, 0:54 and 0:50, then covered again at 0:49.
The sound in the video: two short blips, nothing more.
cover gone (about 11 s) 40 s44 s48 s52 s56 s60 s blip blip louder quiet time in Pritam's video
What really happened, as Android wrote it down:
  1. Next ad starts. Memory runs out. Android closes the cover app
  2. Android restarts it. It unmutes before checking: the first blip
  3. Still no memory. Closed again
  4. Restarted again: the second blip
  5. Cover back up until the break ends
Two guesses, one log:
Pritam & Claude

The cover dropped right after an ad changed. It's not counting the time. It should read the counter.

And the sound did come back.

You're right about the sound: two short blips, one at each restart. But the cover went away 0.24 s after Android closed the app, not because the muter decided anything.

Two fixes. After a restart, the mute and cover go straight back. And I'll teach it to read the countdown, so an ad change can never end the break early.

Do both. Keep Chromecast.

Learning to read the badge: real samples, every digit from 0 to 9. Six real crops of Prime's Ad badge from the Mi Stick: Ad 1:26, Ad 0:57, Ad 0:49, Ad 0:43, Ad 0:38 and Ad 1:09. Read 40 out of 40 badges correctly. Now, if the break still has time left, the cover stays put, whatever else happens.
THE AD MUTER · ISSUE #114
Chapter 14 · Lights, Camera, 4×editing the demo video

Pritam filmed a fresh demo for the cover of this comic. It worked perfectly, which was the problem: an ad break is long, and ninety seconds of a calm dark screen makes a slow video. So Claude became the editor. It found exactly where the ad began and ended, sped just that part up four times, cleaned up the sound the phone had picked up from across the room, and trimmed the whole thing to forty seconds. Then it wrote the YouTube title and description too.

The editing brief, straight from Pritam:
Pritam & Claude

Here is the video. The ad section is too long, speed it up 4×.

The ad runs from 12.8 s to 103.1 s: 90 seconds. At 4× that becomes about 23.

Don't lose the audio. Can we clean it up a bit?

It was recorded from across the room, very quiet. Cutting rumble and hiss, then bringing it up to YouTube level.

End the video at 40 s.

Give relevant text for each field.

Title, description with chapters, tags, category. And set it to Public or Unlisted, or the comic can't show it.

How Claude found the ad: it measured how bright the screen was, ten times a second.
12.7 smovie
12.8 scut to black: the ad starts
103.0 sstill the cover
103.1 sthe movie is back
Before and after
Before · 1:55
moviecovered ad break · 90 smovie
After · 0:40
4×
The finished cut: movie, the ad flying by at 4×, movie again. Three frames from the finished video: a movie scene, the dark ad cover with the clock and a Hindi quote, and the movie again.
Cleaning the sound
Loudness:−34.7→−14.7 LUFS
Loudest peak:−17.2→−1.5 dB
Rumble below 80 Hz cut, room hiss reduced, the quiet ad stays quieter than the movie.
Plot twist

FilmCraft MCP: installed ✓

Pritam installed a video editor that Claude can drive directly. Its tools only load after a restart, so for this cut Claude reached for ffmpeg instead. Next video, maybe.

THE AD MUTER · ISSUE #115
Chapter 15 · Let's Write a Blog. No, a Comic.the making of this issue

With the ads gone, Pritam wanted to tell the story. A blog post was the plan, until a better idea arrived: why write paragraphs when there was Claude to draw panels, dig up old screenshots and keep every fact straight? So Pritam brought the important bits, the photos and a lot of opinions, and Claude filled in the rest. Page by page, with a red pen never far away.

How this issue began:
Pritam & Claude

Let's write a blog. The story of how we built this ad muter.

Rethink. Let's make it a comic instead, because we have Claude.

Comic it is. You give me the important bits and the photos, I fill in the facts from our logs and draw the rest.

Finding Pritam's face
Attempt 2: drawn by Claude
→
Attempt 3: Pritam's own caricature
My avatar still looks bad. Use this, it's already a caricature of me.
Lost and found The webcam's washed-out view of a Prime ad, recovered from the first night's chat log. The webcam photos from the first night were never saved to disk. Claude found them inside the logs of that night's chat.
The editor's red pen (all real notes from Pritam)
  • the text is hiding important details
  • don't club the chapters
  • story is important, no need to shrink it
  • Claude can't put a webcam on a tripod
  • replace “I” with my name, Pritam
  • people don't know what ADB is
  • exact date and time is not needed
  • this chapter is irrelevant for the story
  • the failed demo chapter is missing

…and that's the comic you just read.Made by Pritam and Claude, one page after another.

THE AD MUTER · ISSUE #116

The End

Ads, muted. Movie nights, back.

Get the app and the code →

Pritamchief ad hater
Claudechief ad watcher