[spook-l] error setting palette parameters

xiaodong cai caixiaodong at hotmail.com
Fri Aug 27 09:18:07 EDT 2004


HI, 
I got the following information when I start spook , 

[root at cai2 /]# spook -c spook.conf
Aug 27 13:58:18 spook[3523]: listening on tcp port 7070
Aug 27 13:58:18 spook[3523]: v4l: using capture device "BT878 video ( *** 
UNKNOWN/GENER"
Aug 27 13:58:18 spook[3523]: v4l: error setting palette parameters

any ideas . 

Many thanks. 

Sheldon

My spook.conf is attached as following

#
# Example configuration file for Spook <http://www.litech.org/spook/>
#
# This file contains two sections.  The first section defines global
# configuration parameters, such as the TCP port to listen for incoming
# RTSP and HTTP requests.  The second section defines the inputs, filters,
# encoders, and outputs that handle the video stream.
#

#
# Number of frames on the frame heap, and optionally the frame size.  Spook
# allocates a fixed number of buffers for frames that it uses as it 
captures
# video frames and encodes them.  Here you can define the number of frames
# Spook will allocate, and optionally, how much memory should be allocated
# for each frame.  The recommended default is 20 frames.  If you omit the
# frame size, the default of 304128 will be used, which is large enough for
# frames of resolution 352x288.  You will need to specify a larger number
# if you use larger frames.
#

FrameHeap 20;
# FrameHeap 20 921600; # Appropriate for capturing 640x480 frames

#
# TCP port number to listen for RTSP and HTTP connections.  Currently
# Spook has no access control and is not able to bind to a specific IP
# address, so if you don't want to make your webcam public, you might want
# to choose an obscure port and/or use iptables to firewall it.
#

Port 7070;

######################## END OF GLOBAL CONFIGURATION 
########################

#
# The next section contains multiple blocks specifying video stream 
sources,
# filters and encoders to process those streams, and finally outputs to
# describe how those streams should be made available to the rest of the
# world.
#
# Currently, Spook is rather limited as far as processing modules, so the
# configuration shown here pretty much exercises the full functionality
# of the application.
#

#
# This block defines an input from a Firewire webcam under Linux.  
Currently
# the only option is "Output", which specifies the name of the video stream
# produced by this device.
#
# Multiple simultaneous Firewire camera inputs are not yet supported.
#
# The camera configuration is currently hard-coded to produce 30 frames
# per second at 320x240 resolution.  This should be fine as the native
# resolution on CCDs in consumer-level webcams really isn't any better
# than that.
#
# If you aren't running Spook on Linux with a Firewire camera, leave this
# section commented out.
#

#Input DC1394 {
#	Output "raw";
#}

#
# This block defines an input from a frame grabber card through 
Video4Linux.
# (The next example block is a webcam, so if you have a USB webcam you can
# skip this block.)
#
# The required parameters are "Output", "Device", "InputType" and 
"InputPort".
# The "Output" specifies the name of the video stream produced by this 
device.
# The "Device" specifies the device node to use (e.g. /dev/video0).  The
# "InputType" should be NTSC or PAL, depending on your equipment's video
# standard.  The "InputPort" should be set to the input port number
# corresponding to where you plugged in the video source.  If you don't 
know
# the index numbers of your ports, omit the parameter and the error message
# will give a list of input ports.
#
# If you aren't running Spook on Linux with a frame grabber device, leave
# this section commented out.
#
#

Input V4L
{	Output "raw";
	Device /dev/video0;
	InputType PAL;
	InputPort 0;
	FrameSize 160 120;     # Optional
}

#
# This block defines an input from a USB webcam via Video4Linux.
#
# The required parameters are "Output", "Device", "InputType" and
# "FrameRate".  The "Output" specifies the name of the video stream 
produced
# by this device.  The "Device" specifies the device node that should be 
used
# to control the device and read the frames (e.g. /dev/video0).  The
# "InputType" should be "Webcam".  The "FrameRate" specifies the frames per
# second that we should request from the webcam.  If Spook does not know 
how
# to configure the frame rate on your particular hardware, use the setting
# "FrameRate auto" and Spook will try to guess what the cam's frame rate 
is.
#
# If you aren't running Spook on Linux with a USB webcam, leave this 
section
# commented out.
#

