FFmpeg recipe

FFmpeg: Convert MKV to MP4 (Stream-Copy)

When the MKV uses H.264 + AAC (most movie rips), stream-copy remuxes to MP4 in seconds — bit-identical streams, new container.

Command

ffmpeg -i input.mkv -c copy -map 0:v:0 -map 0:a:0 -y output.mp4
Prefer no terminal?
Use the Video Converter in your browser
Open Video Converter

What each flag does

-iInput file. Can be a video, audio, or image. Repeat for multiple inputs.
-c copyStream-copy: no re-encoding. Output is bit-identical between cut points. Fastest possible.
-mapManually pick which streams to include from the input(s).
-yOverwrite output file without confirmation.
-map 0:v:0Take the first video stream from input 0.
-map 0:a:0Take the first audio stream from input 0. Add -map 0:a:1 to keep multiple tracks.

Notes & gotchas

  • For DTS or AC3 audio inside MKV, stream-copy fails — re-encode audio with -c:a aac -b:a 192k.
  • For HEVC video, browsers reject the result; re-encode with -c:v libx264 -crf 23.
  • Subtitles do not migrate cleanly to MP4 — burn them in with the Subtitle Burner if needed.

Related recipes