VidToFLAC

Test bench

Tests run on 19 September 2026 · by Guillem Sánchez

Almost 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

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
MP4AAC-LCCamera, phone, OBSH.264copies it807 KB1,019 KB
MP4MP3Older convertersH.264copies it834 KB1,009 KB
MOVPCM 16 bitsField recorderH.264copies it1,255 KB765 KB
MKVOpusOBS, web videoVP9copies it559 KB763 KB
WebMVorbisOlder web videoVP8copies it466 KB755 KB
MKVAC-3DVD copy, broadcastH.264copies it972 KB1,008 KB
MKVE-AC-3Digital broadcastH.264copies it972 KB1,008 KB
MKVDTSBlu-ray, home cinemaH.264copies it1,728 KB1,019 KB
AVIMP3Old compact cameraMPEG-4 (Xvid)copies it1,554 KB1,716 KB
WMVWMAWindows Movie MakerWMV2re-encodes to H.2641,195 KB2,373 KB
VOBMP2DVDMPEG-2re-encodes to H.2641,770 KB2,519 KB
TSAACDigital TV recorderH.264copies it867 KB1,022 KB
3GPAMR-NBPre-2010 phoneH.263re-encodes to H.264367 KB1,216 KB
MP4AAC-LCiPhone since iOS 11 (HEVC video)HEVCre-encodes to H.264491 KB2,458 KB
M4AAAC-LCAudio only—.flac output115 KB338 KB
FLACFLACAudio only—.flac output85 KB85 KB
WAVPCM 16 bitsAudio only—.flac output563 KB85 KB
File size before and after converting, measuredBar chart: the MP4 with AAC goes from 807 to 1,019 KB and the HEVC MP4 from 491 to 2,458 KB, while the MOV with PCM drops from 1,255 to 765 KB and the WAV from 563 to 85 KB.File size before and after converting, measuredInput fileConverted fileMP4 · AACvideo copied807 KB1,019 KBMOV · PCMvideo copied1,255 KB765 KBWAV · PCMaudio only563 KB85 KBMP4 · HEVCre-encoded491 KB2,458 KBSix-second test files built with FFmpeg 6.1.1. They compare cases against each other, not your own file.
Four of the seventeen cases, with the exact figures from the table.

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

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:

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 failsWhat you seeAudio codecs
Silent trackThe audio track appears, but nothing playsAAC-LC, in all four files where it appears
No track at allThe clip imports with video onlyOpus, Vorbis, E-AC-3, DTS
Decodes wronglySomething plays, but not what is in the fileAC-3
Will not importThe file never reaches the Media PoolAVI (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 atFilesIn Resolve
0.000 sfourteenall fourteen play
0.007 s · 0.003 sMKV with VP9 · WebM with VP8silent
0.086 sWMVstarts 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 testedResult
Variable frame rate, alternating 30 and 15 fps every two secondsImports and plays smoothly. The audio still lines up at the end of the clip
Six-channel FLAC, from AC-3 5.1All six channels survive. It sounds louder on stereo monitoring, because Resolve sums them
FLAC at 96 kHz and 24 bits, from a field recorderImports and plays
Two separate FLAC tracks in the same fileResolve shows a single one. Both are inside and can be recovered through Clip Attributes (below)
AV1 video copied, with Opus audio correctedPicture and sound both fine
A file with no audio track at allImports without an error
Five minutes of 1080p, 25 MBImports and plays smoothly
4K re-encoded from HEVC to H.264, 31 MBLooks 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:

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.