IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Help! Clipping after MP3 encoding, Using Exact Audio Copy
Weps
post Oct 20 2005, 01:17
Post #1





Group: Members
Posts: 10
Joined: 20-October 05
Member No.: 25226



I thought I was pretty safe while using Exact Audio Copy and LAME, but now I noticed a lot of my MP3's are clipping (MP3Gain says they are clipping after analazing the files, and I saw it with my own eyes by opening them in Sound Forge).

This is how I work:

I rip the CD with Exact Audio Copy (Secure mode). No normalization or whatever, I just rip the CD, because I want an EXACT copy. I opened the .wav files in Sound Forge and there is no clipping. The files are just perfect.

Then I encode the .wav files to MP3 by using LAME (with the Razorlame front end). I use these settings: -b 256 -m s -h.

Now, while the .wav files were perfect (no clipping), the MP3's are bad. Most of them clip, not much (in Sound Forge, most of the times it's 0,0) but they do. Why is that? I thought LAME only did the MP3 encoding. Why is it also messing with the volume?

I also tried to skip the Razorlame part and let Exact Audio Copy do the MP3 encoding (with the same settings for the LAME encoder), but the result was the same.

I'm pretty dissapointed now. Is there anything I might be doing wrong? I mean, I was convinced the Exact Audio Copy / LAME combination was the only right one if you prefer quality, but now I started doubting... sad.gif

This post has been edited by Weps: Oct 20 2005, 01:52
Go to the top of the page
 
+Quote Post
kjoonlee
post Oct 20 2005, 01:48
Post #2





Group: Members
Posts: 2519
Joined: 25-July 02
From: South Korea
Member No.: 2782



It's because you're using -b256 -m s -h. Use -V2 instead.

Just kidding.

Seriously though, MP3 encoding usually involves converting integer samples into floating point values, and clipping is inevitable if the source was close to clipping.

There's nothing wrong with LAME, and you can't avoid that kind of clipping at encode-time; if anything's wrong, it's your CDs that are too loud. Meanwhile, you can get rid of that sort of clipping by reducing the volume of the files with MP3Gain, so you have nothing to worry about.

---

Why don't you use --preset cbr 256 or something similar, instead of -b 256 -m s -h which might not be as good?

This post has been edited by kjoonlee: Oct 20 2005, 01:50


--------------------
http://blacksun.ivyro.net/vorbis/vorbisfaq.htm
Go to the top of the page
 
+Quote Post
Weps
post Oct 20 2005, 02:13
Post #3





Group: Members
Posts: 10
Joined: 20-October 05
Member No.: 25226



QUOTE (kjoonlee @ Oct 20 2005, 01:48 AM)
It's because you're using -b256 -m s -h. Use -V2 instead.

Just kidding.

Seriously though, MP3 encoding usually involves converting integer samples into floating point values, and clipping is inevitable if the source was close to clipping.

OK, thanks for your response. That's one illusion less for me. dry.gif

QUOTE (kjoonlee @ Oct 20 2005, 01:48 AM)
There's nothing wrong with LAME, and you can't avoid that kind of clipping at encode-time; if anything's wrong, it's your CDs that are too loud. Meanwhile, you can get rid of that sort of clipping by reducing the volume of the files with MP3Gain, so you have nothing to worry about.


Hm... yeah, but my 'illusion' was to have exact the same files as on the CD, only not that big. Yes, I understand MP3 is lossy, but with 'exact' I mean the same length, the same volume, etc.
---

QUOTE (kjoonlee @ Oct 20 2005, 01:48 AM)
Why don't you use --preset cbr 256 or something similar, instead of -b 256 -m s -h which might not be as good?
*


Those are extra flags, added by Razorlame when I chose for optimalisation: qualite (which gives -h), stereo (s) and the -m, well... I have no idea where that is coming from.

I'm not really experienced with this command line thing, but I will try your --preset cbr 256 directly in Exact Audio Copy.
Go to the top of the page
 
+Quote Post
Weps
post Oct 20 2005, 02:25
Post #4





Group: Members
Posts: 10
Joined: 20-October 05
Member No.: 25226



Hm... but I don't get it straight. In some MP3 files I hear tics because of the clipping, while those tics aren't there in the original .wav files (as there is no clipping in the .wav files). So this is all normal and I should use MP3Gain by default on each song? blink.gif
Go to the top of the page
 
