BUG: 3.2.9 and Logitech QuickCam Pro 4000: captures 320x240 despite a setting of 640x480 although set to
I have a Logitech
QuickCam Pro 4000 which has a native resolution of 640x480. Despite setting it so in motion.conf, all JPG captures are still 320x240.
Help would be appreciated. Thanks, Jean-Luc
motion.conf (comment lines removed for brevity)
daemon off
process_id_file /var/run/motion.pid
setup_mode off
videodevice /dev/video0
input 8
norm 0
frequency 0
rotate 0
width 640
height 480
framerate 2
minimum_frame_time 0
auto_brightness off
brightness 0
contrast 0
saturation 0
hue 0
roundrobin_frames 1
roundrobin_skip 1
switchfilter off
threshold 800
threshold_tune off
noise_level 32
noise_tune on
night_compensate off
despeckle EedDl
smart_mask_speed 0
lightswitch 0
minimum_motion_frames 1
pre_capture 0
post_capture 0
gap 60
max_mpeg_time 0
low_cpu 0
output_all off
output_normal on
output_motion off
quality 100
ppm off
ffmpeg_cap_new off
ffmpeg_cap_motion off
ffmpeg_timelapse 0
ffmpeg_timelapse_mode daily
ffmpeg_bps 500000
ffmpeg_variable_bitrate 0
ffmpeg_video_codec swf
ffmpeg_deinterlace off
snapshot_interval 0
locate off
text_right %Y-%m-%d\n%T-%q
text_changes off
text_event %Y%m%d%H%M%S
text_double off
target_dir /tmp/motion
snapshot_filename %v-%Y%m%d%H%M%S-snapshot
jpeg_filename %v-%Y%m%d%H%M%S-%q
movie_filename %v-%Y%m%d%H%M%S
timelapse_filename %Y%m%d-timelapse
webcam_port 8081
webcam_quality 100
webcam_motion off
webcam_maxrate 1
webcam_localhost off
webcam_limit 0
control_port 8080
control_localhost off
control_html_output on
track_type 0
track_auto off
track_motorx -1
track_motory -1
track_maxx 0
track_maxy 0
track_iomojo_id 0
track_step_angle_x 10
track_step_angle_y 10
track_move_wait 10
track_speed 255
track_stepsize 40
quiet on
sql_log_image on
sql_log_snapshot on
sql_log_mpeg off
sql_log_timelapse off
sql_query insert into security(camera, filename, frame, file_type, time_stamp, event_time_stamp) values('%t', '%f', '%q', '%n', '%Y-%m-%d %T', '%C')
videodevice /dev/video0
input 8
norm 0
frequency 0
rotate 0
width 640
height 480
framerate 2
minimum_frame_time 0
Console output:
[0] Processing thread 0 - config file motion.conf
[0] Motion 3.2.9 Started
[0] ffmpeg LIBAVCODEC_BUILD 3352064 LIBAVFORMAT_BUILD 3344896
[0] Thread 1 is from motion.conf
[1] Thread 1 started
[0] motion-httpd/3.2.9 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 8080
[1] cap.driver: "pwc"
[1] cap.card: "Logitech QuickCam Pro 4000"
[1] cap.bus_info: "usb-0000:00:1d.1-2"
[1] cap.capabilities=0x05000001
[1] - VIDEO_CAPTURE
[1] - READWRITE
[1] - STREAMING
[1] Supported palettes:
[1] 0: PWC2 (Raw Philips Webcam)
[1] 1: YU12 (4:2:0, planar, Y-Cb-Cr)
[1] Test palette YU12 (320x240)
[1] Using palette YU12 (320x240) bytesperlines 480 sizeimage 115200 colorspace 00000000
[1] found control 0x00980900, "Brightness", range 0,128
[1] "Brightness", default 64, current 63
[1] found control 0x00980901, "Contrast", range 0,64
[1] "Contrast", default 0, current 32
[1] found control 0x00980902, "Saturation", range -100,100
[1] "Saturation", default 0, current 0
[1] found control 0x0098090e, "Red Gain", range 0,256
[1] "Red Gain", default 0, current 128
[1] found control 0x0098090f, "Blue Gain", range 0,256
[1] "Blue Gain", default 0, current 128
[1] found control 0x00980910, "Gamma", range 0,32
[1] "Gamma", default 0, current 24
[1] found control 0x00980911, "Shutter Speed (Exposure)", range 0,256
[1] "Shutter Speed (Exposure)", default 200, current 239
[1] found control 0x00980912, "Auto Gain Enabled", range 0,1
[1] "Auto Gain Enabled", default 1, current 1
[1] found control 0x00980913, "Gain Level", range 0,256
[1] "Gain Level", default 0, current -18
[1] found control 0x08000000, "Save User Settings", range 0,0
[1] "Save User Settings", default 0, current -18
[1] found control 0x08000001, "Restore User Settings", range 0,0
[1] "Restore User Settings", default 0, current -18
[1] mmap information:
[1] frames=2
[1] 0 length=462848
[1] 1 length=462848
[1] Using V4L2
[1] Started stream webcam server in port 8081
Environment
Motion version: |
3.2.9 |
ffmpeg version: |
|
Shared libraries: |
ffmpeg, mysql, postgresql |
Server OS: |
Ubuntu 8.04, kernel 2.6.24-19-generic |
--
JeanLuc - 13 Sep 2008
Follow up
Are you sure motion is reading the motion.conf where you set those options ?
run motion passing motion.conf as parameter :
motion -c /path/motion.conf
I have checked with some pwc cameras ( logitech 4000 pro and Logitech Orbit/Sphere ) and i cannot reproduce your issue
so i bet you are using a wrong config file.
--
AngelCarpintero - 15 Sep 2008
You can alsp check your configuration using a web browser with the control http interface. Enter url http://localhost:8080(if you do it fromsame machine). If using from an other chgeck that control_localhost is set to off.
--
DagErlandsson - 15 Sep 2008
Fix record