how to get color images with PWC
Question
I have installed Motion on 3.2.1. on a Suse92 server. The webcam is logitich and works very well with PWC10.
The only thing is that by default it sends out gray scale images, and no color images. This is both for the web-server part as well as for the recording of images. How do I force it into color images?
The log shows:
Jul 2 20:15:19 server3 motion: Processing thread 0 - config file /usr/local/etc/motion.conf
Jul 2 20:15:24 server3 motion: Thread 0 started
Jul 2 20:15:24 server3 motion: motion-httpd/3.2.1 running, accepting connections
Jul 2 20:15:24 server3 kernel: pwc set_video_mode(640x480 @ 10, palette 15).
Jul 2 20:15:24 server3 kernel: pwc decode_size = 5.
Jul 2 20:15:24 server3 kernel: pwc Using alternate setting 6.
The motion.conf is as follows:
# daemon = on
# setup_mode = off
# videodevice = /dev/video0
# input = 8
# norm = 0
# frequency = 0
# rotate = 0
# width = 640
# height = 480
# framerate = 30
# netcam_url = (null)
# netcam_userpass = (null)
# auto_brightness = off
# brightness = 0
# contrast = 0
# saturation = 0
# hue = 0
# roundrobin_frames = 1
# roundrobin_skip = 1
# switchfilter = 0
# threshold = 750
# threshold_tune = on
# noise_level = 32
# noise_tune = on
# night_compensate = on
# despeckle = EedDl
# mask_file = (null)
# smart_mask_speed = 0
# lightswitch = 0
# minimum_motion_frames = 1
# pre_capture = 5
# post_capture = 10
# gap = 30
# minimum_gap = 0
# max_mpeg_time = 0
# low_cpu = 5
# output_all = off
# output_normal = best
# output_motion = off
# quality = 75
# ppm = off
# ffmpeg_cap_new = on
# ffmpeg_cap_motion = off
# ffmpeg_timelapse = 0
# ffmpeg_timelapse_mode = daily
# ffmpeg_bps = 500000
# ffmpeg_variable_bitrate = 0
# ffmpeg_video_codec = mpeg4
# snapshot_interval = 0
# locate = on
# text_right = %Y-%m-%d\n%T-%q
# text_left = (null)
# text_changes = off
# target_dir = /srv/www/htdocs/cam1
# snapshot_filename = %Y%m%d/%H%M%S-snapshot
# jpeg_filename = %Y%m%d/%H%M%S
# ffmpeg_filename = %Y%m%d/%H%M%S
# timelapse_filename = %Y%m%d/%H%M%S-timelapse
# webcam_port = 8081
# webcam_quality = 50
# webcam_motion = off
# webcam_maxrate = 30
# webcam_localhost = off
# webcam_limit = 0
# control_port = 8080
# control_localhost = off
# control_html_output = on
# control_authentication = (null)
# track_type = 0
# track_port = (null)
# track_motorx = -1
# track_maxx = 0
# track_iomojo_id = 0
# track_speed = 255
# track_stepsize = 40
# quiet = on
# on_event_start = (null)
# on_event_end = (null)
# on_picture_save = (null)
# on_motion_detected = (null)
# on_movie_start = (null)
# on_movie_end = (null)
# video_pipe = (null)
# motion_video_pipe = (null)
# thread = (null)
Environment
Motion version: |
3.2.1 |
ffmpeg version: |
0.4.9-pre1 |
Libraries: |
ffmpeg |
Server OS: |
Suse 92, kernel 2.6.8. |
--
MichielBoertje - 01 Jul 2005
Answer
I have no chance to help you with this little information.
Please read
SupportGuidelines.
I included above the log entry from messages and the motion.conf information. Does this provide sufficient information?
--
MichielBoertje - 02 Jul 2005
Exactly which Logitech camera?
And which version of PWC? Maybe you have one of these cripled pwc versions that comes with the latest kernels. Then you will need to manually replace it by 10.0.7a.
Your Motion conf is shown with # in front of each line. I assume it is something you did when entering it on TWIKI.
To include the real motion.conf either attach it. Or paste it between <VERBATIM> and </VERBATIM> tags. Then TWiki shows it as raw text with no interpretation.
--
KennethLavrsen - 02 Aug 2005
Probably not a Motion issue. And requester never came back. Changed state to Answered.
--
KennethLavrsen - 13 Aug 2005