From owner-freebsd-multimedia@FreeBSD.ORG Sat Dec 19 16:57:22 2009 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9BBB11065679 for ; Sat, 19 Dec 2009 16:57:22 +0000 (UTC) (envelope-from kerneljake@hotmail.com) Received: from col0-omc2-s8.col0.hotmail.com (col0-omc2-s8.col0.hotmail.com [65.55.34.82]) by mx1.freebsd.org (Postfix) with ESMTP id 7E26E8FC13 for ; Sat, 19 Dec 2009 16:57:22 +0000 (UTC) Received: from COL116-W9 ([65.55.34.73]) by col0-omc2-s8.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Sat, 19 Dec 2009 08:44:44 -0800 Message-ID: X-Originating-IP: [99.184.86.130] From: Kernel Jake To: Date: Sat, 19 Dec 2009 10:44:44 -0600 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 19 Dec 2009 16:44:44.0928 (UTC) FILETIME=[91AD4000:01CA80CA] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: sox in freebsd 8.0 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Dec 2009 16:57:22 -0000 I recently upgraded from 6.2 to 8.0-RELEASE. In 6.2 I recorded audio using= the following command: $ /usr/local/bin/sox -c2 -w -r32000 -tossdsp /dev/audio -t wav -r 44100 -w = -c 2 - The sox option -w has changed to -2 since then=2C but the new sox command d= oesn't work in 8.0. I get the following error: $ /usr/local/bin/sox -c2 -2 -r32000 -tossdsp /dev/audio -t wav -r 44100 -2 = -c 2 - /usr/local/bin/sox WARN wav: Length in output .wav header will be wrong sin= ce can't seek to fix it Input File : '/dev/audio' (ossdsp) Channels : 2 Sample Rate : 32000 Precision : 16-bit Sample Encoding: 16-bit Signed Integer PCM In:0.00% 00:00:00.00 [00:00:00.00] Out:0 [ | ] Clip:0 = =20 In:0.00% 00:00:00.00 [00:00:00.00] Out:0 [ | ] Clip:0 = =20 Done. /usr/local/bin/sox FAIL sox: `/dev/audio' lsx_readbuf: Invalid argument RIFF$??WAVEfmt D??data?? I tried to use a simpler sox command and received the same error: $ /usr/local/bin/sox -t ossdsp /dev/dsp -t .wav -r 44100 -c 2 - In /var/log/messages I see: canary kernel: pcm0: chn_read(): pcm0:record:dsp0.r1: record interrupt time= out=2C channel dead > uname -a FreeBSD canary 8.0-RELEASE FreeBSD 8.0-RELEASE #1: Sat Dec 19 01:19:14 CST = 2009 jake@canary:/usr/obj/usr/src/sys/CANARY i386 =20 _________________________________________________________________ Hotmail: Trusted email with powerful SPAM protection. http://clk.atdmt.com/GBL/go/177141665/direct/01/=