.M4V MPEG-4 Video (Apple)
.m4v

MPEG-4 Video (Apple)

M4V is Apple's 2006 file format for iTunes Store video — byte-for-byte identical to MP4 except for four bytes at offset 8. Those four bytes are a brand label Apple's apps pay attention to and every other player ignores. That difference is why renaming `.m4v` to `.mp4` plays the file on Windows.

Container structure
ftyp
moov
mdat
VideoAudioLossySubtitlesMetadata2006

Common questions

How do I convert M4V to MP4?

FileDex converts M4V to MP4 in your browser — drop the file into the converter above. Most M4V files use the same compression as MP4: H.264 video and AAC audio. Only one small label inside the file differs. FileDex re-packs the file into MP4 in seconds without re-compressing the video — fully lossless. Files protected by Apple's iTunes DRM cannot be converted because the lock is inside the file.

What is an M4V file?

M4V is Apple's brand of the MP4 file format. Apple released it in 2006 with the iTunes Store video catalogue. The byte structure inside is identical to MP4 — same boxes, same codecs (H.264 video and AAC audio). The only difference is four bytes at offset 8: a label `M4V ` instead of `mp42`.

Is M4V the same as MP4?

Structurally yes, with one four-byte difference. M4V and MP4 use the same underlying file structure, the same H.264 video, and the same AAC audio. The only structural difference is a four-byte brand label at offset 8. Apple's iTunes and Apple TV apps read that label to apply Apple-specific rules and lock iTunes Store purchases. Every other player ignores it.

How do I play an M4V file on Windows?

Most Windows players ignore `.m4v` files because the extension is unfamiliar. The byte structure inside is identical to MP4. Right-click the file, rename to `.mp4`, and Windows Media Player opens it. VLC Media Player plays `.m4v` directly without renaming because VLC reads the file structure, not the extension.

Is my M4V file DRM-protected?

Open the file in VLC and check the codec name. Unprotected M4Vs show H.264 video; FairPlay-protected files show an encrypted-codec marker the player cannot decode. iTunes Store purchases are FairPlay-protected; HandBrake exports, Final Cut Pro renders, and screen recordings are not. The four-byte brand label outside the file does not tell them apart.

What makes .M4V special

Four bytes apart from MP4
M4V and MP4 are the same format, four bytes apart.
Open an M4V and an MP4 in a hex viewer side by side. Bytes 0–7: identical. The difference: 4 bytes at offset 8 — `M4V ` versus `mp42`. Same compressed frames, same audio, same container. Apple's iTunes and Apple TV apps read those four bytes and apply Apple's DRM and device-profile rules. Everyone else ignores them.
One brand registered, three shipped
Apple ships M4V brand codes it never registered with its own MP4 registry.
MP4RA — the registry where every legal MP4 brand label is filed, administered by Apple — has one M4V entry: `M4V `. The file(1) database shipped with every Linux and macOS install lists three: `M4V `, `M4VH` (Apple TV), `M4VP` (iPhone). Two of three brands Apple ships since 2006 are not in Apple's own registry.
The brand says protected
The M4V brand says 'protected' but most M4V files have no DRM.
The MP4 registry's official description of `M4V ` is `MPEG-4 protected audio+video.` The brand means encrypted. But HandBrake, FFmpeg, and Final Cut Pro output `M4V `-branded files with no encryption. The brand says protected. Most files aren't. Real DRM lives in the codec table inside the file, not the brand outside.
Rename trick is byte-truthful
Renaming `.m4v` to `.mp4` is byte-truthful — the file already IS an MP4.
The rename trick works because the file is structurally an MP4 already. The brand label at offset 8 is the only claim otherwise, and renaming the extension never touches the bytes inside. Windows Media Player dispatches on the extension; when it changes, it plays. Apple is the only software reading the brand.

Four Bytes Apart: The Structural Difference Between M4V and MP4

