Complemetary questions about decoding a dir and about formats
<[email protected]> Thu, 1 Jan 2004 16:30:57 +0100
| Newsgroups | gmane.comp.audio.mad.user |
|---|---|
| Message-ID | <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAuWFWP+UE2Uqp3LhF/[email protected]> |
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: [email protected] [mailto:[email protected]] On Behalf Of [email protected] Sent: Wednesday, December 31, 2003 3:27 PM To: [email protected] Subject: mad-user digest, Vol 1 #172 - 4 msgs Send mad-user mailing list submissions to [email protected] 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 [email protected] You can reach the person managing the list at [email protected] 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 ([email protected]) 2. Decode directories, how to? ([email protected]) 3. Re: Decode an old mp3, originally recorded in June-50 (Rob Leslie) 4. Re: Decode directories, how to? (Rob Leslie) --__--__-- Message: 1 From: <[email protected]> To: <[email protected]> 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: <[email protected]> To: <[email protected]> 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 <[email protected]> Subject: Re: [mad-user] Decode an old mp3, originally recorded in June-50 Date: Tue, 30 Dec 2003 18:09:11 -0800 To: [email protected] On Dec 30, 2003, at 1:00 PM, <[email protected]> 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 -- Rob Leslie [email protected] --__--__-- Message: 4 From: Rob Leslie <[email protected]> Subject: Re: [mad-user] Decode directories, how to? Date: Tue, 30 Dec 2003 18:17:10 -0800 To: [email protected] On Dec 30, 2003, at 1:00 PM, <[email protected]> wrote: > 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 You can either have madplay decode everything in one go: madplay -o out.wav *.mp3 (in this case there is only one output) or if you need individual output files you can use some shell scripting to decode files one-at-a-time: for file in *.mp3; do madplay -o $file.wav $file; done The above is for Bourne-derived shells; hopefully yours is not of Csh variety. -- Rob Leslie [email protected] End of mad-user Digest