[Prompt]
Semantic frame extraction: choosing a few frames from a phone walkthrough video by what's in them (open and closed tools and models), and when it still pays to select frames separately rather than send the whole video.

[Response]
Corn: Daniel has a new apartment, and before he's finished moving into it, he's filming it. Phone up, walking room to room, narrating everything that needs cleaning or fixing, then asking a model to turn the walkthrough into a to-do list. And he very generously credits the trick he uses to this show — don't send the video, send a handful of frames plus the audio pulled out as a transcript. Apparently that was our idea. He says it works very well.

Herman: It was, back in May. He was facing a move and a lot of clutter, and we walked through turning a walk-through video into frames: ffmpeg's scene-change filter, throwing out blurry frames, the token maths. Nice to hear it survived contact with a real apartment.

Corn: It did. The part that doesn't work as well is choosing the frames.

Herman: Right. Eight minutes at twenty-four frames a second is more than eleven thousand candidates. Daniel's actual question is about the interesting half of the problem — picking frames by what's in them rather than by how much the pixels moved, what tools exist for that, open and closed, and whether it still pays to keep selection separate from the model that does the final job.

Corn: Both halves are worth taking seriously, because the answer to the second one has changed in the last year.

Herman: But first the token problem, because it explains everything downstream.

Corn: Before you get going — for the listener who tuned in for the apartment and not the arithmetic, why does the token problem come first? What does it actually decide for us?

Herman: It decides what's rational. If video were free, none of this would be a question — you'd send everything and let the model sort it out. Every frame-selection technique in existence is a response to the fact that video is expensive to feed a model. So the size of the bill determines how much cleverness is justified. And the bill has been shrinking, which is exactly why the answer to Daniel's second question has moved.

Corn: Video is the hardest modality, then, but for a deeply boring reason.

Herman: The model never sees a video. That's the boring reason. It sees a stream of still frames plus an audio track, and every one of those frames is billed in tokens. There's no such thing as "a video" at the input — there's a sampling policy, and then a pile of images. Gemini samples at one frame per second by default, and you can turn that up to twenty-four if you enjoy pain. Eight minutes at one frame a second is four hundred and eighty frames. On the Gemini 3-generation models, each frame costs seventy tokens at default resolution, and the audio track adds roughly twenty-five to thirty-two tokens per second on top.

Corn: So the eight-minute walkthrough is around forty-six thousand tokens before the model has done anything.

Herman: About that. Four hundred eighty frames at seventy tokens is near thirty-four thousand, plus twelve thousand or so of audio. Which sounds alarming until you price it — on Gemini 3.8 Flash that's roughly three cents. On Flash-Lite, about a cent.

Corn: Three cents. The frames were never the expensive part, then.

Herman: Not anymore — and that's the shift that reframes the whole question. Twenty stills sent as images cost about eleven hundred tokens each at Gemini's default image rate, so frames plus transcript is around twenty-four thousand tokens, under a cent. Pre-selecting frames now saves you about half, not the tenfold it used to. The old cost argument for the trick is mostly gone. What's left are the structural reasons, which we'll get to.

Corn: Hold on, because that's a bigger statement than it sounds. You're saying the trick we suggested in May has lost its main justification inside a year?

Herman: Its main economic justification, yes. That's how fast the ground moves under this stuff. On the older Gemini models a video frame cost two hundred and fifty-eight tokens, so the same walkthrough was roughly three times the bill, and on models without video input you had no choice at all. Now the same video is three cents and the trick saves you a penny and a half. Still real money if you're doing it ten thousand times a month. Rounding error if you're doing it once, which, worth remembering, is exactly what Daniel is doing.

Corn: Fine. So the token problem is real but softer than it looks, and Daniel's trick sidesteps it anyway. How does the trick actually run?

Herman: The recipe, roughly: extract one or two frames per second with ffmpeg, throw away the blurry ones and the near-duplicates, and keep maybe fifteen to thirty. If you want to be fancy, score the survivors against text queries — "damage", "dirt", "broken fixture" — and keep the best. Then transcribe the narration and send the frames plus a timestamped transcript to whatever vision model you like. The insight underneath it is that you don't need every frame for context, and the transcript carries the temporal story — "this is the bathroom, the grout is black" — that the frames can't.

Corn: Let's make that concrete for a second, because I think the transcript point is where people nod along without getting it. Walk me through what the model actually receives versus what the video actually contains.