Open an M4V file and an MP4 file in a hex viewer side by side. The first eight bytes of each are identical: 00 00 00 20 66 74 79 70. The first four bytes are the file size; the next four spell ftyp — the file's first labeled section, the part that announces what kind of file this is. Skip past byte 11 and read the rest of each file. Also identical. The encoded video frames, the AAC audio compression, the index telling the player where every frame lives — every byte that does the actual work of being a video file matches between the two. The difference between the two formats lives in four bytes at offset 8 of each file: the major_brand, the 4-byte label inside the file that says which kind of MP4 family member this is. The M4V file says M4V — with a trailing space, the four-character string Apple uses for iTunes Store video. The MP4 file says mp42 — the generic MP4 brand label, what FFmpeg and HandBrake write by default. Same compressed frames. Same audio. Same container structure underneath. One label different. That difference is the entire structural distinction between the formats. Apple has been writing those four bytes since 2006 — and writing variants of them that Apple never bothered to register.

Continue reading — full technical deep dive

Apple Is the Registration Authority — and Apple Ignores It

The MP4 Registration Authority — the registry where every legal MP4 brand label is filed, administered by Apple itself — has exactly one M4V entry. Search the public list for M4V: one row, registered with the description MPEG-4 protected audio+video. Now search the file(1) magic database — the rule list every macOS and Linux system uses to identify file types, shipped with every Unix-like operating system since the 1980s. Three rows: M4V for Apple iTunes Video, M4VH for Apple TV's M4V variant, and M4VP for Apple iPhone's M4V variant. Two of three brand labels Apple has shipped on M4V files since 2006 do not exist in Apple's own registry. Apple wrote the registry. Apple administers the registry. Apple has shipped two brand labels — one on every Apple TV, one on every iPhone — without ever filing them. The file(1) project caught the brands by reverse-engineering actual files from Apple devices; the canonical registry never received a submission. Identifying an M4V file in 2026 still requires consulting both lists. The brand is supposed to mean protected. That's what Apple's own registry says. Open an actual M4V file and check whether it's protected: the brand will lie to you.

The Brand Says Protected. Most Files Aren't.

Open a music video bought from iTunes Store in 2008. Open a HandBrake export from 2024 with the Apple TV preset. Both files are .m4v. Both have M4V at offset 8 — the four-byte string registered with the description MPEG-4 protected audio+video. The brand says encrypted on both files. Now open the codec table inside each file — the part that names the video and audio compression. The 2008 iTunes file says encv, the codec label MP4 uses to mark a video or audio track as encrypted. Real FairPlay protection — Apple's video DRM, the encryption Apple uses to control playback of iTunes Store purchases. The 2024 HandBrake file says avc1, the codec label for unencrypted H.264 video. No DRM. No encryption. The same brand label outside the file. The brand was meant to mean encrypted. The byte format the world ships says encrypted on both files. The actual files are protected on one and unprotected on the other — the brand cannot tell them apart. FairPlay protection lives in the codec entry inside the file, not in the four-byte label outside it. The HandBrake file, the Final Cut Pro render, the QuickTime screen recording — they all carry the M4V brand without ever touching FairPlay. Which is why the workaround everyone has used since 2006 actually works — and why Apple's own software is the only thing that notices.

Why the Rename Trick Works (And Why Only Apple Notices)

A user on a 2009 Windows XP machine has just bought a music video from iTunes Store. The download finishes. Double-click the .m4v file. Windows Media Player opens, looks at the file extension, decides it doesn't know what .m4v is, and refuses to play. The user right-clicks the file, picks Rename, types .mp4. Double-clicks again. Windows Media Player opens, looks at the new extension, decides it knows MP4, reads the file, finds the H.264 video and AAC audio inside, and plays. The bytes never changed. The codec never changed. Not a single byte of the file moved. Windows Media Player dispatches on the file extension; the moment the extension changes, it recognizes the file. The file was always playable; it was just labeled wrong for the player asking. iTunes on the same machine works in the opposite direction: iTunes opens the file, reads the four bytes at offset 8, sees M4V , and treats the file as iTunes Store property. The extension does not matter to iTunes. It reads the brand. Apple is the only software in the world that does. Every other player on every other operating system reads the box hierarchy and ignores the four-byte label entirely. Rename to .mp4, the file plays. The brand is still M4V . Apple's apps would still notice. Nothing else does.

