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

Category: Media & Conversion

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

Copy all streams into an MP4 container

Copies every stream from an MKV into an MP4 container with -map 0 -c copy, which is a remux, so no re-encoding occurs. Fails if a stream uses a codec MP4 cannot hold, like some subtitle formats. Run ffprobe on the input to check first.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.