#1 2008-06-22 20:05:50
wl-hdd+logitech4000pro+palantir2.7实现视频声音同时监控
wl-hdd 刷 oleg 1.9.2.7-9 最终版
1、进行-〉基本改机操作
2、service 设置中 Enable WaveServer: yes (本步应该也可以设置为No,然后通过 insmod soundcore 和 insmod audio,需要改启动脚本,有兴趣的自己试)
3、ipkg install palantir,链接库中默认的是 2.6版本,本版本声音支持有问题。2.7版正常,但没有oleg的ipk版,从网站http://www.fastpath.it/products/palantir/download.html 下载MIPS binary package (server only) 2.7版,从中提取palantir和sysfeed两个文件覆盖已经安装的文件。
vi /opt/etc/init.d/S89palantir
#!/bin/sh
#
# Startup script for webcam
#
# Make sure the driver is running
if ( !(lsmod | grep "^videodev" -q) ); then
insmod /opt/lib/modules/videodev.o &
fi
sleep 2
if ( !(lsmod | grep "^pwc" -q) ); then
insmod /opt/lib/modules/pwc.o &
fi
sleep 3
/opt/bin/palantir -C /opt/etc/palantir.conf &
-------------
chmod +x /opt/etc/init.d/S89palantir
-----------------
将 /opt/etc/palantir.conf中
audio off 改为 audio on
设置AudioCaptureDevice /dev/sound/dsp
4、成功启动
[administrator@Baby etc]$ /opt/etc/init.d/S89palantir
[administrator@Baby etc]$ Jun 22 12:00:55 [config] Ignoring deprecated `Audio' d
irective at line 74
Jun 22 12:00:55 [main] -- palantir 2.7 starting --
Jun 22 12:00:55 [main] Definitions for 1 devices found
Jun 22 12:00:55 [main] No serial port specified
Jun 22 12:00:55 [main] No named pipe specified
Jun 22 12:00:56 [video] Card: Logitech QuickCam Pro 4000 (/dev/v4l/video0)
Jun 22 12:00:56 [video] Capabilities: 1 (capture )
Jun 22 12:00:56 [video] Size: (160x120)-(352x288)
Jun 22 12:00:56 [video] Channel no. 0 ('Webcam') tuners: 0, flags: 0, typ
e: 2, norm: 4096
Jun 22 12:00:56 [video] Unmuted audio input 0
Jun 22 12:00:56 [video] Audio input 0 does not support volume control
Jun 22 12:00:56 [video] RGB palette unavailable.
Jun 22 12:00:56 [video] trying YUV420P...
Jun 22 12:00:56 [video] brightness: 32768 hue: 65535 colour: 32768
Jun 22 12:00:56 [video] contrast: 32768 whiteness: 32768
Jun 22 12:00:56 [video] depth: (24) palette: 15
Jun 22 12:00:56 [video] Actual capture box is 320x240 (requested 320x240)
Jun 22 12:00:56 [video] Camera has no pan/tilt control
Jun 22 12:00:56 [video] Frame rate set to 5 f/s
Jun 22 12:00:56 [video] Video buffer size: 921600, frames: 2
Jun 22 12:00:56 [video] Allocating yuv->rgb buffer (230400 bytes)
Jun 22 12:00:56 [main] Starting device thread
Jun 22 12:00:56 [audio] Setting up audio device /dev/sound/dsp
Jun 22 12:00:56 [audio] Audio sample rate set to 8000 Hz
Jun 22 12:00:56 [audio] Audio input buffering: 4 fragments of 256 bytes each
Jun 22 12:00:56 [main] Listening on :: port 3000
Jun 22 12:00:56 [main] Listening on :: port 3001
Jun 22 12:00:56 [main] Control queue timeout set to 30 s
5、客户端使用 pcclient ,成功 connect 后 要 take control ,然后才能开启 audio
audio有大概半秒的延迟
離線