ffmpeg -i input.mp4 -c copy output.mkv

Category: Media & Conversion

ffmpeg -i input.mp4 -c copy output.mkv

Remux video into a new container without re-encoding

Remuxes, meaning it repacks the existing streams into an MKV container without re-encoding, so it is instant and lossless. -c copy copies every stream. Use remuxing to change file types without any quality loss.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.