Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Downcoding mp3 CBR is worse then encoding directly (Read 5404 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Downcoding mp3 CBR is worse then encoding directly

When I have a high rate CBR mp3 file encoded with Lame (for example 320 kbps) and I transcode it with Lame to a lower rate CBR mp3 file (for example 128 kbps) only some data is stripped off or actually all the information is reencoded?

In other words: do I get the same results when doing these two actions?
1. convert wav -> Mp3 CBR 320 kbps -> Mp3 CBR 128 kbps
2. convert wav -> Mp3 CBR 128 kbps

Or does step 1. result in a music file with more distortion?

For those who wonder the reason of this question: I want to avoid ripping again audio CDs, I have no wav files on hard disc. I have mp3 CBR 320 kbps music and want to put some music on a portable player without reripping.

Thx in advance.

Downcoding mp3 CBR is worse then encoding directly

Reply #1
Quote
In other words: do I get the same results when doing these two actions?
1. convert wav -> Mp3 CBR 320 kbps -> Mp3 CBR 128 kbps
2. convert wav -> Mp3 CBR 128 kbps
no.
1. is called transcoding. search the forums.
Quote
For those who wonder the reason of this question: I want to avoid ripping again audio CDs, I have no wav files on hard disc. I have mp3 CBR 320 kbps music and want to put some music on a portable player without reripping.
if you use your portable in a noise surrounding, there's a good chance you won't hear the difference btw 1. and 2.  ...depends on your hearing. use this only for this reason though, not for archiving.
Nothing but a Heartache - Since I found my Baby ;)

Downcoding mp3 CBR is worse then encoding directly

Reply #2
it also depends how the 320kbps files were encoded. for instance whether they use Joint Stereo or not (Joint Stereo is of course better than Stereo) --preset insane would be the best 320kbps setting. However, no matter what setting you used, there will always be a difference...so ripping it again from CD or a lossless source will give you best results.
--alt-presets are there for a reason! These other switches DO NOT work better than it, trust me on this.
LAME + Joint Stereo doesn't destroy 'Stereo'

Downcoding mp3 CBR is worse then encoding directly

Reply #3
Transcoding downwards always means completely reencoding, which in turn means lower quality than if you encoded straight to the target-bitrate.

The only exceptions are:
- the source/target format is the same and supports "bitrate-peeling" (however, i don't know of any - vorbis "theoretically" supports it, but i dont think it was ever implemented)
- the source format is lossless

- Lyx

P.S.: Transcoding upwards of course is always stupid because it degrades quality while increasing filesize.
I am arrogant and I can afford it because I deliver.

Downcoding mp3 CBR is worse then encoding directly

Reply #4
Let me put it in a different way:

Wav: lossless

320k mp3: has noise + artifacts, but they are too low to perceive.

mp3 trascoded from mp3 = noise and artifacts added on top of noise and artifacts. Artifacts may become audiable.

Downcoding mp3 CBR is worse then encoding directly

Reply #5
Quote
320k mp3: has noise + artifacts, but they are too low to perceive.
...for most people on most samples.
Nothing but a Heartache - Since I found my Baby ;)

Downcoding mp3 CBR is worse then encoding directly

Reply #6
I can see why you asked this question because it's not clear at first that it is necessarily the case that going from 320kbps -> 128kbps is necessarily lower quality than CDDA -> 128kbps.

The reason one would think it MAY not make a difference is if in the MP3s if the encoder would somehow know where in the WAV the "lost" parts went and would know that it's already compressed it that much in those places and ot just additionally compress further till you achieve the desired lower bitrate.....  I hope that was clear...anyhow, the compression doesn't work like that.  I'm sure if you were thinking something as abstract as what I just posted then you can certainly think of other scenarios (without reading a technical writeup on MP3 unless you wish) of where the above situation wouldn't be possible....

However, I've got a question and I think/hope I already know the answer...


Everyone talked about "transcoding"....which, judging by LAME's command line settings it seems to be capable of that.    Is transcoding better than not transcoding?

I mean, would this:

CDDA -> 192 MP3 ->(lame --mp3input) 128 MP3

provide better results than

CDDA -> 192 MP3 -> WAV -> 128 MP3

?  With that switch, does LAME truly transcode (go directly from MP3 to MP3) or are you just telling LAME that it needs to convert the input MP3 to WAV before it encodes it to a 128kbps MP3?
Facts do not cease to exist just because they are ignored.
Aldous Huxley

