Containers, codecs, and DaVinci Resolve: everything you need to know
Containers vs. codecs: the difference that matters
When you record a video, the resulting file (a .mp4, .mov, or .mkv) is not the video itself: it is a container, a kind of envelope that packages multiple tracks inside: the picture and the audio. What actually defines quality and compatibility is the codec, the algorithm that compresses and decompresses each of those tracks.
A single container can hold multiple codecs. An MP4 file, for example, can contain H.264 or H.265 (HEVC) video, and audio in AAC, MP3, AC3, or even FLAC. When DaVinci Resolve (or another editor) cannot open the audio of a clip, the problem is rarely the container (.mp4, .mov, .mkv): almost always it is the audio codec inside.
Why DaVinci Resolve cannot decode certain audio
DaVinci Resolve free edition does not include licenses for certain proprietary decoders, especially AAC (the standard format for iOS cameras, GoPro, and most smartphones), AC3 (Dolby Digital), and DTS. This restriction is especially pronounced on Linux, where Resolve relies entirely on the decoders included in the operating system.
The most common symptom is finding the audio track grayed out in the media inspector, or seeing the message "Audio codec not supported" when trying to import the clip. Another frequent cause is audio encoded as floating-point PCM (pcm_f32le), which some USB microphones and recording software use, which is also not directly compatible with all Resolve workflows.
The solution is not to reinstall DaVinci Resolve or look for paid codecs: it is to change the audio codec of the file to one that Resolve always decodes natively.
FLAC: the lossless standard for professional editing
FLAC (Free Lossless Audio Codec) is an open-source lossless audio format: it compresses the data without discarding any information, so the reconstructed signal is bit-for-bit identical to the original. Unlike AAC or MP3, which discard frequency information to reduce size, FLAC guarantees that no nuance of the original audio is lost. Compared to its lossless alternatives:
- Compared to WAV / uncompressed PCM: WAV and AIFF are also lossless, but they do not compress. A 10-minute audio at 48 kHz / 24 bits can weigh more than 170 MB in WAV; FLAC reduces this by 47 % a 94 % without losing a single bit.
- Compared to floating-point PCM (pcm_f32le): Some USB microphones export audio as 32-bit floating-point PCM. FLAC requires integer samples; VidToFLAC automatically inserts a format conversion step before encoding to FLAC to guarantee compatibility.
- Broad compatibility: FLAC is supported in recent versions of DaVinci Resolve, Adobe Premiere Pro, Avid Media Composer and Final Cut Pro X; support depends on version and system. No plugins or additional licences required on Windows, macOS or Linux.
Remux: why it is faster than a conventional conversion
A traditional video conversion involves decoding each frame (a costly CPU or GPU operation) and then re-encoding it. For a 30-minute 4K video, this process can take hours even on powerful hardware.
VidToFLAC performs a remux instead: it copies the video stream bit by bit, without decoding or re-encoding it, and only transcodes the audio track. Since audio typically represents less than 5 % of the total file size, the process is far quicker than a full conversion. When the video is copied, the resulting image is identical to the original: no additional artifacts, no degradation, not a single frame lost. When it has to be re-encoded, quality is high but no longer identical.
When the video codec is not compatible with the browser (H.265/HEVC, ProRes, DNxHD, MJPEG, MPEG-2, VC-1, WMV…), VidToFLAC automatically re-encodes the video to H.264 at high quality (libx264 -crf 18) to enable preview in the page itself.
Recommended workflows by editor
The MKV file with FLAC audio that VidToFLAC generates is directly compatible with the major non-linear editors (NLE):
- DaVinci Resolve (free version, Linux / Windows / macOS): Import the .mkv directly from the Media Pool. Resolve natively detects the FLAC audio and assigns it to the audio track in the timeline. If the track previously appeared gray, it should now appear blue and play correctly.
- Adobe Premiere Pro: Premiere natively supports MKV and FLAC in recent versions. Import the file from the Project Panel and drag the clip to the sequence. If you use an older version that does not support MKV, you can change the output format to MP4 in VidToFLAC's format selector before converting.
- Avid Media Composer: Avid supports FLAC in MKV for AMA (Avid Media Access) projects. For a more integrated workflow on large projects, consider transcoding to DNxHD via Avid after the initial import.
- Final Cut Pro X: FCP X on macOS imports FLAC in MKV without additional steps in recent versions. On older versions, the free MKV support plug-in for Final Cut may be needed.