Transcoding

From Hydrogenaudio Knowledgebase
Revision as of 13:44, 7 May 2006 by Hankwang (talk | contribs) (→‎Lossy-to-lossy transcoding: guruboolez test clarification)

Transcoding means converting a file from one encoding method (i.e. file format) to another. Transcoding can be performed from lossless to lossless, from lossless to lossy, and from lossy to lossy.

Some transcoding tools you can find in the download page.

Lossy-to-lossy transcoding

Every time you encode with a lossy encoder, the quality will decrease. There's no way to gain quality back even if you transcode your 128kbps MP3 into a 320kbps MP3 (or any other high-quality compression).

Transcoding between lossy formats is therefore generally not recommended. The sound quality of the result will always be worse than the (lossy) source file. Reasons to use this approach anyway could be:

  • Lowering the bitrate for use in portable players, for which a listener may not care so much about sound quality.
  • Saving storage space. Raw CD-audio data is about 1411 kbps (605 MB per hour); lossless encoders achieve around 700 kbps (300 MB/h). Lossy encoders such as Vorbis, MPC, and AAC achieve transparency for most people at 150--170 kbps (69 MB/h). For MP3 (with the LAME encoder), transparency is usually achieved around 192 kbps (82 MB/h). For a large music collection, this could make a significant difference in disk space as compared to lossless archiving.

Lossy transcoding has been discussed in a few forum threads:

  • Transcoding to mp3 - Listening test by guruboolez, from 256 kbps lossy to 128 kbps mp3. According to this test, Ogg Vorbis and MPC performed best, followed by WV4 and AAC with a marginal difference. Transcoding from 256 kbps MP3 to 128 mp3 caused a very significant deterioration compared to 128 kbps mp3 directly from the original.
  • 192 kbps Ogg to 128 kbps Ogg Remark that this is a bad idea, although apparently without thorough ABX testing.
  • Transcoding from 192 kbps (preset standard) mp3. Informal findings (no ABX test) with classic rock music: Ogg 96 or 128 kbps are audibly different from the source mp3, but still acceptable. Mp3 and WMA at 128 kbps had an unacceptable deterioration. AAC 96 kbps was better than Mp3 and WMA, but still had objectionable artifacts.
  • Mp3 to Ogg Ogg -q6 was required to achieve transparency against the (high-quality) mp3 with difficult samples.

Lossless-to-lossless transcoding

Unlike the aforementioned lossy transcoding, quality will not decrease. Thus you may transcode from one lossless format to another as often as you like (e.g. to take advantage of better compression or better error-correction or better hardware support).

Lossless-to-lossy transcoding

Keeping lossless archives gives you the opportunity to re-encode music in the future to other lossy formats as encoder technology improves. For example, if currently lossy format X is transparent at 192 kbps, while in three years lossy format Y is transparent at 128 kbps, it is still not likely that transcoding from X@192 to Y@128 will give acceptable results, contrary to transcoding from lossless.

If you are transcoding to lossy encoding from a lossless source, it is strongly recommended to keep the lossless source files. Thus, if the lossy result is not satisfactory, you can reencode easily.

Note that some transcoding tools have the option to automatically delete source files. Make sure that this option is turned off.