Discussion:
[mad-user] Decode directories, how to?
j***@telia.com
2003-12-30 21:00:19 UTC
Permalink
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
Rob Leslie
2003-12-31 02:17:10 UTC
Permalink
Post by j***@telia.com
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
***@mars.org
Gene
2004-01-01 02:34:07 UTC
Permalink
I use the mad plugin for winamp and well...I became curious....is there
an ACM codec based on mad?

Thx.

and happy new year!

G.
ChristianHJW
2004-01-01 20:23:13 UTC
Permalink
Post by Gene
I use the mad plugin for winamp and well...I became curious....is there
an ACM codec based on mad?
MAD is no encoder, only a decoder, so instead of making an ACM codec (
which would have problems with VBR MP3, caused by the limitations of the
ACM API ), somebody made a DirectShow decoder filter based on MAD IIRC
... but i heard its still buggy

Christian
matroska project admin
http://www.matroska.org
Gene
2004-01-02 18:56:19 UTC
Permalink
well...that's what I meant....like ffdshow...

of course, it can be incorporated into matroska (.mkv), hence I've been
using .mkv more often.
Post by ChristianHJW
Post by Gene
I use the mad plugin for winamp and well...I became curious....is
there an ACM codec based on mad?
MAD is no encoder, only a decoder, so instead of making an ACM codec (
which would have problems with VBR MP3, caused by the limitations of the
ACM API ), somebody made a DirectShow decoder filter based on MAD IIRC
... but i heard its still buggy
Christian
matroska project admin
http://www.matroska.org
Continue reading on narkive:
Loading...