#Input V4L {
#	Output "raw";
#	Device /dev/video0;
#	InputType webcam;
#	FrameRate 30;
#	#
#	# The frame size setting is optional, and will default to 352x288
#	# for webcams, but Spook will try to automatically resize down to the
#	# largest size that the webcam supports natively.
#	#
#	#FrameSize 160 120;
#
#	#
#	# Settings specific to Philips webcams
#	#
#	# Controls for the auto white balance; choose either an auto preset
#	# 	presets: auto, outdoor, indoor, fl (florescent lighting)
#	#
#	#PWC-WhiteBalance outdoor;
#	#PWC-WhiteBalance auto;
#	#
#	# or manual settings for red and blue, from 0-65535 inclusive
#	#
#	PWC-WhiteBalance 20000 20000;
#}

#
# This block defines an input from a QuickTime digitizer under Mac OS X.
# Note that OS X support is experimental at this time, and Spook may not be
# stable or function correctly in this environment.
#
# In order to enable this input, you'll need to explicitly specify the
# option "--enable-input-vdig" to the configure script before compiling.
#
# Currently the only option is "Output", which specifies the name of the
# video stream produced by this device.
#
# The camera configuration is currently hard-coded to produce 30 frames
# per second at 320x240 resolution.  If you plan to use a digitizer that 
does
# not support this mode with UYVY output, this driver will not work.
#
# If you aren't running Spook on Mac OS X, leave this section commented 
out.
#

#Input VDIG {
#	Output "raw";
#}

######################### END OF INPUT CONFIGURATION 
#########################

#
# This block defines an MPEG4 encoder that will compress the raw video 
input
# into an MPEG4 Video Elementary Stream.  The input name should match the
# output name from another block.  The only other option is Bitrate, which
# specifies how many kbits/sec are produced by the encoder.  If you're on
# a bandwidth-limited network such as a cable modem or DSL line, you want 
to
# set this low, since the bandwidth used by Spook will equal the bitrate
# times the number of concurrent viewers!
#

Encoder MPEG4 {
	Input "raw"; # matches the output name from the DC1394 input above
	Output "mpeg4";
	Bitrate 200; # 200 kbits/second
}

#
# This block creates an RTP output that can be accessed with RTSP.  Viewers
# can use MPlayer (with the live.com library) or QuickTime to view this
# stream with the URI rtsp://<hostname>:<port>/<path>.  For example, if
# Spook were running with this configuration on a machine with IP
# address 192.168.123.45, the RTP stream below could be accessed with the
# URI rtsp://192.168.123.45:7070/webcam
#

Output RTP-MPEG4 {
	Input "mpeg4"; # matches the output name from the MPEG4 encoder above
	Path /webcam; # not yet used, actually, so there's a one-stream limit
}

#
# The next three blocks create a stream of JPEG images for consumption by
# viewers with nothing but a web browser.  The Framedrop filter copies only
# every 150th frame from the input to the output, giving approximately one
# frame every five seconds for a 30fps input.  This allows us to compress
# a JPEG only every once in a while which is much easier on the CPU.
#

Filter Framedrop {
	Input "raw"; # matches the output name from the DC1394 input above
	Output "dropped";
	Scale 150;
}

#
# Now we pass the framedropped output into the JPEG encoder.
#

Encoder JPEG {
	Input "dropped"; # matches the output name from the frame dropper
	Output "jpeg";
}

#
# This block creates an simple output that can be accessed with HTTP.
# Viewers can use their web browser to retrieve the most recently received
# frame, which in this configuration will be a JPEG updated every five
# seconds.  The URL will be http://<hostname>:<port>/<path>.  For example,
# if Spook were running on a machine with IP address 192.168.123.45, the
# JPEG image could be accessed with the URI rtsp://192.168.123.45/webcam
#

Output HTTP {
	Input "jpeg"; # matches the output from the JPEG encoder above
	Path /webcam; # not yet used, actually, so there's a one-stream limit
}

#
# This block specifies the log file where client requests will be logged in
# Apache-style common log format.  If this block is omitted, no logging 
will
# be done.  The example below logs to "spook.log" in the current directory.
#

Log File {
	File "spook.log";
}

_________________________________________________________________
ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger:  http://messenger.msn.com/cn  




More information about the spook-l mailing list