TL;DR: A large share of Reels and TikToks never say their message out loud. It is written on screen over a trending sound. Speech-to-text returns nothing useful for those videos, so you need to read the frames instead. The approach that works: grab a handful of frames spread across the video, have a vision model read the overlaid text, then merge and deduplicate it in reading order. Below is how to do it yourself with ffmpeg, and how to get it as JSON from one API call.
If you have ever transcribed a batch of short videos, you have seen this. Half of the rows look fine, and the other half say "hasSpeech": false or contain three words of song lyrics. The videos themselves are not empty. Look at them and you will see "3 things nobody tells you about…", a numbered list, a price or a punchline, all as text on screen.
For marketing research, content analysis or feeding videos to an LLM, that on-screen text is often the content. Here is how to get it out.
Why classic OCR struggles with short videos
The obvious first try is to run Tesseract on a few frames. It usually disappoints, for reasons that are specific to social video:
- Styled captions. Thick outlines, drop shadows, coloured boxes and emoji confuse OCR engines trained on documents.
- Busy, moving backgrounds. Text sits on top of faces, products and camera motion.
- The same text on many frames. A caption stays on screen for several seconds. Naive OCR returns it five times, sometimes with small differences.
- Noise you don't want. Usernames, the TikTok or Instagram watermark and UI elements get read along with the real message.
Vision-language models handle all four much better. They read stylised text well, and you can tell them what to ignore and how to merge what they see.
The approach: sample, read, merge
- Sample frames. One frame every 3-5 seconds is enough for most short videos, because captions rarely change faster than that. Cap it at around five frames so long videos don't get expensive.
- Keep them small but legible. About 432 px wide keeps captions readable and each image small, which matters when you pay per image token.
- Read them in order. Send the frames to a vision model in chronological order and ask for the distinct pieces of text, merged across lines and deduplicated across frames, without usernames or watermarks.
- Return a clean list. One entry per distinct piece of text, in the order it appeared.
Doing it yourself
Grabbing a frame at a given second is one ffmpeg call. -ss before -i makes the seek fast:
ffmpeg -ss 4 -i video.mp4 -frames:v 1 -vf "scale='min(432,iw)':-2" -q:v 5 frame_1.jpg Repeat it for a few evenly spaced timestamps, then send the images to a vision model with a prompt along these lines:
These images are frames from one short video, in chronological order. List every distinct piece of text shown on screen (captions, titles, list items, subtitles). Keep reading order, merge text that is split across lines into one entry, and remove duplicates across frames. Ignore usernames, watermarks and app UI. Answer with a JSON array of strings. That is the whole idea. The work is in the details around it: downloading videos reliably from each platform, handling videos shorter than your sampling interval, batching frames for models that accept only a few images per request, retrying when a provider is busy, and not paying for a video that failed halfway.
The ready-made way: one API call
I packaged this pipeline as an Apify Actor, Video On-Screen Text Extractor. It takes TikTok, Instagram Reel, X and Facebook video links and returns the on-screen text together with the spoken transcript. No login is needed, only public videos are processed.
No code
Open the Actor, paste video links, click Start. Every video becomes one row, and the On-screen text view shows the text next to the transcript. Export as CSV, Excel or JSON.
JavaScript
import { ApifyClient } from 'apify-client'; const client = new ApifyClient({ token: process.env.APIFY_TOKEN }); const run = await client.actor('aemon/video-on-screen-text-extractor').call({ urls: [ 'https://www.tiktok.com/@apifylife/video/7338085038258457889', 'https://www.instagram.com/p/DULBkEngpxg', ], }); const { items } = await client.dataset(run.defaultDatasetId).listItems(); for (const v of items.filter((item) => item.status === 'ok')) { console.log(v.url); console.log(' on screen:', v.onScreenText.join(' | ')); console.log(' spoken: ', v.hasSpeech ? v.text : '(no speech)'); } What comes back
This is the real output for the TikTok above, a 32-second recruiting video from Apify's own account:
{ "url": "https://www.tiktok.com/@apifylife/video/7338085038258457889", "platform": "tiktok", "durationSec": 32, "onScreenText": [ "of course it took us half a year to get what we actually do", "of course we have the best office in the center of Prague", "of course you can work anytime", "we're Apify and we're hiring!" ], "hasSpeech": true, "text": "Hi, we're Appify. Of course it took us half a year to get what we actually do..." } Two things worth noticing. First, the on-screen text is a clean outline of the video: four lines, in order, with no duplicates even though each caption sits on screen for several seconds. Second, it spells the brand correctly ("Apify") where speech recognition heard "Appify". When both are available, the on-screen text is often the more reliable source for names.
The Instagram post in the same run is the typical "music plus text" format. The only spoken words are "I love you.", and the actual message is the two lines on screen: "You coming back from this..." followed by "To this".
Combine it with an AI summary
On-screen text gets even more useful when an LLM reads it together with the caption and the transcript. Turn on AI analysis in the same Actor and every row also gets a summary, the opening hook, key points and the call to action. For music-only videos the analysis is based on the on-screen text, so you get a real summary where a transcript-only pipeline would return nothing.
If hooks are what you are after, the sister Actor TikTok & Reels Hook Analyzer has all of this switched on by default and accepts whole TikTok profiles.
How much does it cost?
About $0.008 per video: $0.006 for the transcript and $0.002 for the on-screen text, platform usage included. Failed, private and removed videos are not charged, and if reading the text fails for a video, that part isn't charged either. The Apify free plan's $5 monthly credit covers roughly 600 videos.
Wrapping up
If your video pipeline only listens, it misses a big part of short-form content. Sampling a few frames, letting a vision model read them and merging the result in order fills that gap, whether you build it yourself with ffmpeg or call it as an API.
Do you run into music-only videos in your own data? I'd be curious what share of your videos they are.
Disclosure: I'm the author of the Video On-Screen Text Extractor used in the examples, published on Apify under my agency Aemon. Links to Apify use my referral code; if you sign up through them, I get a share at no extra cost to you.
