Help - Search - Members - Calendar
Full Version: Encoding in Linux, in the terminal.
Hydrogenaudio Forums > Lossy Audio Compression > MP3 > MP3 - General
Differenciam
In Windows, I usually use either foobar2000 or easyLAME for MP3 encoding.

I always got the annoying miniscule gap that comes with MP3, yet never the two second one.

With Linux, encoding from the command line with LAME 3.90.3 gets me a two second gap. This wouldn't be a problem, but the program that I use to get ID3 tags and filenames for it uses FreeDB and the two second gap screws it up when the song is 4:10 instead of 4:08. mad.gif

I tried encoding one song at once, with the usual

CODE
lame --alt-preset insane cdtrack01.wav


and with what I use to encode an entire directory of WAVs

CODE
find ./ -name "*.wav" -exec lame --alt-preset insane {} {}.mp3 \;


Is there anyway to get rid of the pregap it puts on them, or a switch? I know I'm missing something simple here. I did a search, and got nada. sad.gif

Also... I'm using --alt-preset insane, since I've got well enough room for it, for what I'm doing now. smile.gif

Thanks for helping an ignorant fool. biggrin.gif B)
BadHorsie
hm ...

2 second long gaps is nearly impossible if your wav's are clean. as far as i know mp3's are just a few frames different than the source material.

commandline for ripping:
CODE
cdparanoia -B


commandline for encoding:
CODE
for i in *.wav;do lame --alt-preset insane "$i";done


if your files still way to long, your cdrom might be a "very good one" biggrin.gif

BadHorsie

Edit: have you tried to play the wav's? are the gaps still there?
Differenciam
That line worked. Thanks! biggrin.gif
BadHorsie
ähm ... which one? blink.gif

was it a ripping or a encoding problem?

BadHorsie
Differenciam
For encoding.

I had an APE+CUE file, I converted to WAV+CUE, seperated, then converted.

That line, it worked, well, halfway. Some of the MP3s will have a one second gap, some won't.

I want to see if any other distro has this problem. Despite how good slackware is, it's the only distro to have these annoying quirks. mad.gif
Differenciam
What also angers me, is that it always does it on the same tracks. Actuallty, it's the same exact WAV each time. sad.gif

I tried unRARing the APE+CUE, converting to WAV, and seperating again, then converting, and still the same thing. So there's no way I can pinpoint the problem. sad.gif

BTW, I used bchunk to seperate the WAV+CUE into seperate WAVs.
Differenciam
Last time I comment on my own thread. biggrin.gif

When I rip the problemetic track off the CD it's 4:12. When I encode the one, that I seperated from the CUE+WAV, with oggenc, it's 4:09, which is the size of the track I seperated from the WAV+CUE. When I encode that track with LAME, I get a 4:10 long track. When I encode the 4:12 track I ripped from the CD, with any encoder, it's 4:12.

Now I'm a bit confused. blink.gif blink.gif blink.gif
Differenciam
Fixed the problem.

Despite its popularity everyplace I've asked, bchunk is retarded when it cuts stuff. I just got EAC+WINE, and it cut it with gaps corrected, and when I converted them to MP3s, my proggy can recognize the album with freedb just fine. smile.gif
phong
Woah woah woah.... Hold on a sec. You've got EAC working under wine? [jedi]You are going to tell me the secret.[/jedi]
Chun-Yu
Now what are you running Linux on, your Inspiron?
BadHorsie
EAC works fine under SuSE 8.2 and RedHat 9. but the ripping process does not work! on SuSE there's no cdrom available and under RedHat i can rip from cdrom but the wav are just silence.

BadHorsie
M
QUOTE (BadHorsie @ Oct 7 2003, 06:26 AM)
EAC works fine under SuSE 8.2 and RedHat 9. but the ripping process does not work! on SuSE there's no cdrom available and under RedHat i can rip from cdrom but the wav are just silence.

