This directory contains code for muxing mkv (webm) and mp4 files.
Muxers are based off the media::Muxer
interface. These muxers are primarily used by MediaRecorder and ChromeOS video recording.
Since audio and video streams often come from sources with different clocks, timestamp alignment can be handled by MuxerTimestampAdapter
. More details on synchronization can be found in the Media Capture and Streams spec.
Currently the following codecs are supported in each muxer:
Note: webm is a subset of mkv that technically only supports vp8, vp9, and av1 codecs.