.M4V compared to alternatives

.M4V compared to alternative formats
Formats Criteria Winner
.M4V vs .MP4
Structural identity vs Apple-specific brand handling
M4V and MP4 are the same format underneath — same wrapping, same video compression (H.264), same audio compression (AAC). The structural difference is four bytes inside the file that act as a label. M4V uses one of Apple's labels (`M4V `, `M4VH`, or `M4VP` for iTunes Store, Apple TV, or iPhone). MP4 uses a generic label (`mp42` or `isom`). Apple's apps pay attention to those four bytes to apply Apple-specific rules and lock iTunes Store purchases. Other apps — VLC, HandBrake, most Android players — ignore the label and treat the file as MP4. Neither format wins. They are the same file with two different labels.
Draw
.M4V vs .MOV
Two Apple-rooted ISOBMFF variants
MOV (QuickTime, 1991) predates the ISO Base Media File Format spec by 13 years — Apple's QuickTime atom-tree was the prototype the ISO standard later formalized. M4V (2006) is the iTunes Store video brand of that ISO standard. MOV is the format Final Cut Pro writes for editing pipelines, with rich support for ProRes, multiple audio tracks, and edit-friendly codecs. M4V is the iTunes Store delivery container, restricted to H.264 video and AAC / Dolby Digital audio for Apple device playback. MOV wins on flexibility and editing-pipeline use; M4V wins on iTunes / Apple TV native dispatch but only because Apple's software notices the brand.
MOV wins
.M4V vs .MKV
Apple ecosystem vs open multimedia container
MKV (Matroska, 2002) is open-spec, IETF-standardized in RFC 9559 (2024), and codec-agnostic — any video codec, any audio codec, unlimited subtitle and font tracks, chapter markers. M4V is Apple-owned, ISO Base Media File Format-based, and codec-restricted to H.264 / AAC / Dolby Digital. MKV does not natively support any DRM scheme; M4V supports Apple FairPlay for iTunes Store-purchased content. MKV wins on openness, codec freedom, and multi-track flexibility. M4V wins inside Apple's playback chain because Apple's software honors the four-byte brand label and dispatches accordingly.
MKV wins

Technical reference

MIME Type
video/x-m4v
Magic Bytes
00 00 00 xx 66 74 79 70 ftyp box, same structure as MP4.
Developer
Apple Inc.
Year Introduced
2006
Open Standard
No — View specification
00000000000000XX66747970 ....ftyp

ftyp box, same structure as MP4.

Binary Structure

M4V files use the ISO Base Media File Format defined by ISO/IEC 14496-12 — the same byte layout as MP4, MOV, and HEIF. Every M4V file is a sequence of `boxes`. Each box begins with a 4-byte size field followed by a 4-byte type tag. The first box is always `ftyp` — the file's first labeled section — at offset 4 (bytes `66 74 79 70` ASCII `ftyp`). The ftyp box payload starts at offset 8 with the major_brand: a 4-byte ASCII string that identifies which kind of MP4 family member this file is. M4V uses one of three brand labels at offset 8: `M4V ` (4D 34 56 20, with trailing ASCII space) for iTunes Store video, `M4VH` (4D 34 56 48) for Apple TV-encoded video, or `M4VP` (4D 34 56 50) for iPhone-encoded video. The first is registered with the MP4 Registration Authority; the other two are not. After the major_brand, a 4-byte minor_version, then a list of compatible_brands — additional 4-byte labels the file claims to also conform to (typically `mp42`, `isom`, `avc1`). After the ftyp box, the standard top-level sequence continues with a `moov` box (the index inside an MP4 — the table that tells the player where every frame lives, with per-track sample tables) and an `mdat` box (the encoded video and audio themselves). Inside the moov box, a `trak` box per stream, and inside each trak a `mdia.minf.stbl.stsd` box that names the codec — `avc1` for H.264 video and `mp4a` for AAC audio in unprotected M4V files. FairPlay-protected M4V files rewrite those codec entries to `encv` (encrypted video) and `enca` (encrypted audio), and add a `sinf` (Protection Scheme Information) box with the FairPlay scheme parameters — the real DRM signaling, hidden inside the box hierarchy rather than visible in the brand label outside it.

