You are not logged in.

#1 2005-03-25 17:23:42

matto
Member
From: Münster/germany
Registered: 2004-06-03
Posts: 88
Website

script or prog for lame

Hi!
i would like to transcode a bunch of musicfiles to mp3-format via lame with same settings
for each file. Is a script or a program available that does the job for me?
one important thing for me is, if the source file IS already mp3, the id3-tag is copied to the new file (the program shouldn´t kepp the mp3 because a smaller file will be created ;-)
i tried to make a script myself with the idea, that the script creates for example with "ls *.mp3 > .mp3files" a file with all mp3-files in it to do a batch encoding.
then it should read out (of .mp3files) the files to reencode from "filename.mp3" to "filename_.mp3", copy id3 tag and then delete source file.....
has anyone a similar program or a script or other ideas for me?
greetings matto


// DAMNiAM //

Offline

#2 2005-03-25 17:46:03

tmadhavan
Member
From: Wales :D
Registered: 2004-03-26
Posts: 441

Re: script or prog for lame

Maybe something like gRip?

Offline

#3 2005-03-25 18:11:06

cmp
Member
Registered: 2005-01-03
Posts: 350

Re: script or prog for lame

if you know perl, you can use the mp3-info package.

Offline

#4 2005-03-25 19:20:23

matto
Member
From: Münster/germany
Registered: 2004-06-03
Posts: 88
Website

Re: script or prog for lame

hi
thank you for quick response, but
grip only encodes mp3s from audio cds i thnk?!?!
unfortunately i do not know perl :-(
i only know basic ;-) nothing more
any other suggestions?
greetings matto


// DAMNiAM //

Offline

#5 2005-03-25 19:44:18

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: script or prog for lame

You can try a bash script. Example:  This one converts wav to mp3:

#!/bin/bash
for i in "$@" ; do
lame --r3mix "$i" "`basename "$i" .wav `.mp3"
done
./wav2mp3.sh *.wav

will convert all wav in the current directory to mp3.  You can change the lame line if you have other formats.

Offline

#6 2005-03-26 11:10:02

matto
Member
From: Münster/germany
Registered: 2004-06-03
Posts: 88
Website

Re: script or prog for lame

hi!
thank you! the script works fine! i only wonder if there is a way to read out id3 tags from mp3files? or do i need something more than a bash script to do that?
greetings matto


ps : is there a good basic compiler for linux or something else around?


// DAMNiAM //

Offline

#7 2005-03-27 22:55:11

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: script or prog for lame

pacman -S id3lib
Then: id3info file.mp3
For the compiler, What language you want to compile?  There is gcc for C, g++ for C++, g77 for fortran, etc.

Offline

#8 2005-03-28 20:40:40

dk
Member
Registered: 2004-04-20
Posts: 106

Re: script or prog for lame

Lame includes a script for batch encoding --> mlame  You can then
edit the script for your encoding preferences

If you used pacman to install lame you will not have the script. You can
get the script from lame's site.

Offline

Board footer

Powered by FluxBB