Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Feb 1999 05:01:09 +0300
From:      Igor Nikolaev <igor@pu.ru>
To:        freebsd-multimedia@FreeBSD.ORG
Subject:   Re: how to cd to mp3
Message-ID:  <19990217050109.A26571@pu.ru>
In-Reply-To: <m10Bnpy-0008G5C@rip.psg.com>; from Randy Bush on Sat, Feb 13, 1999 at 02:46:58PM -0800
References:  <m10Bnpy-0008G5C@rip.psg.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Feb 13, 1999 at 02:46:58PM -0800, Randy Bush wrote:
> given input from cd, how do i make an mp3 file?

For working example:

#!/bin/sh
# get pcm files witch atapicd, tosha
for pcm in *$1.pcm
do
wav=`echo $pcm | sed "s/pcm/wav/"`
mp3=`echo $pcm | sed "s/pcm/mp3/"`
echo Converting $pcm to $wav
sox -t raw -r 44100 -s -w -c 2 $pcm $wav
echo Converting $wav to $mp3
./8hz-mp3 $wav $mp3
done

For reading cdrom I use http://hi.pu.ru/atapicd.c
this program is nightware, but working with very
high speed on my cd drive.

> randy
-- 
Igor Nikolaev


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?19990217050109.A26571>