Test bench
Tests run on 19 September 2026 · by Guillem SánchezAlmost everything written about codecs and video editors gets repeated from site to site without anyone checking it. This page is the opposite: seventeen files built on purpose, one per container and codec combination, run through the same chain of commands VidToFLAC executes, with every result measured.
If anything here contradicts another page on this site, this one wins. And if you get a different result, write to me and I will run it again.
What it was tested on
- FFmpeg 6.1.1 (Ubuntu package
6.1.1-3ubuntu5), the same engine VidToFLAC compiles to WebAssembly. - DaVinci Resolve Studio 21 on Ubuntu, for the part that has to be checked inside the editor.
- Six-second test files, with synthetic 640×360 video and a 440 Hz tone, generated on the spot. Nothing is downloaded from anywhere: every file is built with FFmpeg from scratch.
How each file is built
One example, the MP4 with AAC audio that stands in for any camera, phone or OBS recording:
ffmpeg -f lavfi -i testsrc2=s=640x360:r=30:d=6 -f lavfi -i sine=f=440:d=6:sample_rate=48000 \
-c:v libx264 -preset veryfast -crf 20 -c:a aac -b:a 192k -shortest source.mp4
That file then goes through the decision the tool makes: if the video codec is on its list of codecs the browser cannot decode, it is re-encoded to H.264; otherwise it is copied. The audio always becomes FLAC.
ffmpeg -i source.mp4 -c:v copy -c:a flac output.mkv # video codec the browser can decode ffmpeg -i source.mp4 -c:v libx264 -preset ultrafast -crf 18 -c:a flac output.mkv # one it cannot
Results of the seventeen tests
All of them completed: not a single file defeated the chain.
| Source | Audio | Where it comes from | Video | What it does with the video | In | Out |
|---|---|---|---|---|---|---|
| MP4 | AAC-LC | Camera, phone, OBS | H.264 | copies it | 807 KB | 1,019 KB |
| MP4 | MP3 | Older converters | H.264 | copies it | 834 KB | 1,009 KB |
| MOV | PCM 16 bits | Field recorder | H.264 | copies it | 1,255 KB | 765 KB |
| MKV | Opus | OBS, web video | VP9 | copies it | 559 KB | 763 KB |
| WebM | Vorbis | Older web video | VP8 | copies it | 466 KB | 755 KB |
| MKV | AC-3 | DVD copy, broadcast | H.264 | copies it | 972 KB | 1,008 KB |
| MKV | E-AC-3 | Digital broadcast | H.264 | copies it | 972 KB | 1,008 KB |
| MKV | DTS | Blu-ray, home cinema | H.264 | copies it | 1,728 KB | 1,019 KB |
| AVI | MP3 | Old compact camera | MPEG-4 (Xvid) | copies it | 1,554 KB | 1,716 KB |
| WMV | WMA | Windows Movie Maker | WMV2 | re-encodes to H.264 | 1,195 KB | 2,373 KB |
| VOB | MP2 | DVD | MPEG-2 | re-encodes to H.264 | 1,770 KB | 2,519 KB |
| TS | AAC | Digital TV recorder | H.264 | copies it | 867 KB | 1,022 KB |
| 3GP | AMR-NB | Pre-2010 phone | H.263 | re-encodes to H.264 | 367 KB | 1,216 KB |
| MP4 | AAC-LC | iPhone since iOS 11 (HEVC video) | HEVC | re-encodes to H.264 | 491 KB | 2,458 KB |
| M4A | AAC-LC | Audio only | — | .flac output | 115 KB | 338 KB |
| FLAC | FLAC | Audio only | — | .flac output | 85 KB | 85 KB |
| WAV | PCM 16 bits | Audio only | — | .flac output | 563 KB | 85 KB |
These sizes come from six-second files. They are useful for comparing cases against each other, not for estimating what your own video will weigh.
What the numbers show
- The video is copied nearly every time. H.264, AV1, VP8, VP9 and MPEG-4 (Xvid) all come through untouched. Seven are re-encoded to H.264: WMV2, MPEG-2 and HEVC because browsers cannot decode them, and H.263, Theora, FLV1 (Sorenson) and MS MPEG-4 v3 (DivX 3) because DaVinci Resolve imports them with no picture when they arrive copied. Four of the seventeen files fall in that group.
- Converting to FLAC almost always makes the file bigger. Starting from lossy audio, every output grew: the MP4 with AAC went from 807 KB to 1,019 KB. What you gain is compatibility, not size.
- Unless the source was already lossless. The MOV with PCM dropped from 1,255 KB to 765 KB, and the standalone WAV from 563 KB to 85 KB, because FLAC compresses what PCM stores raw.
- A FLAC input comes out identical, byte for byte: 85 KB before and after. The tool does not recompress it.
- Re-encoding the video multiplies the size. The HEVC MP4 went from 491 KB to 2,458 KB — five times larger, because H.264 needs far more bitrate for the same quality. That is the price of a preview the browser can play.
- AC-3, E-AC-3, DTS and AMR all decode fine. The four formats editors usually refuse were converted to FLAC without trouble.
How much FLAC really compresses
It depends entirely on the material, which is why a measured range beats a single percentage. Over 39.5 seconds of stereo audio at 48 kHz and 16 bits, always starting from a 7.58 MB WAV:
- White noise (the worst case there is): 3.56 MB, 53 % of the original.
- A pure 440 Hz tone: 540 KB, 7 %.
- A real screen recording, with silences and speech: 431 KB, 6 %.
Music and continuous speech sit between those extremes, usually closer to half than to 6 %. Anyone promising you a fixed percentage has measured nothing.
What has been tested inside DaVinci Resolve
This is the part that cannot be automated. On 20 September 2026 I imported all seventeen files, one by one, into DaVinci Resolve Studio 21.0.4 build 5 on Ubuntu — first the originals, then the converted ones. Here is what came out.
Of the seventeen originals, only three were usable: the ones carrying MP3, PCM and FLAC. The other fourteen failed in four distinct ways, and the difference between them matters more than it looks:
| How it fails | What you see | Audio codecs |
|---|---|---|
| Silent track | The audio track appears, but nothing plays | AAC-LC, in all four files where it appears |
| No track at all | The clip imports with video only | Opus, Vorbis, E-AC-3, DTS |
| Decodes wrongly | Something plays, but not what is in the file | AC-3 |
| Will not import | The file never reaches the Media Pool | AVI (Xvid), WMV, VOB, 3GP |
The silent track is the worst of the four, because the clip looks fine and you go hunting for the problem in the project settings. The AC-3 case was a surprise: I checked with FFmpeg that the source file is a constant 440 Hz tone from start to finish, so the odd beep that comes out halfway through is the decoder's doing, not the file's.
Sorted out, the pattern explains itself: what is free of patents gets through, and what is not does not. FLAC, PCM and MP3 — whose patents expired in 2017 — import fine; AAC, AC-3, E-AC-3, DTS and WMA do not. And this is the paid edition, with every licence Blackmagic ships: paying does not fix it, at least on Linux.
With the seventeen converted files, all seventeen import. The four that Resolve refused outright now open without trouble; the AC-3 stops sounding wrong; the AAC stops arriving silent. In that first round fifteen of seventeen played: the two that did not exposed the bug explained just below, now fixed.
The two that stayed silent, and the false trail I followed first
The two remaining failures were the MKV with VP9 video and the WebM with VP8: correct picture, silent FLAC track — the same FLAC track that plays in the other fifteen files. Since those two were the only ones whose video was not H.264, I assumed the video codec was to blame, tested it by re-encoding the video, heard sound, and believed it.
That conclusion was wrong. Re-encoding the video also makes FFmpeg reset the timestamps, so the experiment changed two things at once and I was only watching one of them. Repeated properly — same VP9 video, same FLAC audio, both copied, with seven milliseconds of start offset as the only difference — the shifted file stayed silent and the other one played.
The real cause is that: DaVinci Resolve needs the audio track to start at exactly zero. Cross-checking the timestamps of all seventeen converted files against what each one did, the correlation has no exceptions:
| Audio track starts at | Files | In Resolve |
|---|---|---|
| 0.000 s | fourteen | all fourteen play |
| 0.007 s · 0.003 s | MKV with VP9 · WebM with VP8 | silent |
| 0.086 s | WMV | starts halfway through |
The video does not care about the offset at all: the MKV with AC-3 and the one with E-AC-3 start their picture at 0.005 s and the TS at 0.021 s, and all three play fine. The problem belongs to the audio alone.
Where do those milliseconds come from? From the source format itself. Opus stores a pre-skip in its header, the delay its decoder needs to start up, so the WebM arrives with audio beginning at −0.007 s. Since FFmpeg will not write negative timestamps, remuxing shifts everything forward and the MKV comes out with audio at +0.007. The WMV brings the same thing through the ASF preroll.
The fix is one option, not a re-encode. Adding aresample=async=1:first_pts=0 to the audio filter anchors the track to zero. Comparing the old output against the new one sample by sample, the thirteen files that already worked come out identical, difference exactly zero: the filter only moves the ones that were offset. The video is still copied and the conversion is just as fast.
What does get re-encoded, for a different reason, is H.263, Theora, FLV1 (Sorenson) and MS MPEG-4 v3 (DivX 3): those four import with sound but no picture, with the timestamps at zero or otherwise, and no timestamp option fixes it. VP8, VP9 and AV1 are copied, which is what matters: they are the codecs of web video and modern screen recorders, and re-encoding them would cost about three quarters of a second per second of video for no gain.
Second round: eight cases the first one did not cover
On 22 September 2026, on the same machine, I put eight more files through Resolve, all of them converted with the tool's own chain. They are not different codecs: they are situations the first seventeen never touched.
| What was tested | Result |
|---|---|
| Variable frame rate, alternating 30 and 15 fps every two seconds | Imports and plays smoothly. The audio still lines up at the end of the clip |
| Six-channel FLAC, from AC-3 5.1 | All six channels survive. It sounds louder on stereo monitoring, because Resolve sums them |
| FLAC at 96 kHz and 24 bits, from a field recorder | Imports and plays |
| Two separate FLAC tracks in the same file | Resolve shows a single one. Both are inside and can be recovered through Clip Attributes (below) |
| AV1 video copied, with Opus audio corrected | Picture and sound both fine |
| A file with no audio track at all | Imports without an error |
| Five minutes of 1080p, 25 MB | Imports and plays smoothly |
| 4K re-encoded from HEVC to H.264, 31 MB | Looks right at full resolution |
Two audio tracks: they are in there, but Resolve shows one
This one deserves its own heading, because it is the most useful of the eight and the hardest won. An MKV holding two FLAC tracks, confirmed with ffprobe beyond any doubt, imported with a single audio track on the timeline.
And it does not always happen. I generated thirteen variants of the same clip, changing one property at a time — the default-track flag, the track names, 16 against 24 bits, 44.1 against 48 kHz, the resolution, the duration, the tags inherited from an MP4 source, MKV against MP4 as the container — and some opened two tracks while others opened one. With every one of them ruled out on its own, the honest conclusion is that the cause is not in the file but in the state of Resolve, which stores a clip's audio attributes the first time it reads it.
What matters is that the audio is never lost. Right-click the clip in the Media Pool, Clip Attributes → Audio, and the Format dropdown lets you choose the number of tracks while Source Channel lists the channels the file actually carries: Embedded Channel 1 and Embedded Channel 2. Assign them there and the clip carries two separate tracks. Do it before dragging it to the timeline.
And a later change: since 24 September the tool keeps the tracks. If the file carries several, it shows a checkbox per track before converting, and each one left ticked comes out as a FLAC track. I tested it on the 25th in the app itself with a two-track AAC MKV: two ticked, two FLAC; one unticked, one; in MKV and in MP4, with the audio always starting at 0.000. It is detailed in the guide on OBS with two audio tracks. The Clip Attributes advice still stands: the file carrying both tracks does not change the fact that Resolve may show one.
What is not tested yet
For honesty, because a test bench that hides its gaps is worth nothing:
- The same tests on Windows and macOS, where AAC support is licensed.
- The free edition of Resolve on Linux, as against Studio. Everything above is Studio: it says nothing about what the free edition does, not even with AV1 or HEVC.
- The browser's memory ceiling. Five minutes of 1080p goes through without breaking a sweat, but that says nothing about where the limit is: a file of several gigabytes still needs to be run through and watched.
- Why Resolve shows one audio track when the file holds two. Thirteen variants did not explain it; it needs looking at from the program's side, not the file's.
- One oddity I could not reproduce: the converted WMV came out silent the first time and started halfway through on the second play. The file is correct; this needs repeating before anything is claimed about it.
How to repeat the tests
All of this reproduces with FFmpeg and ffprobe on any machine. Build the file with the first command, convert it with the second, then check what came out:
ffprobe -v error -show_entries stream=codec_type,codec_name -of default=nw=1 output.mkv
If your result does not match the table, I want to know: send your FFmpeg version and the exact command through the contact form.
More on how everything here gets verified is on the author page. And if what you need is to fix your file right now, the tool is on the home page.