You are not logged in.
Pages: 1
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
Maybe something like gRip?
Offline
if you know perl, you can use the mp3-info package.
Offline
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
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
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
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
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
Pages: 1