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.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.