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:
- 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 MPEG-4 SLS format has an AAC core file and a correction file.
- 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.
|Audio codecs: type/usage||for end-users to encode||on physical media etc.||legacy formats|
|Lossless||(Uncompr. linear PCM) • ALAC • FLAC • Monkey's Audio • MPEG-4 ALS • OptimFROG • TAK • TTA • WavPack||MLP/Dolby TrueHD||La • LPAC/LTAC • RealAudio Lossless • RK Audio • Shorten • WMA Lossless • (others)|
|Lossy||AAC • AC-3 • ADPCM • MP2 • MP3 • Musepack • Opus • Vorbis||AC-3 • DTS||ATRAC • QDesign • RK Audio (lossy mode) • Speex • VQF • WMA|
|Hybrid lossless&lossy||OptimFROG DualStream • WavPack||DTS-HD MA • MPEG-4 SLS||ATRAC Advanced Lossless • mp3HD|