Hi list and thanks Rob for your answer,
A few complementary questions, again maybe a bit OT:
I do not really need wav format (by the way, is wav in some way a ms invention?). What I'm trying to do is to decode a lot of mp3s to a format usable for listening with a non-mp3-capable cd player, i.e in my car, and then burn them to CDs with k3b. At the first stage (before burning) I would like to save the mp3s as individual output files in another directory than the mp3s.
1. Is .cdr a format for my purposes? 2. Shell scripts are a bit beyond my capacity for the moment (but I'm learning fast). What do you mean with "The above is for Bourne-derived shells; hopefully yours is not of Csh variety."?
What about this? If i navigate to the directory where the mp3s are and then:
for file .mp3; do madplay -o -v $file.cdr $file; done
Where in this little script should I put the target directory name (called "cdr)? What does "done" mean? Close?
TIA /jrx, Stockholm
-----Original Message----- From: mad-user-admin@lists.mars.org [mailto:mad-user-admin@lists.mars.org] On Behalf Of mad-user-request@lists.mars.org Sent: Wednesday, December 31, 2003 3:27 PM To: mad-user@lists.mars.org Subject: mad-user digest, Vol 1 #172 - 4 msgs
Send mad-user mailing list submissions to mad-user@lists.mars.org
To subscribe or unsubscribe via the World Wide Web, visit http://www.mars.org/bin/mailman/listinfo/mad-user or, via email, send a message with subject or body 'help' to mad-user-request@lists.mars.org
You can reach the person managing the list at mad-user-admin@lists.mars.org
When replying, please edit your Subject line so it is more specific than "Re: Contents of mad-user digest..."
Today's Topics:
1. Decode an old mp3, originally recorded in June-50 (jrx@telia.com) 2. Decode directories, how to? (jrx@telia.com) 3. Re: Decode an old mp3, originally recorded in June-50 (Rob Leslie) 4. Re: Decode directories, how to? (Rob Leslie)
--__--__--
Message: 1 From: jrx@telia.com To: mad-user@lists.mars.org Date: Tue, 30 Dec 2003 22:00:19 +0100 Subject: [mad-user] Decode an old mp3, originally recorded in June-50
Hi, maybe OT. I have tried to decode an old mp3 with various settings to wav with mad, and the decoding seems to work fine.
But when I try to burn the wav with k3b, k3b says "wrong format". madplay -v -i -m --output=wave gives "Layer III, 64 kbps, 22050 Hz, single channel, no CRC, 7095 frames decoded, -7.4 dB peak amplitude, 0 clipped samples"
Does anybody have any suggestions about what options I should choose when decoding. I would like to have it in wav.
Or maybe I should look in my k3b settings for this particular file..?
Best regards /jrx
--__--__--
Message: 2 From: jrx@telia.com To: mad-user@lists.mars.org Date: Tue, 30 Dec 2003 22:00:19 +0100 Subject: [mad-user] Decode directories, how to?
Hi list,
I would like to decode a whole directory in a bunch. Probably I have to use some kind of ordinary *nix command (I'm from the other side), but I can't figure it out, and I can't find any description of this presumably easy matter in man madplay
Thanks in advance.
jrx
--__--__--
Message: 3 From: Rob Leslie rob@mars.org Subject: Re: [mad-user] Decode an old mp3, originally recorded in June-50 Date: Tue, 30 Dec 2003 18:09:11 -0800 To: mad-user@lists.mars.org
On Dec 30, 2003, at 1:00 PM, jrx@telia.com wrote:
I have tried to decode an old mp3 with various settings to wav with mad, and the decoding seems to work fine.
But when I try to burn the wav with k3b, k3b says "wrong format". madplay -v -i -m --output=wave gives "Layer III, 64 kbps, 22050 Hz, single channel, no CRC, 7095 frames decoded, -7.4 dB peak amplitude, 0 clipped samples"
Does anybody have any suggestions about what options I should choose when decoding. I would like to have it in wav.
If you're trying to burn an audio CD, try:
madplay -o cdda:track.cdr
The result is a raw CD audio track ready to be burned.
If you really must have a WAV file, you'll have to specify all the parameters yourself:
madplay -o foo.wav --stereo --bit-depth=16 --sample-rate=44100
On Jan 1, 2004, at 7:30 AM, jrx@telia.com wrote:
I do not really need wav format (by the way, is wav in some way a ms invention?).
Yes, as I understand it the WAV file format (RIFF/WAVE) is a Microsoft bastardization of the IFF standard originally developed by Electronic Arts (EA IFF 1985).
What I'm trying to do is to decode a lot of mp3s to a format usable for listening with a non-mp3-capable cd player, i.e in my car, and then burn them to CDs with k3b. At the first stage (before burning) I would like to save the mp3s as individual output files in another directory than the mp3s.
- Is .cdr a format for my purposes?
Sure; most CD burning programs ought to be able to use the raw audio data written by madplay to such a file.
- Shell scripts are a bit beyond my capacity for the moment (but I'm
learning fast). What do you mean with "The above is for Bourne-derived shells; hopefully yours is not of Csh variety."?
This is definitely off-topic, but FYI --
There are two great classes of UNIX shells: the Bourne shell and its derivatives (e.g. ksh, bash, zsh), and the C shell and its derivatives (e.g. tcsh). The former class is generally more powerful; the latter suffers inherent weaknesses but is unfortunately a common shell for interactive use.
To find out which you have, you can 'echo $SHELL'. If you get back something that ends with csh, you'll either have to change your scripting style or change your shell. (Sorry, I can't help you with csh scripting.)
What about this? If i navigate to the directory where the mp3s are and then:
for file .mp3; do madplay -o -v $file.cdr $file; done
Where in this little script should I put the target directory name (called "cdr)? What does "done" mean? Close?
Try something like this:
for file in *.mp3; do madplay -v -o cdr/$file.cdr $file; done
"done" marks the end of the "for ... do" loop.