hn.today

I taught my TV to mute Prime Video ads

pri7am.bearblog.dev22 points7 comments
Screenshot of I taught my TV to mute Prime Video ads

A DIY system turns Prime Video’s ad breaks into silent, covered pauses, built with help from Claude. The first approach used a webcam to watch the TV, but glare and room lighting made it unreliable. The key discovery came from taking screenshots over ADB, Android’s debugging connection: Prime blacks out protected video, but leaves its yellow “Ad” countdown badge visible. Counting yellow pixels in that corner reliably distinguished ads from the movie, avoiding both a camera and more complex image recognition. An initial laptop program checked every few seconds and muted the TV when the badge appeared, then restored sound when it disappeared, without undoing mutes made by the viewer.

The system was sped up by capturing only the badge area and sending mute commands through the TV stick’s virtual remote. It also reads the ad countdown and Prime’s progress bar. A small Android app adds a dark screen overlay while ads play, leaving the countdown visible; a clock and rotating English and Hindi quotes make the wait less dull. Because a laptop could sleep, the watcher moved to a Raspberry Pi service that starts at boot. The setup was adapted for a projector whose mute control behaves differently, and later for detecting ads without screenshots by noticing when playback disables seeking. It also handles YouTube, muting and covering ads and pressing Skip when available. A demo exposed the TV stick’s limited memory: Android killed the overlay app, so it required fixes to stay active.

Read on pri7am.bearblog.dev7 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

Laravel Go

Laravel Go

Laravel for Go is a full-stack web framework with routing, validation, database tools, background jobs, workflows, and real-time events. It also supports Inertia for frontend integration and is open source under the MIT license. (github.com)

Laravel Go

Laravel Go

Laravel Go is a batteries-included Go framework that combines routing, data access, authentication, queues, workflows, and other features in one package. It uses standard Go patterns and Inertia to serve React, Vue, or Svelte pages without separate API boilerplate. (laravel.com)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.