From owner-freebsd-multimedia Sat Jan 25 5:17:35 2003 Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 025A037B401 for ; Sat, 25 Jan 2003 05:17:34 -0800 (PST) Received: from meitner.wh.uni-dortmund.de (meitner.wh.Uni-Dortmund.DE [129.217.129.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4FE0943EB2 for ; Sat, 25 Jan 2003 05:17:32 -0800 (PST) (envelope-from michaelnottebrock@gmx.net) Received: from lofi.dyndns.org ([10.3.12.105]) by meitner.wh.uni-dortmund.de (8.10.2/8.10.2/SuSE Linux 8.10.0-0.3) with ESMTP id h0PDHUc21753; Sat, 25 Jan 2003 14:17:30 +0100 X-Authentication-Warning: meitner.wh.uni-dortmund.de: Host [10.3.12.105] claimed to be lofi.dyndns.org Received: from gmx.net (kiste.my.domain [192.168.8.4]) (authenticated bits=0) by lofi.dyndns.org (8.12.6/8.12.6) with ESMTP id h0PDHDGs055527 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Sat, 25 Jan 2003 14:17:16 +0100 (CET) (envelope-from michaelnottebrock@gmx.net) Message-ID: <3E328E59.6090101@gmx.net> Date: Sat, 25 Jan 2003 14:17:13 +0100 From: Michael Nottebrock User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andreas Klemm Cc: freebsd-multimedia@freebsd.org Subject: Re: need mp3 to wav converter, is there already a FreeBSD port ? References: <20030125113657.GA27262@titan.klemm.apsfilter.org> X-Enigmail-Version: 0.71.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org -----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