Herman: The video contains Daniel walking from room to room, with stretches of hallway between the rooms, adjustments of the camera, moments where he's turned the phone at the ceiling while talking. The model receives, say, eighteen stills — bathroom, kitchen corner, the window latch, the boiler cupboard — and a transcript that reads like a guided tour with timestamps. The hallway footage contributes nothing to the to-do list. The transcript does the connecting: it tells the model that the grout comment belongs to the bathroom still and the radiator comment belongs to the bedroom still. Without the transcript, you've got eighteen images of rooms and no way to know which complaint goes where.

Corn: The frames are the evidence, the transcript is the argument.

Herman: Yes. The manual version of that, since Daniel asked us not to dwell on it — VLC's snapshot button, mpv's screenshot key, a seek-and-grab in ffmpeg, grab-still in Shotcut or Resolve. It's all fine. It's also a good way to spend a Tuesday. Twelve frames, fine. Two hundred, and you start wondering what you're doing with your life. The classic automated answer is shot detection, and this is where I want to flag the ceiling, because the tools are good and the ceiling is the point. PySceneDetect is the open-source standard — content detector, adaptive, threshold, hash, histogram, five of them — and what all five find is change. Colour shifts between adjacent frames, fades, cuts.

Corn: And this is the moment where Daniel's specific video defeats the specific tool, right?

Herman: A one-take phone walkthrough has no cuts. There's nothing for a cut detector to detect. And it's worth being clear about why that is, because it's not the tool being bad. Shot detection was built for edited footage — films, news broadcasts, YouTube videos with jump cuts every four seconds. That's the footage humans have historically needed to chop into scenes. Daniel's video is one scene. The tool runs, the tool outputs "one shot detected, duration eight minutes," and the tool is correct.

Corn: A machine built to find cuts, pointed at a video with none. It's very zen.

Herman: TransNetV2 is the neural version — a proper shot-boundary detector, and a good one, scoring ninety-six F1 on the BBC Planet Earth benchmark. But that benchmark is documentary footage with editors. A man walking around his flat holding a phone is one continuous shot. The tool isn't broken; the tool is answering a different question.

Corn: I want to linger on that benchmark point, because it's a lesson that generalizes. Ninety-six F1 sounds like a solved problem, and it is a solved problem — for the problem it was built for. How often do you think that gap, between benchmark and use case, is where these tools actually fail people?

Herman: Almost always, in my experience. The failure isn't accuracy, it's applicability. Somebody reads "state of the art shot detection," runs it on their footage, gets nothing, and concludes either the tool is broken or they're stupid. Neither. The benchmark measured edited television. Their video isn't edited television. Katna gets one step closer — frame differencing, brightness and contrast filters, then K-means clustering on colour histograms, and it picks the sharpest frame in each cluster. So you get a diverse-looking set: not eleven thousand near-identical frames, but a spread of visually distinct ones. Still not semantic, though. Katna doesn't know the tap is dripping. It knows the pictures look different from each other.

Corn: Give me the failure mode of that in Daniel's flat, specifically.

Herman: Sure. The clustering will hand you one frame per room, roughly, because the rooms look different — the bathroom is white tile, the bedroom is beige carpet. Good. But if Daniel stands in the kitchen for three minutes going on about the boiler, and sweeps through the hallway in ten seconds, the clustering doesn't care about importance, it cares about visual distinctness. You'll get your one hallway frame — a wall — and one kitchen frame, chosen for being sharp, not for showing the corroded pipe he spent two minutes describing. The frames that matter get the same budget as the frames that don't.

Corn: None of these tools ask the only question Daniel cares about, which is "what is in this frame."

Herman: Right, and that's the pivot to what he's actually asking about. Semantic selection means image-text embedding models — CLIP, and Google DeepMind's SigLIP 2, which came out in February of twenty twenty-five in sizes from eighty-six million to a billion parameters. You embed every sampled frame once, and then you have two options. One: cluster the embeddings, drop near-duplicates, keep a diverse set. Two, and this is the one with the juice: score each frame against a text query — "a stain on the wall", "a dripping tap" — and keep the best scorers. The difference from everything in the last five minutes is that you're now selecting by what's in the frame, not by how much it moved.

Corn: And for anyone whose eyes glazed at "embedding model" — what's the one-sentence version of what that thing does?

