Continuing our experiments exploring what it might look like to translate the OCR'd onscreen text at scale, let's take a look at this Spanish-language broadcast. We'll explore several approaches to broadcast-scale OCR translation, including using a Hydrogen Long Decode job to translate it in a single pass (1.7M tokens) and sharding for Flash 3.8 and using optimizations like block chunking and advanced dynamic preprocessing to reduce the total volume of text that must be translated.
Let's start with the simplest approach: translating the entire broadcast all at once. In total, the complete onscreen text of the broadcast across all 1fps frames totals 548K characters (91K words). Using Hydrogen and a Long Decode job, we are able to process the entire show in one submission, consuming 1.7M tokens (due to the repeated full reprocessing) and costing $3.67 for this single 30-minute show, which works out to around $528K a month to process all shows using this workflow. This is the simplest and requires nothing more than handing the full OCR directly to Gemini (after removing exact duplicates), but is the most expensive and isn't suitable for broadcasts beyond 1-1.5 hours.
"total_cached_tokens": 272286, "total_input_tokens": 1490582, "total_output_tokens": 240288, "total_thought_tokens": 2920, "total_tokens": 1733790
Instead of processing the entire broadcast in a single submission using an expensive LD-capable model like Hydrogen and requiring it to repeatedly reprocess the same material using a Long Decode job, let's shard the broadcast into 10 equal chunks to bring it down below Flash 3.8's output limits and process them in parallel. This is exponentially faster and yields the following token counts, which work out to $2.41 under 3.8 Flash's permanent pricing (not counting its introductory pricing), or around $347K per month due to Flash's cheaper per-token rates and fewer tokens due to not having to reprocess tokens for each loop:
"total_input_tokens": 287641, "total_output_tokens": 243017, "total_thought_tokens": 20355, "total_tokens": 551013
That is still processing the entire fulltext of all broadcast frames, meaning that if the same chyron appears for a full minute, we are retranslating the same duplicate text 60 times over (since we only deduplicate at the frame level). What if we split each frame into its component blocks of text (individual segments that separate out the chyron, scrawl, each inset, etc). Instead of a single block of text per frame, we end up with as many as a dozen chunks per frame. We then hash these up and translate only the unique blocks and then reassemble them back into a full translation for each frame. Since each chunk is a self-contained block of text unrelated to those around it, we can safely translate these separately. This yields 1,432 unique blocks of text across the 30-minute broadcast totaling 134,493 characters (22.5K words). This is a major cost reduction, but still extremely expensive, totaling $0.92 for this single broadcast and around $132K per month.
{
"total_input_tokens": 51992,
"total_output_tokens": 46537,
"total_thought_tokens": 66250,
"total_tokens": 164779
}
Why is there still so much text? Shouldn't our chunking process be deduplicating this much more? The answer lies in the scrolling "crawl" at the bottom of the screen. Our OCR process groups that long full-width sequence of headlines into a single monolithic string which changes every second due to the truncation at the left and right as it scrolls on/off the screen. This means that our chunking process ends up just yielding a huge number of very long unique strings, whereas the highly repetitive text it deduplicates consists largely of small chunks that cost relatively few tokens to translate. We achieve a 2.6x cost reduction, but $132K/month to translate our OCR (working out to tens of millions across the entire 25-year archive) is still simply not tractible.
E AL 108 POR ATENCIÓN AL SUICIDA, COMUNICARSE AL 135, PARA TODO EL PAÍS, LAS 24 HS DEL DIA POR CASOS DE VIOLENCIA Y/O ABUSOS CONTRA NIÑOS, NIÑAS Y ADOLESCENTES, CO
Instead, let's try a complex preprocessing pipeline built by Gemini Carbon High Thinking for us that compresses the noisy OCR text into a minimal set of unique phrases for batch translation, then maps the chunk-based translations back onto every video frame. It first applies grapheme-safe Unicode normalization (unifying case, numerals, diacritics, and stray kerning spaces) and reconstructs scrolling "crawls" by aligning text overlaps across consecutive frames, healing screen-clipped word edges from loop repeats, and segmenting continuous crawls into standalone clauses. It then deduplicates static overlays using n-gram indexing, script-scaled bounded Levenshtein distance, and semi-global substring alignment to cluster OCR typos and absorb transition-wipe truncations, before merging co-occurring multi-line chyrons into unified translatable chunks. Using this full preprocessing workflow with all optimizations enabled, we bring the broadcast all the way down to these final token counts, working out to $0.02 for the entire broadcast using flash-lite – a reduction of 184x from using a Hydrogen Long Decode job:
#gemini-4-hydrogen (3m / $0.26): "total_input_tokens": 11817, "total_output_tokens": 8674, "total_thought_tokens": 23678, "total_tokens": 44169 #gemini-3.8-flash (45s / $0.11): "total_input_tokens": 5594, "total_output_tokens": 4511, "total_thought_tokens": 9392, "total_tokens": 19497 #gemini-3.5-flash-lite (20s / $0.02): "total_input_tokens": 12297, "total_output_tokens": 9282, "total_thought_tokens": 0, "total_tokens": 21579