OffsetLengthFieldExampleDescription
0x00 size Big-endian 4-byte length of the ftyp box, including this size field. Determines where the next box begins.
0x04 type ASCII tag identifying this as the file type box — the file's first labeled section, mandatory and always at offset 4 per ISO/IEC 14496-12.
0x08 major_brand The 4-byte brand label that distinguishes M4V from MP4. `M4V ` (with trailing space) is iTunes Store video, registered with MP4RA. `M4VH` is Apple TV's variant; `M4VP` is the iPhone variant. Neither is registered.
0x0C minor_version Informational version of the major_brand. Apple writes 1 in this field for iTunes Store video; FFmpeg and HandBrake write 512 (`00 00 02 00`) when producing M4V output.
0x10+ compatible_brands List of additional 4-byte brand labels the file also conforms to. Parsers walk this list and dispatch on whichever brand they recognize first — which is how non-Apple players treat M4V as MP4.
2003ISO/IEC 14496-14:2003 published — the formal MP4 file format spec, building on the ISO Base Media File Format. M4V's byte layout is fixed here.February 2004ISO/IEC 14496-12:2004 published — the ISO Base Media File Format spec. The box hierarchy (`ftyp`, `moov`, `mdat`) M4V uses is defined here.October 2005iTunes 6 released alongside the fifth-generation iPod (the video iPod). First iTunes Store video downloads. The pipeline producing M4V files begins here.September 2006iTunes 7 announced; iTunes Store movies launch; first Apple TV announced. M4V's first public appearance. The brand labels `M4V `, `M4VH`, `M4VP` enter production.March 2007Apple TV (1st generation) ships. The device's ingestion profile defines the `M4VH` brand convention — Apple uses it but never registered it.January 2009iTunes Music DRM removed — Apple's music catalog goes DRM-free. Video FairPlay continues unchanged and remains in use today via FairPlay Streaming for HLS content.April 2016Apple discontinues QuickTime for Windows after CVE-2016-1769 disclosures. Last Apple-published M4V player on Windows; Windows playback shifts to VLC, FFmpeg, and iTunes.January 2020ISO/IEC 14496-14:2020 published — latest revision of the MP4 file format spec governing M4V's byte structure. M4V brand labels remain unchanged from 2006.
Inspect M4V container, brand, and codec ffmpeg
ffprobe -v quiet -print_format json -show_streams -show_format input.m4v

Dumps the M4V's container metadata as JSON. The `format_tags.major_brand` field exposes which M4V variant the file is — `M4V `, `M4VH`, `M4VP`, or generic `mp42`.

Stream copy M4V to MP4 (rename trick) ffmpeg
ffmpeg -i input.m4v -c copy -y output.mp4

Copies encoded streams bit-for-bit into a fresh MP4 with `mp42` brand. Lossless, instant. The mechanical version of the rename trick. Fails on FairPlay-protected files because FFmpeg cannot decrypt them.

Re-encode M4V to MP4 with faststart ffmpeg
ffmpeg -i input.m4v -c:v libx264 -c:a aac -movflags +faststart -y output.mp4

