MP4 to text / File preparation
MP4 to Text: Should You Extract the Audio Before You Transcribe?
If the words you need are spoken in the audio track, extracting the audio first gives you the same transcript in less time. In three runs on the same 113-second speech, a 0.90 MB MP3 produced 293 words in 102.4 seconds, a 30.00 MB MP4 produced the same 293 words in 185.6 seconds, and a 115.37 MB MP4 of the same shot also produced 293 words but took 242.0 seconds. The video track never changed the text; it only added time. Keep the MP4 instead when the words are burned into the picture, when you have to check a name against what is on screen, or when the frame is the only record of who spoke.
What three files of the same speech returned
The test file is mine, not a borrowed clip: 24 sentences with known wording, read by a desktop text-to-speech voice at normal rate, rendered as 22,050 Hz mono audio (112.300 seconds), then packaged three ways. The first is a 720 by 1280 H.264 MP4 at 2 Mbps, 30.00 MB. The second is the same picture at 8 Mbps, 115.37 MB. The third throws the picture away and keeps the speech as a 64 kbps mono MP3, 0.90 MB. Each file was uploaded to the local TranscriptLeaf preview in Chrome, the spoken language was set to English, the output to Original, and the model left at its default. Nothing was edited before export.
| Uploaded file | Size | Time to transcript | Words | Characters |
|---|---|---|---|---|
| MP3, 64 kbps | 0.90 MB | 102.4 s | 293 | 1,612 |
| MP4, 2 Mbps | 30.00 MB | 185.6 s | 293 | 1,613 |
| MP4, 8 Mbps | 115.37 MB | 242.0 s | 293 | 1,613 |
The raw numbers, including the two audio-only files that were only measured for size, are in this measurement CSV, so you can check the arithmetic below against the bytes rather than against a summary.
The two MP4 runs returned identical text, including identical SRT output at 2,420 characters. The MP3 run differed in one place: at character 1,150 the MP4 text reads "everything and costs disk space" while the MP3 text reads "everything in costs disk space". That is the whole text difference between throwing the picture away and keeping it. It is also a reminder that re-encoding the audio is a real change to the signal, not a free copy.
Why the picture costs time but does not change the words
Speech recognition reads the audio track. Nothing in the model looks at a frame, so a 115 MB file and a 0.90 MB file of the same speech carry the same words into it. What differs is the work before the model starts: the browser has to read the container, demux the tracks, and decode the video stream before it can hand the audio over. That work scales with the video bitrate. In this test, going from 2 Mbps to 8 Mbps added 85.37 MB of video and 56.4 seconds of processing, and the text did not move a character.
That is why advice about MP4 to text tends to drift past the real decision. The tools list formats and language counts; the question you actually have is whether the video track is earning its keep on this particular file. On a talking-head clip it usually is not.
When you should keep the MP4
- The words are burned into the picture. Hard subtitles, on-screen lower thirds, chat overlays and text cards are pixels. If the speech is music or silence underneath, the audio route returns nothing useful, and the frames are the only source of the words.
- You have to verify a name against the screen. A person's name on a slide, a product spelling, a number on a chart. If the transcript is going to be quoted, keeping the video lets you check the spelling against the frame instead of guessing from the sound.
- Who spoke matters and the picture shows it. If you need to attribute lines to people and the audio gives no clue, the visual cut is evidence you would otherwise destroy.
- The file is short and already on disk. On this 113-second clip the difference between the MP4 and the audio copy was 83.2 seconds. Extracting audio first costs you a step; on a one-minute clip that step may be the larger cost.
When extracting the audio is the better route
- The file is hours long. A four-hour recording at the 8 Mbps rate measured here works out to roughly 14.7 GB, against about 115 MB as a 64 kbps MP3. The upload, the disk read and the demux all shrink with it.
- A tool has a size cap. On the ten pages I checked for this keyword, five state a cap: 50 MB, 200 MB, under 4 GB, 60 minutes, or a per-plan limit. A 14.7 GB file does not fit any of them, and the audio copy usually does.
- You are processing an archive. If the pipeline is one file in, one text out for fifty recordings, the video track is dead weight in every one of them.
How to extract audio without guessing
With ffmpeg installed, this drops the picture and keeps the speech as a 16 kHz mono WAV, which is what most recognisers want: ffmpeg -i input.mp4 -vn -ac 1 -ar 16000 audio.wav For a smaller file, swap the last argument for a compressed copy: ffmpeg -i input.mp4 -vn -ac 1 -b:a 64k audio.mp3 If you only want to know what the video track costs before committing, ffprobe -v error -show_entries stream=codec_type,bit_rate -of compact input.mp4 prints the audio and video bitrates separately.
Two caveats from the test. A 16 kHz mono WAV of this clip is 3.59 MB, four times the 0.90 MB MP3, so "extract the audio" does not always mean "smaller"; it means no video track. And re-encoding to 64 kbps changed one word. If the transcript is going to be published, extract to WAV or keep the original sample rate, and spot-check a minute against the audio before you convert the whole archive.
What a four-hour file works out to
The arithmetic below uses the measured sizes and speeds from the table and is clearly arithmetic, not a second test. At the 8 Mbps rate, one minute of video costs 61.2 MB; at 2 Mbps it costs 15.9 MB; a 64 kbps MP3 costs 0.48 MB; a 16 kHz mono WAV costs 1.92 MB.
| Four hours of speech as | Per minute | Four hours | Processing at the measured rate |
|---|---|---|---|
| MP4 at 8 Mbps | 61.2 MB | about 14.7 GB | about 8.6 hours |
| MP4 at 2 Mbps | 15.9 MB | about 3.8 GB | about 6.6 hours |
| MP3, 64 kbps mono | 0.48 MB | about 115 MB | about 3.6 hours |
| WAV, 16 kHz mono | 1.92 MB | about 461 MB | not measured |
The processing column comes from the measured ratios in this test: 102.4 seconds of processing for 112.3 seconds of audio, 185.6 for 113.1, and 242.0 for 113.1. The WAV row is size arithmetic only; that file was not run. If you have a four-hour MP4 sitting on a disk, the MP4 rows are the order of magnitude to plan around; they are not a promise about a different machine, a different model, or a file with music in it.
A note on where the file goes
This matters more than the size question for some people. In the workspace test above, the file stayed on the machine: the model runs in the browser, and the audio is decoded locally. A cloud tool that asks you to upload a 14.7 GB MP4 is asking you to send the whole recording, picture included, to a server. Extracting the audio first reduces what leaves your machine to the speech, which is a privacy decision as much as a size one.
What this test does not prove
One synthetic voice, one 113-second clip, one desktop browser, one afternoon. It does not measure word error rate across accents, background music or crosstalk, does not test a file longer than two minutes, and does not claim the same timings on another computer. The four-hour figures are arithmetic from the measured per-minute sizes and speeds. What the numbers do support is narrower and enough to act on: the video track added time in proportion to its bitrate and changed nothing in the text, and dropping it to a compressed audio copy changed exactly one word in 293.