On Wed, 21 Feb 2001, A Brady wrote:
[snip]
>
> Very good. In my own case, though, I place everything I download to one
> directory, rename them from the names that 'Doze users like to make them,
> change them to wav while transferring to another directory, check them to
> make sure they're acceptable (friggin' napster/gnapster), then burn it
> all from that second directory.
>
> I don't keep them around (both mp3 & wav) because they take up too much
> space. And changing them over I have a chance to watch on the commandline
> to make sure they were ripped at 44100 instead of half that speed, which
> some lame-os (that's not lame-OS, but the plural of lame-o) like to use
> (makes 'em playback too fast). The previewing gets done by 2 of us, so
> I'd have to teach her linux and commandlines and syntax and running
> various players and........well, not a happy thought, that one. As it is,
> I can get her to type "play <name>" and "dir" without too much problem.
>
> But, if I have the opportunity to preview them in advance, your changes
> will improve the process immensely by making it capable of changing
> several at once.
>
>
Try adding -r 44100 -stereo to the mpg123 command. I haven't played
with it, but it is supposed to fix the output rate.
-r rate, --rate rate
Set sample rate (default: automatic). You may want
to change this if you need a constant bitrate inde
pended of the mpeg stream rate. mpg123 automagi
cally converts the rate. You should then combine
this with --stereo or --mono.
If you realy want to get fancy, you can add a test to see if the
conversion worked, and then delete the source file. Or if you want to
make things real easy, you could have the script play the mp3, ask you
if you want to convert, do the conversion, and delete the source file if
sox exited with error level 0.
Here is one that will put the file in your .wav directory, and delete
the mp3 file.
------ CUT HERE ------
#!/bin/bash
# mp32wav
#
WAVDIR=<your .wav directory>
if (echo $1 | grep .mp3 > /dev/null) ; then
mpg123 -b 10000 -s "$1" | \
sox -t raw -r 44100 -s -w -c2 - $WAVDIR/"$(basename $1 mp3)wav" \
&& rm -f $1
else
echo Bad mp3 file name.
fi
------ CUT HERE ------
--
Do not meddle in the affairs of dragons,
for you are crunchy and taste good with ketchup.
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list