Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Jan 2003 14:17:13 +0100
From:      Michael Nottebrock <michaelnottebrock@gmx.net>
To:        Andreas Klemm <andreas@klemm.apsfilter.org>
Cc:        freebsd-multimedia@freebsd.org
Subject:   Re: need mp3 to wav converter, is there already a FreeBSD port ?
Message-ID:  <3E328E59.6090101@gmx.net>
References:  <20030125113657.GA27262@titan.klemm.apsfilter.org>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andreas Klemm wrote:
| Best would be something for the commandline, for "batch mode".
|
| Is it better to normalize the mp3 file ?
| Or better to do it after mp3 to wav convertion ??
|
| What would be the best tool then ??

Multimedia/transcode does a good a job, although it's somewhat overkill,
and has an interface that makes sox look elegant.

A basic commandline to convert an mp3 to wav would be
'transcode -i infile.mp3 -x null,mp3 -o outfile.wav -y null,wav'

Transcode defaults to 48000 hz with audio operations. The input file is
probably sampled at 44100 hz, so a line that yields correct output would be:

'transcode -i infile.mp3 -x null,mp3 -o -o outfile.wav -y null,wav -E 44100'

If you want to normalize the files, you will need two passes. First,
scan the volume with the astat-plugin and write the ideal gain value
into a file:

'transcode -i infile.mp3 -x null,mp3 -J astat=astat.log'

Then, transcode for real with the value determined by astat passed to
the -s parameter (gain):

transcode -i infile.mp3 -x null,mp3 -o outfile.wav -y null,wav -E 44100
- -s `cat astat.log`

- --
Regards,
	Michael Nottebrock
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)
Comment: Using GnuPG with Netscape - http://enigmail.mozdev.org

iD8DBQE+Mo5YXhc68WspdLARArFkAKCYNTPoDpcip5MvDYCNsh1C7a6tMgCeMH9t
wyUC3IQ6gqJMIxeMg2VTmSQ=
=/sQG
-----END PGP SIGNATURE-----


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-multimedia" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E328E59.6090101>