Downcoding mp3 CBR is worse then encoding directly

Reply #7
there's no difference between the two regarding downgrading quality. it's still transcoding AFAIK.

Downcoding mp3 CBR is worse then encoding directly

Reply #8
Quote
I mean, would this:

CDDA -> 192 MP3 ->(lame --mp3input) 128 MP3

provide better results than

CDDA -> 192 MP3 -> WAV -> 128 MP3
[a href="index.php?act=findpost&pid=256329"][{POST_SNAPBACK}][/a]

no! It's the same.
--alt-presets are there for a reason! These other switches DO NOT work better than it, trust me on this.
LAME + Joint Stereo doesn't destroy 'Stereo'

Downcoding mp3 CBR is worse then encoding directly

Reply #9
Yes it is...  (Lame must decode the mp3 input to .wav, even if you don't "see" it)
"You can fight without ever winning, but never win without a fight."  Neil Peart  'Resist'

Downcoding mp3 CBR is worse then encoding directly

Reply #10
Quote
In other words: do I get the same results when doing these two actions?
1. convert wav -> Mp3 CBR 320 kbps -> Mp3 CBR 128 kbps
2. convert wav -> Mp3 CBR 128 kbps
[a href="index.php?act=findpost&pid=256159"][{POST_SNAPBACK}][/a]


Step 1 is bad. Don't do it.

Do step 2.

If you need more clarification, search the forums on transcoding.
flac > schiit modi > schiit magni > hd650

Downcoding mp3 CBR is worse then encoding directly

Reply #11
Thanks digga, jojo and dreamliner.

My confusion stemmed from reading "transcoding" to mean going *DIRECTLY* from one format to another instead of the broader defintion here which is "going from one format to another".  All is clear now, thanks.
Facts do not cease to exist just because they are ignored.
Aldous Huxley

Downcoding mp3 CBR is worse then encoding directly

Reply #12
Quote
I mean, would this:

CDDA -> 192 MP3 ->(lame --mp3input) 128 MP3

provide better results than

CDDA -> 192 MP3 -> WAV -> 128 MP3

?  With that switch, does LAME truly transcode (go directly from MP3 to MP3) or are you just telling LAME that it needs to convert the input MP3 to WAV before it encodes it to a 128kbps MP3?
[a href="index.php?act=findpost&pid=256329"][{POST_SNAPBACK}][/a]


There are 2 things that will decrade quality if you do it with the intermediate WAV state.
1) PCM samples have to be quantized to 16 bit (*) (which introduces quantization noise)
2) Due to the non-perfect reconstruction property of the PQMF filterbank the quality will be degraded while converting the subband samples to PCM samples and back again

AFAIK LAME circumvents 'problem 1' by computing with 32 bit float samples but I guess 'problem 2' is still present (although it does not have to).

However these artefacts (which get introduced by the two problems) are negligible compared to the quantization process within the encoder.

(* = it depends on your decoder.. Foobar can also produce 24 bit WAV files and LAME accepts those files. This way the quantization effect is negligible)


SebastianG

Downcoding mp3 CBR is worse then encoding directly

Reply #13
Quote
(* = it depends on your decoder.. Foobar can also produce 24 bit WAV files and LAME accepts those files. This way the quantization effect is negligible)
[a href="index.php?act=findpost&pid=256527"][{POST_SNAPBACK}][/a]

(sort of OT, but: by default foobar w/ clienc pipes 24 bit pcm data directly into lame.exe rather than creating a temporary wav file anyway)
A riddle is a short sword attached to the next 2000 years.

 

Downcoding mp3 CBR is worse then encoding directly

Reply #14
Quote
Quote
(* = it depends on your decoder.. Foobar can also produce 24 bit WAV files and LAME accepts those files. This way the quantization effect is negligible)
[a href="index.php?act=findpost&pid=256527"][{POST_SNAPBACK}][/a]

(sort of OT, but: by default foobar w/ clienc pipes 24 bit pcm data directly into lame.exe rather than creating a temporary wav file anyway)
[a href="index.php?act=findpost&pid=256528"][{POST_SNAPBACK}][/a]


yes, thanks, I havn't thought of that... I referenced Foobar as a decoder. As such it enables you to create 24 bit wave files with its diskwriter.


SebastianG