From owner-freebsd-questions@FreeBSD.ORG Sun Aug 27 06:01:27 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A32B516A4DA for ; Sun, 27 Aug 2006 06:01:27 +0000 (UTC) (envelope-from mail@ozzmosis.com) Received: from smtp.mel.people.net.au (smtp.mel.people.net.au [218.214.17.98]) by mx1.FreeBSD.org (Postfix) with SMTP id CF1F043D46 for ; Sun, 27 Aug 2006 06:01:26 +0000 (GMT) (envelope-from mail@ozzmosis.com) Received: (qmail 27721 invoked from network); 27 Aug 2006 06:01:25 -0000 Received: from unknown (HELO blizzard.dnsalias.org) (218.214.144.129) by smtp.mel.people.net.au with SMTP; 27 Aug 2006 06:01:25 -0000 Received: by blizzard.dnsalias.org (Postfix, from userid 1001) id 253F7146; Sun, 27 Aug 2006 16:01:23 +1000 (EST) Date: Sun, 27 Aug 2006 16:01:23 +1000 From: andrew clarke To: Gary Kline Message-ID: <20060827060122.GA63679@ozzmosis.com> References: <20060827053654.GA60292@thought.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060827053654.GA60292@thought.org> User-Agent: Mutt/1.5.12-2006-07-14 Cc: freebsd-questions@freebsd.org Subject: Re: taking many 198k mp3 files and converting them to 16k mp3 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Aug 2006 06:01:27 -0000 On Sat, Aug 26, 2006 at 10:36:54PM -0700, Gary Kline wrote: > Is there a way of using sox (or another translator) to turn HUGE > audio mp3 files into much much smaller files? Say taking man mp3 > files that are stored at 198k high fidelity and outputting these to > 16k or 32k mp3 (or *.ogg or other format) audio files? LAME (audio/lame in Ports) will do conversions: bash-2.05b$ lame -b 32 -h Python411_060823_Milestones.mp3 ID3v2 found. Be aware that the ID3 tag is currently lost when transcoding. LAME version 3.96.1 (http://lame.sourceforge.net/) CPU features: MMX (ASM used), 3DNow! (ASM used) Resampling: input 32 kHz output 22.05 kHz Using polyphase lowpass filter, transition band: 8269 Hz - 8535 Hz Encoding Python411_060823_Milestones.mp3 to Python411_060823_Milestones.mp3.mp3 Encoding as 22.05 kHz 32 kbps single-ch MPEG-2 Layer III (11x) qval=2 Frame | CPU time/estim | REAL time/estim | play/CPU | ETA 600/40388 ( 1%)| 0:07/ 8:35| 0:07/ 8:51| 2.0471x| 8:43 etc. If you want to do multiple files you'll need to write a script to call LAME multiple times.