+Quote Post
Weps
post Oct 20 2005, 02:41
Post #5





Group: Members
Posts: 10
Joined: 20-October 05
Member No.: 25226



OK, now I'm becoming crazy... The tics I hear in Sound Forge, I don't hear in iTunes and the tics I notice in iTunes, I don't hear in Sound Forge, although it's the same MP3 file. And when I decrease the volume bar in iTunes (less than 100%), some tics dissapear. I think I need some rest. Will take another look in it, tomorrow, with some fresh thoughts. smile.gif

This post has been edited by Weps: Oct 20 2005, 02:45
Go to the top of the page
 
+Quote Post
Danimal
post Oct 20 2005, 03:40
Post #6





Group: Members
Posts: 132
Joined: 16-June 03
From: Ohio
Member No.: 7209



QUOTE (Weps @ Oct 19 2005, 08:25 PM)
Hm... but I don't get it straight.  In some MP3 files I hear tics because of the clipping, while those tics aren't there in the original .wav files (as there is no clipping in the .wav files).  So this is all normal and I should use MP3Gain by default on each song?  blink.gif
*


Yes. There are two kinds of clipping. One is in the original source CD, which results from bad mastering, and there's nothing you can do about it. The other, as described above, results from the mp3 encoding process. You can use mp3gain to lower the volume to the point where there is no clipping. If you use album mode, it will modify all of the songs in the album so that their loudness relative to each other will be preserved.
Go to the top of the page
 
+Quote Post
kjoonlee
post Oct 20 2005, 04:38
Post #7





Group: Members
Posts: 2519
Joined: 25-July 02
From: South Korea
Member No.: 2782



One other thing to make you feel better: using mp3gain to lower the volume is just like using your volume knob to lower volume while listening to pristine rips from CDs.


--------------------
http://blacksun.ivyro.net/vorbis/vorbisfaq.htm
Go to the top of the page
 
+Quote Post
Drenholm
post Oct 20 2005, 09:54
Post #8





Group: Banned
Posts: 237
Joined: 13-October 05
Member No.: 25076



Also, the -ms switch does not guarantee higher quality! This has been said many times on HA from what I have seen. Joint stereo has the capability to be more efficient and allow higher quality for similar file sizes.
Go to the top of the page
 
+Quote Post
Weps
post Oct 20 2005, 19:16
Post #9





Group: Members
Posts: 10
Joined: 20-October 05
Member No.: 25226



OK, so I'm new in this whole preset thing. Now I was trying the -V 0 --vbr-new preset. But what I don't get: people recommend presets over here, but they don't recommend a minimal bitrate, when using VBR. In Exact Audio Copy, I still have to enter a minimal bitrate. Which should I use?
Go to the top of the page
 
+Quote Post
gasmann
post Oct 20 2005, 19:48
Post #10





Group: Members
Posts: 112
Joined: 18-August 05
Member No.: 23986



QUOTE (Weps @ Oct 20 2005, 08:16 PM)
But what I don't get: people recommend presets over here, but they don't recommend a minimal bitrate, when using VBR.  In Exact Audio Copy, I still have to enter a minimal bitrate.  Which should I use?
*


None. You should follow the instructions in this thread to setup EAC with LAME properly. There's also a lot of info about LAME in general there, and it's best switches.

This post has been edited by gasmann: Oct 20 2005, 19:48


--------------------
flac 1.2.1 -8 (archive) | aoTuVb5.7 -q 4 (pc, s1mp3)
Go to the top of the page
 
+Quote Post
Weps
post Oct 20 2005, 19:54
Post #11





Group: Members
Posts: 10
Joined: 20-October 05
Member No.: 25226



QUOTE (gasmann @ Oct 20 2005, 07:48 PM)
None. You should follow the instructions in this thread to setup EAC with LAME properly. There's also a lot of info about LAME in general there, and it's best switches.
*

Well, actually I did. sad.gif

In the Compression options, on the tab External compression, you can enter the command line. So I've putted -V 0 --vbr-new over there. Below that, you'll find a pulldown menu where you can chose a bitrate. I don't see an option to disable this, so I'll have to chose a bitrate. I noticed that when I chose 192 kbps, I have much bigger files than when I chose 96 kbps... So it seems to me this is the minimal bitrate being used, no? blink.gif