since i can nearly abx eac vs. cdparanoia rips (11/17) and cdparanoia rips sounds a little bit better i can live without eac  tongue.gif

BadHorsie

A clear example of ABX mythology; if your drives are producing clean rips from non-damaged discs, your 11/17 ABX score means little more than an equal number of coin flips. Sorry.

As for using EAC under Wine, I did a little Googling and came up with the following tidbit, which might prove useful (I've not tried it myself so I can't verify, but it sounds worth investigating at least):
QUOTE
It also took me a while to realise that the reason all of my attempts to access the ASPI layer were failing was because only root had access to the generic SCSI devices - I guess there isn't much that can be done about that. Exact Audio Copy did seem to work succesfully once it was setup so that's another useful program that runs.


Hope this helps.

- M.
dev0
QUOTE (BadHorsie @ Oct 7 2003, 12:26 PM)
EAC works fine under SuSE 8.2 and RedHat 9. but the ripping process does not work! on SuSE there's no cdrom available and under RedHat i can rip from cdrom but the wav are just silence.

since i can nearly abx eac vs. cdparanoia rips (11/17) and cdparanoia rips sounds a little bit better i can live without eac  :P

BadHorsie

As explained millions of times before: There is no point in ABXing rips. A rip is perfect or it is not.
PoisonDan
QUOTE (BadHorsie @ Oct 7 2003, 11:26 AM)
since i can nearly abx eac vs. cdparanoia rips (11/17) and cdparanoia rips sounds a little bit better i can live without eac  tongue.gif

BadHorsie, go get your asbestos suit, because you're gonna need it. rolleyes.gif
BadHorsie
i have not a glue what you are talking about wink.gif

BadHorsie
BadHorsie
QUOTE (M @ Oct 7 2003, 03:43 AM)
QUOTE
It also took me a while to realise that the reason all of my attempts to access the ASPI layer were failing was because only root had access to the generic SCSI devices - I guess there isn't much that can be done about that. Exact Audio Copy did seem to work succesfully once it was setup so that's another useful program that runs.

thanks for the link.

EAC still does not show the correct devices under RedHat 9. started as root, permission of the scsi devices changed ... ah bah ... who needs EAC tongue.gif

BadHorsie
indybrett
QUOTE (BadHorsie @ Oct 7 2003, 05:45 PM)
i have not a glue what you are talking about  wink.gif

BadHorsie

Flames... Lots of big hot flames... >_<
Differenciam
Uh.. my secret? Typing wine EAC.exe biggrin.gif

It works in Slackware. I'm using my only computer, Inspiron 8200. I haven't tried ripping yet, I've just tried using the seperate WAV by CUE with gaps corrected, and that works.

Just for the hell of it, I'll try setting it up to rip now and try ripping some 4-5 second skip before bed. B)

I still like GRIP, mind you, since my CDs are pretty perfect, and it works without WINE. Although, ALL OF EAC's features work with WINE. It might as well be %100 Linux compatible, I've never seen WINE behave this well. Maybe I'll use EAC after all.. or GRIP. Damn high class problems. ohmy.gif wink.gif biggrin.gif

It works! smile.gif %100 track quality in the log and the WAV plays nicely in XMMS.

I'll answer more questions tomorrow. For now.. time to sleep. unsure.gif ph34r.gif

My only answer for now.. SuSE/RedHat/Mandrake are evil. I've had lots of experience with all of them.. Slackware, so long as you know people that can help you, is a good distro. Trying to be easy as windows and stable as Linux just doesn't work well. I like Slackware(despite crap like bchunk that makes it look bad tongue.gif).
phong
Hmm, I'll have to get it out and play with it again. I am a bit weird in that both my primary CD reader and my CDR drive are both SCSI, so maybe there's a little finesse involved in getting that working. I don't think the distro (Gentoo in my case) should be too much of an issue since they all use basically the same kernel/drivers and the same wine. I guess I'll futz with it (I needed an excuse to compile the lastest kernel anyway).
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.