MP4 vs VOB Containers: Key Structural Differences
While both MP4 and VOB serve as digital multimedia container formats, they are engineered around fundamentally different structural paradigms. The MP4 container (MPEG-4 Part 14) utilizes a hierarchical, atom-based architecture designed for flexibility, web streaming, and broad codec compatibility. In contrast, the VOB (Video Object) container is an implementation of the MPEG-2 Program Stream format, structured with fixed-size packetized streams optimized specifically for DVD-Video optical discs and sequential physical media playback.
Fundamental Architecture: Atoms/Boxes vs. Packs/Packets
The foundational divergence between the two formats lies in how data is framed and nested:
- MP4 (ISO Base Media File Format): An MP4 file is
structured as an object-oriented tree composed of chunks called
atoms or boxes. Every box contains a
4-byte size header and a 4-byte FourCC identifier (such as
ftyp,moov, ormdat). This modular structure allows metadata to reside completely independently of the media payload. - VOB (MPEG-2 Program Stream): A VOB file is built upon a continuous sequence of packs and Packetized Elementary Streams (PES). It lacks an object-oriented tree layout. Instead, the container divides multiplexed video, audio, and subtitle streams into sequential 2048-byte packs, which map directly to physical DVD optical disc sectors.
Metadata Storage and Seeking Mechanics
The methods each format uses to locate and synchronize frames define how players interact with the files:
- Centralized Indexing in MP4: In an MP4 file,
structural metadata, timing, and indexing are centralized inside the
moov(movie) atom, specifically within track sample tables (stbl). These tables explicitly list exact byte offsets, sample durations, and keyframe (intra-frame) coordinates. Because the index is explicit, media players can execute instantaneous frame-accurate seeking without scanning through preceding data. - Interleaved Navigation in VOB: VOB files do not contain an index table. Instead, temporal alignment and navigational markers are provided by Navigation Packs (NV_PCK) interleaved directly into the stream every 0.5 seconds (typically preceding a Group of Pictures). Furthermore, high-level navigation—such as chapter points, title routing, and multi-angle branching—is not handled by the VOB file itself, but by accompanying IFO (Information) files on the DVD filesystem.
Streaming and Network Optimization
How the containers handle packet delivery reflects the eras in which they were designed:
- MP4 and Progressive Download: Because MP4 separates
the media payload (
mdat) from the index (moov), it can be optimized for internet delivery via "Fast Start." Tools can reposition themoovatom to the very beginning of the file, allowing web browsers and media players to parse the entire timeline and begin playback immediately while the rest of the file downloads. - VOB and Sequential Read Heads: VOB was engineered around the mechanical limitations of optical drive laser pickups. Its 2048-byte sector alignment ensures that video, multi-channel audio, and subpictures can be read continuously off the disc platter with minimal read-head repositioning. Because it lacks a forward-facing unified index, a raw VOB stream cannot be easily streamed over HTTP without extensive remuxing or chunking.
Codec Support and Payload Flexibility
The physical syntax of each container dictates what types of elementary streams can be enclosed:
- MP4 Flexibility: The MP4 standard is an open, extensible framework. It accommodates modern video codecs (H.264/AVC, H.265/HEVC, AV1, VP9), varied audio codecs (AAC, MP3, Opus, ALAC), timed text tracks, and secondary data channels. New codecs can be integrated simply by registering a new FourCC identifier within the standard.
- VOB Rigidity: The internal structural definitions of a VOB container are strictly limited to DVD-Video specifications. Video payloads are virtually restricted to MPEG-2 (or historically, MPEG-1). Audio streams are hardcoded to specific stream IDs corresponding to Dolby Digital (AC-3), DTS, Linear PCM, or MPEG-1 Audio Layer II. Subtitles are limited to run-length encoded 4-color bitmap overlays known as subpictures.