This post has been edited by Weps: Oct 20 2005, 19:57
Go to the top of the page
 
+Quote Post
dreamliner77
post Oct 20 2005, 19:58
Post #12





Group: Members
Posts: 2090
Joined: 29-June 02
From: Boston
Member No.: 2427



If you set up EAC to use "User Defined Encoder," it only uses the commands in the commandline box.


--------------------
"You can fight without ever winning, but never win without a fight." Neil Peart 'Resist'
Go to the top of the page
 
+Quote Post
Weps
post Oct 20 2005, 20:35
Post #13





Group: Members
Posts: 10
Joined: 20-October 05
Member No.: 25226



QUOTE (dreamliner77 @ Oct 20 2005, 07:58 PM)
If you set up EAC to use "User Defined Encoder," it only uses the commands in the commandline box.
*

Oh, I see... thanks!

There's one little problem left. When using -V 0 --vbr-new, EAC says LAME replied an unknown error while trying to encode the file. The problem is solved when I use -V 0 --vbr-new --add-id3v2 --pad-id3v2 --ta "%a" --tt "%t" --tl "%g" --ty "%y" --tn "%n" %s %d. In fact, I don't need the ID tags, so that's why I tried -V 0 --vbr-new first. Any suggestions?
Go to the top of the page
 
+Quote Post
Lyx
post Oct 20 2005, 20:44
Post #14





Group: Members
Posts: 3353
Joined: 6-July 03
From: Sachsen (DE)
Member No.: 7609



QUOTE (Weps @ Oct 20 2005, 03:13 AM)
Hm... yeah, but my 'illusion' was to have exact the same files as on the CD, only not that big.  Yes, I understand MP3 is lossy, but with 'exact' I mean the same length, the same volume, etc.
*

You mix up "how the waveform looks" and "how it sounds like". Lossy means that it tries to sound the same, not look the same. Obviously, in this case the "look" also causes it to sound different. At this point, a clarification may be in order: the waveform does NOT clip during the encoding process.... an mp3 can store higher volume without "clipping" than the source material..... so, the signal will just go *above* 0db..... but when it is DECODED(playback) then the 0db limit kicks in and it clips. Thus, the audiodata in the mp3 itself is not damaged and does not clip...... it only clips when its decoded at 100% gain. Blame the record labels for producing overly loud CDs which ride the limit so constantly that you can do almost no lossy manipulation without going above 0db.

As others mentioned already, the solution is to use mp3gain or replaygain.


--------------------
I am arrogant and I can afford it because I deliver.
Go to the top of the page
 
+Quote Post
dreamliner77
post Oct 20 2005, 20:53
Post #15





Group: Members
Posts: 2090
Joined: 29-June 02
From: Boston
Member No.: 2427



QUOTE (Weps @ Oct 20 2005, 03:35 PM)
QUOTE (dreamliner77 @ Oct 20 2005, 07:58 PM)
If you set up EAC to use "User Defined Encoder," it only uses the commands in the commandline box.
*

Oh, I see... thanks!

There's one little problem left. When using -V 0 --vbr-new, EAC says LAME replied an unknown error while trying to encode the file. The problem is solved when I use -V 0 --vbr-new --add-id3v2 --pad-id3v2 --ta "%a" --tt "%t" --tl "%g" --ty "%y" --tn "%n" %s %d. In fact, I don't need the ID tags, so that's why I tried -V 0 --vbr-new first. Any suggestions?
*




You need to add "%s %d" to your command line. (-V 0 --vbr-new %s %d)


--------------------
"You can fight without ever winning, but never win without a fight." Neil Peart 'Resist'
Go to the top of the page
 
+Quote Post
Weps
post Oct 20 2005, 20:59
Post #16





Group: Members
Posts: 10
Joined: 20-October 05
Member No.: 25226



QUOTE (dreamliner77 @ Oct 20 2005, 08:53 PM)
You need to add "%s %d" to your command line.  (-V 0 --vbr-new %s %d)
*

I see. Thanks for the information!

Also thanks to all the other people who gave me some useful information in this topic. At least now I know some things about MP3 encoding, I didn't know before. Thanks a lot!

And now I can start ripping my whole CD collection all over again. tongue.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 - 08:25