Herman: It turns a picture, or a sentence, into a long list of numbers, positioned so that similar meanings land close together. A photo of black grout and the phrase "dirt on tile" end up as neighbours in number-space, even though one is pixels and one is text. Once everything is numbers in the same space, "which frame best matches this query" becomes arithmetic. That's the whole trick.

Corn: And the embedding work is the cheap part. You're embedding stills, one image each, with a model that fits on a laptop.

Herman: A small SigLIP runs happily on CPU. The pipeline is: ffmpeg gives you frames, the embedding model gives you meaning, and your script keeps twenty. Speaking of which — here's the gap Daniel should know about. FiftyOne, the open-source dataset tool, can index frame embeddings and find near-duplicates or the most unique images. NVIDIA's NeMo Curator does clustering-based dedup for video datasets. Both assume you've already extracted frames yourself. We couldn't find a polished consumer "semantic frame picker." If someone has shipped the app, they've kept it quiet.

Corn: Which surprises me, given how many "AI video tools" apps exist. Every video editor wants AI features, and this one's sitting right there.

Herman: My guess, and it's only a guess, is that it comes down to who builds those features. The video-editor vendors are building AI features that sell video editors — background removal, auto-cut, text-based editing. Frame selection for feeding a different company's model isn't on their roadmap, because it sends the customer's data to someone else's API. And the model vendors don't want to help you pre-select frames, because they'd rather you sent the whole video and paid them for the whole video. It's in nobody's obvious commercial interest to fill the gap.

Corn: So the state of the art, for a normal person, is a short script around an embedding model.

Herman: That's it. Thirty lines of Python and you're ahead of every consumer tool on the market.

Hilbert: Hilbert's Depressing Medieval Facts. The Black Death is estimated to have killed between thirty and sixty percent of the people of Europe. Grim, but it did free up a lot of housing.

Corn: Real estate advice from the fourteenth century. Onwards.

Herman: So semantic selection is the right idea, and now the obvious objection gets its turn: if you're running a model over the video to pick frames, why not just send the whole video and let it do the entire job? Gemini takes video natively, and the newer Flash models even have what Google calls an agentic video mode, where the model explores the timeline and picks its own frame rate. The vendor is absorbing frame selection into the model itself.

Corn: The marketing on that mode is very excited about savings. Notably unverifiable savings.

Herman: I've not seen a number I'd repeat. But the direction is real — if you're already on Gemini, the argument "why not just send it" is now strong for a one-off walkthrough. The three-cent version.

Corn: So the case for separating the steps has to rest on something other than price. What survives?

Herman: Five things, in rough order of force. First, models with no video input at all. Claude takes images, many per request, but no video files — and OpenAI's own cookbook samples frames and sends them as images. For those models, selection isn't a choice, it's mandatory. Second, volume and privacy. If you've got thousands of inspection videos, or security footage, you don't want it leaving the building — a tiny local classifier over frames keeps everything in-house. Third, audit: with your own frames you know exactly which images drove which answer. Fourth, reuse: pick frames once, run them past several models. Fifth, resolution — a seventy-token video frame blurs small text. A still sent at full resolution doesn't.

Corn: The reuse one deserves a beat, because it's the one people forget. You pick your twenty frames once, and then you can send them to Claude on Monday, GPT on Tuesday, Gemini on Wednesday, and compare answers — same inputs, same transcript, different judges. If you'd sent the raw video, you'd be re-paying for the video every time and half the models wouldn't take it anyway.

Herman: And there's a subtler version: you can re-pick without re-processing. Daniel sends the frames off, the to-do list comes back missing anything about the boiler, and he realizes his queries were all about walls and floors. With his own extracted frames, he re-scores them against "boiler", "pipe", "valve" and sends again — no new video processing, no new extraction. The frames are an asset; the video is a cost.

Corn: Seventy tokens buys you "there is a wall." The serial number on the boiler costs more.

Herman: Which is the case where you'd extract stills even on a video-capable model — when the job is reading small labels, the high-resolution route is the only one that works. Now, the research. This is the part I'd been waiting to get to. The field has converged on training-free, query-aware selection: score frames by similarity to the question, add a diversity term so you don't keep twenty near-identical taps, and stay inside a fixed frame budget.

Corn: The diversity term. Plain words, please.

