sox in freebsd 8.0
Kernel Jake
kerneljake at hotmail.com
Sat Dec 19 16:57:22 UTC 2009
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, but the new sox command doesn'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 since 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
In:0.00% 00:00:00.00 [00:00:00.00] Out:0 [ | ] Clip:0
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 timeout, channel dead
> uname -a
FreeBSD canary 8.0-RELEASE FreeBSD 8.0-RELEASE #1: Sat Dec 19 01:19:14 CST 2009 jake at canary:/usr/obj/usr/src/sys/CANARY i386
_________________________________________________________________
Hotmail: Trusted email with powerful SPAM protection.
http://clk.atdmt.com/GBL/go/177141665/direct/01/
More information about the freebsd-multimedia
mailing list