Maximum VOB Video Elementary Stream Buffer Size
This article details the maximum allowed buffer size for the video elementary stream contained within a DVD Video Object (VOB) file. It covers the specific Video Buffer Verifier (VBV) buffer constraints dictated by the DVD-Video standard, explains the underlying MPEG-2 specifications, and clarifies the relationship between elementary stream buffering and the system-level multiplex buffers.
The Maximum Video Elementary Stream Buffer (VBV)
In a standard DVD-Video VOB file, video is encoded using the MPEG-2 standard (specifically Main Profile at Main Level, or MP@ML). The maximum allowed buffer size for the video elementary stream is dictated by the MPEG-2 Video Buffer Verifier (VBV) specification adopted by the DVD Forum:
- Maximum VBV Buffer Size: 1,835,008 bits (exactly 224 KB or 229,376 bytes).
In MPEG-2 video stream headers, this value is signaled via the
vbv_buffer_size_value field (a 10-bit integer) and
optionally the vbv_buffer_size_extension. For DVD-compliant
MP@ML MPEG-2 video streams, this allocation cannot exceed 112 units of
16-Kbit blocks (112 × 16,384 bits = 1,835,008 bits).
If a VOB contains an MPEG-1 video elementary stream (allowed under constrained parameters for low-resolution content), the maximum VBV buffer size is 327,680 bits (40 KB).
Elementary Stream vs. System Target Decoder (P-STD) Buffer
A distinction must be made between the raw elementary stream buffer (VBV) and the container-level buffer in the DVD Program Stream System Target Decoder (P-STD):
- VBV Buffer (\(B_n\)): Holds the raw compressed video data awaiting decompression by the MPEG video decoder. This is strictly capped at 224 KB.
- P-STD Video Input Buffer (\(B_v\)): The total physical video buffer allocated in the multiplexer system target decoder, which includes room for multiplex overhead and PES (Packetized Elementary Stream) packet assembly. Under the DVD-Video specification, \(B_v\) is capped at 232 KB (237,568 bytes).
Why the Limit Is Enforced
Hardware DVD players contain fixed amounts of onboard memory allocated according to the 1996 DVD-Video specification. Encoders must model the decoder buffer accurately:
- Buffer Underflow: Occurs if frames are too large to be transmitted before their Presentation Time Stamp (PTS), causing visual stutter.
- Buffer Overflow: Occurs if incoming data fills the 224 KB / 232 KB memory allocations faster than frames are removed, resulting in dropped packets and playback failure.