Herman: It's a rule against letting relevance crowd out coverage. If your query is "dripping tap" and the model finds eleven frames of the tap, naive relevance ranking keeps all eleven and drops the black grout entirely — the grout wasn't in the query, but the grout is on the to-do list. The diversity term says: yes, keep the best tap frame, but you're also spending some of your budget on frames that are different from each other. It's the formal version of a habit any good human editor has — you don't illustrate an article with eleven nearly identical photos.

Corn: AKS, you were saying.

Herman: AKS, out of CVPR twenty twenty-five, took LLaVA-Video 7B at sixty-four frames from fifty-nine to sixty-three on LongVideoBench versus uniform sampling. BOLT samples frames in proportion to their CLIP similarity to the query — mid-fifties to fifty-six on Video-MME — at about ninety percent extra processing time, mostly the CLIP encoding itself. Q-Frame, from Xiaomi, does the same trick and gives the most relevant frames higher resolution, and it beat uniform sampling across three different answer models.

Corn: A few points each. At the same frame budget. That's the honest read?

Herman: A few points, yes. Nobody's doubling accuracy. The interesting ones are the outliers — "Too Many Frames, Not All Useful" filters out over ninety-eight percent of up to eighteen hundred frames before answering, and there's now a benchmark dedicated to keyframe sampling for long-video questions, out in December twenty twenty-five. The field thinks this matters, and the gains are modest. Both true.

Corn: You say "modest" with the face of a man describing a miracle.

Herman: I say modest because the baseline moved! Two years ago the comparison was "all frames versus bankruptcy." Now it's "smart twenty versus dumb twenty." A few points in that fight is respectable engineering. And Frame-Voyager went the other way entirely — ByteDance trained a model to pick frame combinations, rather than scoring each frame alone. There's real work happening here.

Corn: Explain that combination idea, because scoring frames one at a time sounds like the obviously correct design. Why would you ever pick frames jointly?

Herman: Because a frame's value depends on what else you've picked. Two frames that each score well individually can be redundant with each other — same tap, same angle — while a frame that scores slightly worse but shows a different room adds more to the set. Picking frames independently is like assembling a team by hiring the twenty best individual interviewees: you get twenty people who all happen to be good at the same thing. Frame-Voyager trains a model to look at the whole basket.

Corn: I notice the trained model costs more to run than the training-free scoring it replaces.

Herman: It always does. Corn, honest question — you'd skip all of this. Eight-minute walkthrough, one job, you use it once. Where's your line?

Corn: For Daniel's flat, I'd write the thirty-line script and never think about it again. My line is volume. The moment there are a hundred walkthroughs a month, hand-picking dies, and even query-picking starts to look like a job for something smaller and local. Which I assume is where the small open models come in.

Herman: That's the map I wanted to lay out. Hosted side first: Twelve Labs does Marengo embeddings for video search — Marengo 3.0 went live in December twenty twenty-five and it's on Amazon Bedrock too — with Pegasus for video-to-text. Indexing runs about four cents a minute. Google's Video Intelligence does shot detection at about five cents a minute after the first thousand free minutes, and AWS Rekognition's segment detection is reportedly similar. Those are for searching a library, not for one to-do list.

Corn: Search across a library. Daniel filming one flat doesn't need a video search engine, he needs a filter.

Herman: Right, and the filter side is where the small open models live. SmolVLM2 from Hugging Face — two hundred fifty-six million parameters at the bottom end, Apache 2.0, with five-hundred-million and two-point-two-billion versions above it, and it handles video natively. The smallest one is weak on hard video questions, it scores about thirty-four on Video-MME against fifty-two for the two-billion version, but as a per-frame filter that runs on almost anything, "is this frame a dirty wall, yes or no", the small end is worth trying. Qwen3-VL is the bigger sibling — dense sizes from two billion up, mixture-of-experts versions, video and images, two hundred fifty-six thousand context. Florence-2 from Microsoft is tiny and MIT-licensed, does captioning and detection, images only. Moondream 3's preview is a nine-billion-parameter mixture of experts that mostly detects and points, image-focused, and its licence bars reselling it as an API.

Corn: Which is the polite way of saying someone is already reselling it as an API.

Herman: Somewhere, yes. So the workload-to-tool matching, which I think is the actual deliverable for Daniel. A one-off apartment walkthrough: short script, SigLIP or CLIP, ffmpeg, twenty frames, done — an afternoon, no vendor. Thousands of inspection videos or anything privacy-sensitive: SmolVLM2 or Florence-2 locally, frames never leave the building. Search across a growing library of footage: Marengo, indexed, queryable. And if you're already on Gemini and the details are big and readable: send the video, three cents, don't build a pipeline at all.

