From owner-freebsd-questions Wed Jun 20 9:42:47 2001 Delivered-To: freebsd-questions@freebsd.org Received: from iguana.internexo.co.cr (iguana.internexo.co.cr [196.40.17.2]) by hub.freebsd.org (Postfix) with ESMTP id 0F48F37B403 for ; Wed, 20 Jun 2001 09:42:43 -0700 (PDT) (envelope-from freebsd@iguana.internexo.co.cr) Received: (from freebsd@localhost) by iguana.internexo.co.cr (8.9.3/8.9.3) id KAA28940 for freebsd-questions@FreeBSD.ORG; Wed, 20 Jun 2001 10:40:42 -0600 (CST) From: Theodore Hope Message-Id: <200106201640.KAA28940@iguana.internexo.co.cr> Subject: converting sound card line-in to MP3 format w/LAME To: freebsd-questions@FreeBSD.ORG Date: Wed, 20 Jun 2001 10:40:42 -0600 (CST) X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm trying to convert the sound signal from a soundcard's "line in" to an mp3 format file using Lame. This is freebsd-4.3-Release and Lame 3.88b (from source, not ports), pcm driver compiled into the kernel and "/dev/sndstat" reporting the correct info about the soundcard. I've connected an external CD player to the "line in" of the sound card, and after pressing "play" tried the following: lame -r -h /dev/dsp /tmp/file.mp3 and also lame -x -r -h /dev/dsp /tmp/file.mp3 (-x for byte-swapping) In both cases, "file" says that the resulting mp3 file is "MP3 128 Kbit 44.1 KHz Jstereo". In both cases, when I take the resulting mp3 file and play it on Winamp (on a windoze box) I get all kinds of ear-damaging static. I have the mixer settings to vol 80, pcm 80, line 80, and "=rec line" to ensure that I'm reading from the "line in" jack of the card. I'm pretty sure that the sound card driver _is_ reading something because when I do "od -c /dev/dsp" while the CD player is playing, it shows continuously changing data. When I "pause" or "stop" the player, "od" shows continuous nulls (or octal 200, can't remember; point is that it is reading stuff). Any help will be very much appreciated. Thanks, -T.H. p.s. Several kind folks responded to my broader question the other day regarding icecast/liveice/lame, and I believe the problem is more basic and has to do with not being able to convert the line-in sound to mp3 in the first place. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message