Re-encodes video and audio for strict-profile MP4 targets. The `+faststart` flag moves the moov atom to the file head so HTTP playback starts before download completes.

M4V MP4 remux lossless M4V and MP4 are the same file format underneath — only a small label inside the file differs. FileDex copies the video and audio bit-for-bit into a fresh MP4 file. No re-compression. Finishes in seconds, fully lossless. The mechanical version of the rename trick.
M4V MKV remux lossless MKV holds H.264 and AAC streams natively, so FileDex copies the M4V's encoded streams bit-for-bit into an MKV container without re-compressing. Use this path when you want the open-spec container with chapter and subtitle flexibility, with no quality loss.
M4V MOV remux lossless MOV is the QuickTime container Apple's editing pipelines (Final Cut Pro, iMovie) prefer for import. FileDex copies the streams bit-for-bit into a MOV with the `qt ` brand label — instant, lossless. Use this path when the next step is Apple-side editing, not playback.
M4V WEBM transcode lossy WebM is the modern royalty-free target for browsers. FileDex re-compresses the H.264 video to VP9 and the AAC audio to Opus — roughly twice as efficient at the same visual quality. Use this path for shipping royalty-free video to web audiences.
M4V MP3 transcode lossy Extracts the audio track from the M4V and re-encodes it as MP3. Useful for pulling music videos, commentary, or speech out of an M4V when only the audio matters. Quality drops slightly because the AAC source is re-compressed; keep the M4V if archival audio fidelity matters.
M4V GIF transcode lossy Extracts a short clip from the M4V as an animated GIF — useful for short-form sharing where the destination platform refuses video. Quality drops sharply because GIF caps at 256 colors per frame and lacks real motion compression; keep clips under 10 seconds for sensible file sizes.
MEDIUM

Attack Vectors

  • Demuxer parsing bugs in older FFmpeg `libavformat/mov.c` (which handles MP4, MOV, and M4V): CVE-2020-21041 heap overflow, CVE-2017-9608 out-of-bounds read, CVE-2014-9603 heap overflow. Patched in current FFmpeg; legacy bundles remain exposed.
  • iTunes / QuickTime parsing bugs in Apple's stack: legacy QuickTime for Windows (discontinued April 2016) had unpatched ftyp / moov exploits — CVE-2016-1769, 1768, 1767. macOS QuickTime stays maintained.
  • FairPlay-encrypted-codec parse edge cases: when `encv`/`enca` codec entries are read with invalid or absent FairPlay keys, parsers historically crashed or leaked memory. Apple-internal vector, documented in iTunes patch notes (2010-2015).

Mitigation: FileDex processes M4V files entirely in-browser via FFmpeg WebAssembly. The WASM sandbox confines any demuxer or codec exploit to the browser's isolated memory — no host execution, no DLL loading, no iTunes stack contact. FairPlay-protected M4Vs fail to read because FFmpeg cannot decrypt them; FileDex never accepts unauthorized content.

Apple's professional encoder. Writes M4V with `M4V `, `M4VH`, or `M4VP` brand for iTunes Store ingest and Apple TV delivery.
Universal cross-platform M4V player. Reads every M4V brand by parsing the box hierarchy directly. Last release VLC 3.0.21 (June 2024).
FFmpeg library
Read, write, transcode M4V via libavformat's mov.c demuxer (shared with MP4 and MOV). Supports `-brand M4V` flag for M4V output.
HandBrake tool
GUI M4V converter. The `Apple` preset family writes M4V output with `M4V ` brand, no FairPlay. Canonical open-source M4V producer.
Purpose-built ISO Base Media File Format inspector and muxer. Modify M4V brand labels with `MP4Box -brand`; inspect the box hierarchy.
Subler tool
macOS-native M4V editor. Adds subtitles, chapter markers, and iTunes-style metadata atoms to M4V files. Standard tool for iTunes Store ingest.