IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
MP3 to FLAC and vice versa
d_headshot
post May 20 2009, 03:51
Post #1





Group: Members
Posts: 78
Joined: 28-September 08
Member No.: 58729



I heard that when converting between lossy and lossless formats, a temporary WAV file is created and that is encoded to the desired format. If that is true, it is okay to encode from lossy to lossless? Also, which programs allow you to encode back and fourth?
Go to the top of the page
 
+Quote Post
WonderSlug
post May 20 2009, 04:07
Post #2





Group: Members
Posts: 170
Joined: 6-February 08
From: San Diego, CA
Member No.: 51066



Transcoding from lossy to lossless, i.e. from MP3 to FLAC, means that the FLAC will be no better or worse than the MP3, regardless of the higher bitrate of the FLAC file created.

For example, a 256kbps MP3 music file transcoded to ~700kbps FLAC won't sound better just because it's now at ~700kbps FLAC. It will still sound the same as the 256kbps MP3.

Now, if you take this ~700kbps FLAC and transcode back down to a lossy format, say, 320kbps OGG, MP3, or AAC, it will likely be worse than the original 256kbps MP3 you started with.

Think of it as a Xerox copy of a Xerox copy in that case.

Because the first 256kbps MP3 is the Xerox copy, any ultimate resulting re-encoding to another lossy format is a Xerox of a Xerox.

What you would ideally want is the uncompressed WAV file or lossless FLAC/ALAC/TAK/whatever that the first 256kbps MP3 was created from.

Go to the top of the page
 
+Quote Post
DVDdoug
post May 20 2009, 22:25
Post #3





Group: Members
Posts: 894
Joined: 24-August 07
From: Silicon Valley
Member No.: 46454



QUOTE
If that is true, it is okay to encode from lossy to lossless?
Right! the losses occur during encoding/compression, not during decoding, and of course there is no additional loss with lossless encoding.

And, the file will have to be decoded/decompressed sooner or later anyway, so there is no harm in decoding to lossless (or uncompressed WAV), and then later playing the lossless file. But if possible, you should avoid re-compressing to a lossy format (or converting between lossy formats) because data is thrown-away every time you compress (with lossy compression).

QUOTE
Also, which programs allow you to encode back and fourth?
I find XRECODE to be very handy. But, there are many other conversion programs, and any audio editor can open in one format, and then save in another.

QUOTE
I heard that when converting between lossy and lossless formats, a temporary WAV file is created and that is encoded to the desired format.
Right! When you convert from a compressed format, the data has to be decompressed first. This temporary data is not always converted to a true WAV file, but it will be decoded to PCM, which is the underlying data-format used by uncompressed WAV files (and audio CDs).

Audio editors also decode the file before editing. So, if you edit and then re-save an MP3, that requires a 2nd lossy encode step. (There are some special purpose MP3 editors that can do some very limited editing without decoding first.)



Go to the top of the page
 
+Quote Post
greynol
post May 20 2009, 22:48
Post #4





Group: Super Moderator
Posts: 4793
Joined: 1-April 04
Member No.: 13167



QUOTE (DVDdoug @ May 20 2009, 14:25) *
Right! the losses occur during encoding/compression, not during decoding

Actually losses can and do occur during decoding. A recent discussion unearthed a problem with mpg123, for example, but it is also true with decoders that are not broken. Clipping during decoding is the most obvious example of this. Remember, the mp3 format stores frequency information in floating point.

This post has been edited by greynol: May 20 2009, 22:50
Go to the top of the page
 
+Quote Post
d_headshot
post May 21 2009, 00:44
Post #5





Group: Members
Posts: 78
Joined: 28-September 08
Member No.: 58729



Thanks for the replies smile.gif
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd November 2009 - 06:51