Corn: The transcript half matters as much, by the way. The frames say "wall with stain", the narration says "this is the second bedroom, and the stain was here when we moved in." The frames alone lose the rooms.

Herman: And the transcription only has to be good enough to line up with the timestamps. This is the same dependency we touched on when we did the episode on benchmarking speech recognition beyond the word error rate — the frame-plus-transcript trick is only as good as the transcript, and the transcript is the half nobody benchmarks in these pipelines.

Corn: It's also the half that's free. Whisper-class local transcription on eight minutes costs nothing but electricity.

Herman: Yes. Cheapest component, carries the whole narrative.

Corn: So — the one thing I'd still push on. Your audit trail argument. Who is that actually for, in an apartment?

Herman: Honestly? Not Daniel. It's for the version of this done professionally — the inspector who has to defend the report later. But there's a softer version even for him: when the to-do list comes back with "check the grout in the bathroom", and the frames are timestamped, you can jump the video to that moment and look.

Corn: That's not an audit trail, that's a bookmark. I'd take the bookmark.

Hilbert: You've both got it. The bit that matters is what you ask for. Herman kept saying query-aware, and that's the whole job. I've a shoebox of stills pulled off a camcorder tape, a flat I rented before it was fashionable to say "walkthrough." I went through it again this week, looking for a receipt that wasn't in there. Every frame scored by hand against my own list of queries, and I'll tell you the two that earn their keep: "a landlord's promise" and "a smell you can see." The damp patch behind the fridge — that's the second one. The camera kept stopping on the landing, and those frames came out lovely and meant nothing. The frames where the camera kept moving and the patch swung into view, those were the ones.

Herman: You scored them by hand?

Hilbert: One evening. Best to-do list I ever produced, better than anything a model's given me since. Never done it again. It was the most boring evening of my life and I've repaired broadcast equipment for a living. The pause button on that camcorder wasn't made for claws, either, so half the evening was physical labour.

Herman: But "a smell you can see" — that's a query no embedding model would score against. You'd have had to know to ask SigLIP for "damp patch" or "mould", and the phrase you actually used is better than any of them. It's a query about consequence, not appearance.

Hilbert: It's the query of a man who has lived in flats, Herman. The machine asks what things look like. The tenant asks what's going to happen to him in six months.

Corn: The tape's still around, though?

Hilbert: Lost in a move, sometime back. The shoebox is the only record of the flat now. The stills are in timestamp order, so I can walk the flat in my head, room by room. Never once watched the tape back, even when I had it. The neighbour's terrier got in through the window during filming — it's in nine frames — and its owner wanted copies, so I traded him for a set of prints and he let the business rest there. Good arrangement. The nine frames with the dog in them are the sharpest ones, incidentally. Animals hold a camera's attention better than walls do.

Herman: The dog frames score highest on your own queries. That's the diversity term arguing with the relevance term, and the dog won.

Hilbert: The dog usually wins, Herman. Where do you think the phrase came from.

Corn: Nine frames out of eleven thousand. The dog had a better selection pipeline than PySceneDetect.

Herman: So where that leaves the whole question is the part I'd want Daniel to sit with: Gemini's agentic mode is the vendor quietly admitting that frame selection is a job worth doing. They're just doing it inside the model, where you can't see which frames got picked and the dog doesn't get a vote.

Corn: And the step we've been defending all episode becomes the specialist's tool — the no-video models, the local privacy cases, the audits, and men with shoeboxes. For one apartment and one to-do list, the thirty-line script wins on the same grounds it always did. Not cost. Control over what gets remembered.

Herman: Which is Hilbert Flumingtop's department in the most literal sense — he produces this show, and today he produced a one-take documentary about a flat that no longer exists. Thanks as always, Hilbert.

Corn: If you enjoyed this one, try episode nine, Benchmarking Custom ASR Tools - Beyond The WER; episode sixteen, On Deepfakes, SynthID, And AI Watermarking; and episode two, Local STT For AMD GPU Owners. This has been My Weird Prompts. If the show's earned it, a review helps other people find us — and everything we've ever done is at my weird prompts dot com.

Herman: We'll be back soon. See you then.