Transrating is the process in digital video processing of converting a compressed video stream from one bitrate to another, typically a lower bitrate, without changing the video codec, format, or resolution. It is a specific subset of transcoding operations.
Technical Process
Unlike full transcoding, which involves fully decoding a video stream to an uncompressed (raw) format and then re-encoding it into a potentially different codec or container, transrating generally operates within the constraints of the existing codec syntax. The process typically involves:
- Partial Decoding: The input bitstream is parsed (entropy decoded) to extract syntax elements such as motion vectors, quantization parameters, and coding modes.
- Parameter Modification: Quantization parameters (QPs) are adjusted (increased) to reduce the data size, or specific syntax elements (e.g., high-frequency DCT coefficients) are dropped or requantized.
- Re-encoding/Repacking: The modified syntax elements are entropy coded and packaged into a valid output bitstream compliant with the same codec standard (e.g., H.264/AVC, HEVC, VP9, AV1).
Distinction from Related Terms
- Transcoding: A broad term for converting between formats, codecs, resolutions, or bitrates. Transrating is a type of transcoding where the codec and resolution remain constant.
- Transsizing (or Transresolution): Changing the spatial resolution (e.g., 1080p to 720p) of a video stream. This requires full decoding and re-encoding (or complex compressed-domain downscaling) because the pixel grid changes.
- Transrating: Strictly modifies the bitrate/quality level while preserving the codec, resolution, frame rate, and container structure.
Applications
- Adaptive Bitrate Streaming (ABR): Content Delivery Networks (CDNs) and origin servers use transrating to generate lower-bitrate renditions of a master stream on-the-fly for protocols like HLS (HTTP Live Streaming) and DASH (Dynamic Adaptive Streaming over HTTP). This reduces storage requirements compared to pre-encoding and storing every possible quality tier.
- Bandwidth Adaptation: Network equipment (e.g., Session Border Controllers, Media Gateways) may transrate video streams in real-time to match available bandwidth on a specific access link (e.g., converting a 5 Mbps stream to 2 Mbps for a congested mobile connection).
- Storage Optimization: Archival systems may transrate high-bitrate mezzanine files to lower bitrates for long-term cold storage or proxy editing workflows.
Computational Complexity
Transrating is computationally less expensive than full transcoding (transcoding + transsizing) because it avoids the most processor-intensive stages of video encoding: motion estimation (searching for motion vectors) and mode decision (selecting block partitioning and prediction modes). It primarily involves entropy decoding/encoding and quantization arithmetic. However, "open-loop" transrating (without a feedback loop to manage drift) can accumulate decoding errors (drift) if reference frames are not periodically refreshed or if the requantization noise propagates through inter-frame prediction.
Methods
- Open-Loop Transrating: The simplest method; requantizes coefficients without re-encoding the motion compensation loop. Fast but prone to drift error accumulation.
- Closed-Loop Transrating: Includes a decoder in the loop to reconstruct reference frames exactly as the end-user decoder would see them. This prevents drift but increases computational load closer to that of a full encoder.
- Compressed-Domain Transrating: Operates directly on the DCT/transform coefficients and syntax elements without full pixel-domain reconstruction, offering a balance between speed and quality.