M4V to MKV Converter
Learn how to convert M4V files to MKV using FFmpeg, HandBrake, or MKVToolNix — free, no file upload required.
M4V vs MKV — What is the Difference?
| Feature | M4V | MKV |
|---|---|---|
| Container standard | Apple variant of MPEG-4 | Matroska (open standard) |
| Video codec support | H.264, H.265 | H.264, H.265, AV1, VP9, and more |
| Audio track limit | Limited multi-track support | Unlimited tracks |
| Subtitle support | CEA-608, SRT (limited) | SRT, ASS, PGS, VobSub and more |
| DRM support | Optional (Apple FairPlay) | None — fully open |
| Media server support | Apple TV, iTunes | Plex, Jellyfin, Kodi, VLC |
| File extension | .m4v | .mkv |
DRM-protected files cannot be converted
M4V files purchased from iTunes with Apple FairPlay DRM will fail or produce a blank output. The methods below work only for DRM-free M4V files — personal screen recordings, unlocked purchases, or files you created yourself.
FFmpeg Command Generator
Fill in the fields below to get the exact FFmpeg command for your conversion.
ffmpeg -i input.m4v -c copy output.mkv
Install FFmpeg
Windows: winget install ffmpeg | macOS: brew install ffmpeg | Ubuntu: sudo apt install ffmpeg
Step-by-Step Methods
FFmpeg is a free command-line tool ideal for remux, re-encode, and batch conversion. Works on Windows, macOS, and Linux.
-
1
Install FFmpeg
Download from ffmpeg.org or install via your package manager (see command above).
-
2
Open a terminal in your video folder
On Windows: Shift-right-click in Explorer and choose Open PowerShell here. On macOS/Linux: use cd to navigate to the folder.
-
3
Run the remux command (recommended first try)
Use the generator above, or copy this one-liner:
ffmpeg -i input.m4v -c copy output.mkv
-
4
If remux fails, re-encode with H.264
This handles incompatible stream formats and produces a widely supported MKV file:
ffmpeg -i input.m4v -c:v libx264 -crf 20 -preset fast -c:a aac output.mkv
-
5
Batch convert all M4V files in a folder
Linux / macOS:
for f in *.m4v; do ffmpeg -i "$f" -c copy "${f%.m4v}.mkv" doneWindows PowerShell:
Get-ChildItem *.m4v | ForEach-Object { ffmpeg -i $_.FullName -c copy ($_.BaseName + ".mkv") }
Which Tool Should You Use?
Best for scripting, batch jobs, and speed. Remux finishes in seconds. Requires comfort with the command line but offers maximum control and codec flexibility.
Best for beginners who want quality presets, chapter support, and subtitle embedding. Re-encodes by default — takes longer but gives fine-grained quality control.
Best when you want a lossless GUI remux. No re-encoding, no quality loss. Great for users who want to pick individual tracks or add external subtitle files.
Summary
Learn how to convert M4V files to MKV using FFmpeg, HandBrake, or MKVToolNix — free, no file upload required.
How it works
- Enter your input filename and choose a codec option in the FFmpeg command generator.
- Copy the generated command and run it in your terminal (FFmpeg must be installed).
- Alternatively, open your M4V file in HandBrake and select MKV as the output container.
- For lossless remux with no re-encoding, use MKVToolNix to wrap the streams into an MKV container.
- Play the resulting MKV file in VLC, mpv, or any MKV-compatible player.
Use cases
- Store ripped Blu-ray or DVD content in the versatile MKV container.
- Add multiple audio tracks or subtitle streams that MKV supports natively.
- Remux a DRM-free M4V recording into MKV without re-encoding to preserve quality.
- Prepare M4V footage for Plex or Jellyfin media servers that prefer MKV.
- Archive video projects in MKV for its superior chapter and metadata support.
- Convert screen recordings saved as M4V to MKV for easier editing in DaVinci Resolve.