WebM to FLAC: fixing WebM with no audio in DaVinci Resolve
WebM with no audio in DaVinci Resolve: the two causes
The first is the codec: Resolve does not decode Opus or Vorbis by default. The second is an offset: Opus stores a pre-skip in its header, and many WebM files start the audio a few milliseconds after zero. In our tests, a track that did not start exactly at 0 came into Resolve with the audio box on and no sound, while tracks starting at 0 played. VidToFLAC anchors the track to zero when converting. We measured this on the test bench.
Why WebM and video editors do not get along
WebM was designed by Google for the web, not for editing: royalty-free codecs, small files, fast streaming. Those goals are the opposite of what an NLE optimises for. Editors are built around codecs the broadcast industry standardised on decades ago (H.264, ProRes, DNxHD, PCM, AAC) and Opus and Vorbis never entered that world. The format is not broken; it is simply aimed elsewhere.
Opus is better than what replaces it, and that is fine
Worth being clear about this: Opus is a superb codec, better than AAC at the same bitrate. Converting it to FLAC does not improve the audio: nothing can recover what lossy compression already discarded. What FLAC buys you is that everything downstream can read it, and that no further quality is lost from this point on. It is a compatibility move, not a quality one.
Step by step: converting your WebM to FLAC
- Drop the .webm onto the upload area.
- Choose MKV as the output.
- Press Convert. VP8 and VP9 video is copied across untouched, and the audio track is anchored to zero so Resolve plays it.
- Import the MKV into your editor, where the audio now plays.
Common problems and what to do
Screen recordings made in a browser are very often variable frame rate, which makes audio drift as the clip progresses. Converting the audio does not fix that: you need a constant frame rate, which means re-encoding the video with -vf fps=N. If the drift grows over time rather than staying constant, VFR is your problem, not the codec.
WebM is Matroska, trimmed down
WebM is not a different container from MKV: it is a restricted subset of Matroska, with the same EBML format underneath and a short list of permitted codecs (VP8, VP9 or AV1 with Vorbis or Opus). That restriction is what makes it fit for the web, and what leaves out the audio editors expect.
The fix for your WebM files: FLAC audio in an MKV
WebM files from downloaded video, browser captures and screen recordings carry their audio as Opus or Vorbis, and that is what DaVinci Resolve refuses to decode: on Linux always, and on Windows and macOS depending on version and configuration. The picture imports; the sound does not.
VidToFLAC repackages the file into an MKV and re-encodes the audio track to lossless FLAC, which every major editor reads natively. VP8 and VP9 video is copied bit for bit. The one WebM detail that needs handling is the Opus pre-skip, which leaves the audio track starting a few milliseconds after zero: enough for DaVinci Resolve to import the clip with a silent audio track. The conversion anchors the track to zero instead.
Browser-made screen recordings are often variable frame rate, which makes audio drift as the clip runs. That needs a constant frame rate, not an audio conversion.