How DVD Shrink Handles VOB Re-Quantization

This article explains the technical mechanics of VOB re-quantization in classic DVD authoring and backup software. It details how applications like DVD Shrink alter MPEG-2 video streams directly within the frequency domain to reduce file sizes to fit standard single-layer discs without performing a complete re-encode, while clarifying the distinction between extraction tools like DVD Decrypter and true transcoders.

Clarifying the Roles: Decryption vs. Re-quantization

To understand how VOB re-quantization operates, it is necessary to distinguish between the utilities involved:

The Inefficiency of Full Decoding and Re-Encoding

A traditional video encoder takes raw video frames (YUV), performs full motion estimation—the most computationally expensive phase of encoding—applies Discrete Cosine Transform (DCT), quantizes the result, and writes an MPEG-2 elementary stream. In the early 2000s, running a full decode-and-re-encode pipeline on a 2-hour movie took several hours to half a day on consumer hardware.

Re-quantization solves this problem by bypassing the raw frame decoding and motion estimation stages entirely, operating almost entirely within the compressed frequency domain.

The Mechanics of VOB Re-quantization

VOB re-quantization works through a process formally called MPEG-2 stream-domain transcoding. The software processes video through the following sequence:

1. Demuxing and Entropy Decoding

The software demultiplexes the VOB container into its elementary streams (video, audio, subpictures, and navigation data). The MPEG-2 video stream is parsed down to the macroblock level. Variable Length Decoding (VLD) unpacks the Huffman-coded stream to expose the quantized Discrete Cosine Transform (DCT) coefficients.

2. Motion Vector Preservation

Because moving from uncompressed frames to compressed blocks is where motion vectors are calculated, DVD Shrink bypasses this completely. The existing motion vectors, macroblock prediction modes (Intra, Forward, Backward, Bidirectional), and GOP (Group of Pictures) structures remain unaltered. This preserves the structural integrity of the stream and cuts processing times down to minutes instead of hours.

3. Quantizer Scaling

Every macroblock contains 8x8 blocks of spatial frequencies converted into DCT coefficients. The re-quantizer applies a larger quantization factor (\(Q\)-scale matrix) to these existing coefficients:

\[\text{New Coefficient} = \left\lfloor \frac{\text{Original Coefficient} \times Q_{\text{original}}}{Q_{\text{new}}} \right\rfloor\]

Because high-frequency spatial components—which represent minute visual details such as grain or fine textures—already have small coefficient values, dividing them by a larger quantization divisor rounds them down to zero.

4. Run-Length and Variable Length Encoding

Once the high-frequency values are zeroed out, standard zigzag scanning converts the matrix into long runs of consecutive zeros. Variable Length Coding (VLC) compresses these sequences into substantially fewer bits than the original stream, achieving direct size reduction while retaining macroblock motion data.

5. Adaptive Rate Control

DVD Shrink evaluates the scene complexity dynamically:

VOB Remuxing and Navigation Correction

Once the video elementary stream has been compressed, the engine remultiplexes the assets: