Hybrid codec: Difference between revisions

From Hydrogenaudio Knowledgebase
(Created page with "A lossless/lossy ''''hybrid'''' codec provides encoding to a lossless and a lossy stream simultaneously within the same format: it stores a lossy audio stream that can...")
 
(DTS-HD wasn't precisely described. And with the explanation, the last bullet item looked like the penultimate.)
 
Line 1: Line 1:
A lossless/lossy ''''hybrid'''' codec provides encoding to a [[lossless]] and a [[lossy]] stream simultaneously within the same format: it stores a lossy audio stream that can be played back as such, and then a correction stream such that decoding is lossless when both are present. The correction stream can be in the same file as the lossy stream, or in a separate file.
A lossless/lossy ''''hybrid'''' codec provides encoding to a [[lossless]] and a [[lossy]] stream simultaneously within the same format: it stores a lossy audio stream that can be played back as such, and then a correction stream such that decoding is lossless when both are present. The correction stream can be in the same file as the lossy stream, or in a separate file.


Hybrid encoding can have a variety of purposes, at least including the following:
Hybrid encoding can have a variety of purposes and methods, at least including the following:
* For end-users to keep lossy versions (say, for portable use) to be copied without the time or computing effort needed to transcode lossy to lossless every time; rather than keeping two sets of files, one can maintain one single copy in one single library, such that e.g. tag updates need only be done once.  [[WavPack]] and [[OptimFROG]] provide for this option through their hybrid modes.
* For end-users to keep lossy versions (say, for portable use) to be copied without the time or computing effort needed to transcode lossy to lossless every time; rather than keeping two sets of files, one can maintain one single copy in one single library, such that e.g. tag updates need only be done once.  [[WavPack]] and [[OptimFROG]] provide for this option through their hybrid modes.
* A similar purpose, but where the output stream is automatically selected by a hardware or software application, for example defaulting to a lossy stream if the transmission cannot support the lossless - or possibly for DRM purposes.  In Blu-Ray, support for [[DTS]] (also often found in DVDs) is mandatory, and [[DTS-HD]] will serve the DTS stream to players which do not support the lossless stream - or those players will transmit the DTS stream to e.g. AV receivers without DTS-HD support. The rarer [http://wiki.hydrogenaud.io/index.php?title=Lossless_comparison#MPEG-4_SLS MPEG-4 SLS] format has an [[AAC]] core file and a correction file.
* A similar purpose, but where the output stream is automatically selected by a hardware or software application, for example defaulting to a lossy stream if the transmission cannot support the lossless - or possibly for DRM purposes.  In Blu-Ray, support for [[DTS]] (also often found in DVDs) is mandatory, and the newer [[DTS-HD]] formats provide not only a "core" DTS stream to legacy players, but also an "extension"/correction streams that the "HD"-aware players can use for more audio information. In the "DTS-HD-MA" version, the extension stream (together with the core DTS stream) will provide for losslessness. The rarer [http://wiki.hydrogenaud.io/index.php?title=Lossless_comparison#MPEG-4_SLS MPEG-4 SLS] format has an [[AAC]] core stream and a correction stream for losslessness.
* To retro-fit a lossless option into a lossy format without breaking compatibility. This can be done by storing it the same way as a tag chunk, to be ignored by applications that don't support them. [[ATRAC]]'s lossless mode and the short-lived [[Mp3HD]] were such retro-fits.
* Other ways to retro-fit losslessness into a lossy format without breaking compatibility, include to store the correction not as a stream, but in the same way as a tag chunk. [[ATRAC]]'s lossless mode and the short-lived [[Mp3HD]] were such retro-fits. An Mp3 player would then treat this chunk as if it were an unknown tag, ignoring it.


{{navbox audio codecs}}
{{navbox audio codecs}}

Latest revision as of 17:52, 18 May 2024

A lossless/lossy 'hybrid' codec provides encoding to a lossless and a lossy stream simultaneously within the same format: it stores a lossy audio stream that can be played back as such, and then a correction stream such that decoding is lossless when both are present. The correction stream can be in the same file as the lossy stream, or in a separate file.

Hybrid encoding can have a variety of purposes and methods, at least including the following:

  • For end-users to keep lossy versions (say, for portable use) to be copied without the time or computing effort needed to transcode lossy to lossless every time; rather than keeping two sets of files, one can maintain one single copy in one single library, such that e.g. tag updates need only be done once. WavPack and OptimFROG provide for this option through their hybrid modes.
  • A similar purpose, but where the output stream is automatically selected by a hardware or software application, for example defaulting to a lossy stream if the transmission cannot support the lossless - or possibly for DRM purposes. In Blu-Ray, support for DTS (also often found in DVDs) is mandatory, and the newer DTS-HD formats provide not only a "core" DTS stream to legacy players, but also an "extension"/correction streams that the "HD"-aware players can use for more audio information. In the "DTS-HD-MA" version, the extension stream (together with the core DTS stream) will provide for losslessness. The rarer MPEG-4 SLS format has an AAC core stream and a correction stream for losslessness.
  • Other ways to retro-fit losslessness into a lossy format without breaking compatibility, include to store the correction not as a stream, but in the same way as a tag chunk. ATRAC's lossless mode and the short-lived Mp3HD were such retro-fits. An Mp3 player would then treat this chunk as if it were an unknown tag, ignoring it.