Introduction
MOV is the movie file of Apple’s QuickTime, first released in 1991. It is a container for video, audio, timecode and text tracks, and is the usual file written by iPhones, Final Cut Pro and many professional cameras. It often carries H.264, HEVC or ProRes video.
The ISO base media file format, and so MP4, was based on QuickTime, which is why the two look so alike. Most software that reads MP4 also reads MOV.
Structure
A MOV file is a sequence of atoms, the QuickTime name for boxes. Each atom starts with a 32-bit big-endian size and a four-letter type, and many atoms contain further atoms. A size of 1 means a 64-bit size follows the type.
Newer files start with an ftyp atom whose brand is qt
(with two spaces). Older files have no ftyp and start straight with
moov, mdat, wide or free. The
moov atom describes the movie and its tracks, with sample tables giving the
position of every frame, and mdat holds the media itself.
The reference pages cover the atom header and top-level atoms, the movie, track and media atoms, the sample tables, the video and sound sample descriptions, timecode, subtitle and timed metadata tracks, metadata, and the data types and registered codes.
0ftyp brandqt(newer files only)varies…moov the movie header and onetrakper trackvaries…mdat the encoded video and audiovaries
Not described
The pages follow Apple’s QuickTime File Format documentation, read field by field, and the MP4 Registration Authority lists.
Known, not yet covered
- Reference: the version 1 (64-bit) forms of
mvhd,tkhd,mdhdandelst, which are ISO boxes mentioned but not documented by Apple. - Reference: Apple’s text media (the
textsample description and sample data, hypertext), music, MPEG-1, movie media, hint media (RTP hint sample descriptions and packetisation) and streaming media, and the deprecated media: sprite, tween, 3D, VR, wired actions, QTVR and the profile atomsprfl. - Reference: the compression codes of
dcomother than zlib, which is the only one known (from FFmpeg). - Viewer: the explorer reads QuickTime files with the same plugin as MP4 (every file with the major brand
qt, or with noftypbox). It reads the movie, track, media and sample-table atoms, the sound and video descriptions (versions 0 to 2), timecode,gmhd,tref,udtatext atoms,keysandilst, and decodes PCM in every formsowt,twos,raw,in24,in32,fl32,fl64andlpcm(but notlpcm's non-interleaved flag), AAC, ALAC, MP3 and mu-law and A-law. It does not read the text sample description (text, shown as bytes), expandcmovcompressed movies, read hint, sprite, tween, music, QuickDraw 3D or streaming tracks, decode GSM, IMA, QDesign or QCELP sound, or decode any picture (Cinepak, Animation, ProRes, Sorenson, JPEG, H.264 and the rest are named, not drawn).
Unknown
- Reference: the layouts of Apple’s camera
udtaitems (angl,clfn,clid,cmid,cmnm,manu,modl,reel,scen,shot,slno,date,ades,swre), the type code ofsiSlopeAndInterceptand the type codes of movie media and VR media; Apple’s pages give none of them. - Reference: the sizes of the input type and object ID atoms: Apple says 12 bytes each, which conflicts with the QT atom header.
Links
Software
- QuickTime Player – Apple’s player, built into macOS (macOS)
- Final Cut Pro – Apple’s professional video editor, which imports and exports MOV (macOS)
- VLC media player – free media player that plays MOV files (Windows, macOS, Linux, mobile)
- mpv – free, minimal media player (Windows, macOS, Linux)
- Adobe Premiere Pro – Adobe’s video editor, which imports and exports MOV (Windows, macOS)
- DaVinci Resolve – video editor and colour grading app that reads and renders MOV (Windows, macOS, Linux)
- HandBrake – free video converter that reads MOV (Windows, macOS, Linux)
- FFmpeg – command-line tools that read, write and convert MOV (Windows, macOS, Linux)
Developers
- libavformat – FFmpeg’s container library, which reads and writes MOV (C)
- AVFoundation – Apple’s media framework, which reads and writes QuickTime movies (Swift, Objective-C)
Reference
- QuickTime File Format – Apple’s specification of the atoms in a MOV file