Re: [Linux-uvc-devel] Framerate of Quickcam Pro 9000

2010-05-08 Thread Paulo Assis
2010/5/7 Laurent Pinchart laurent.pinch...@ideasonboard.com:
Laurent,
 Hi Paulo,

 On Tuesday 04 May 2010 10:36:19 Paulo Assis wrote:
  What happens to the camera settings when the computer is rebooted? Are
  they stored in some non-volatile memory in the camera? That would be
  awesome.

 If I'm not mistaken USB keeps the power on, even during a reboot, so
 the camera should maintain the control settings.

 I'm not sure that's guaranteed by the USB standard. I believe the camera
 should be reset when the computer is restarted. Whether it will loose its
 settings might depend on the camera firmware.


In that case it may depend on the motherboard configuration.
I've tested this on my pc and the camera kept it's settings.
I've had plenty of problems with this in the past, if the camera
crashes for some reason,
a reboot won't solve it and it may also prevent a normal boot.
Just last week I notice that my pc took much longer than usual to boot
and it was also
much slower, after a little investigation I found that usb audio was the cause,
the camera had crash and couldn't be initiated.


 In any case, there's no non-volatile memory to store the controls in any of
 the consumer webcams I know of.


Yes this is true.

Regards,
Paulo
___
Linux-uvc-devel mailing list
Linux-uvc-devel@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel


Re: [Linux-uvc-devel] Philips SPC530NC (0471:2034) fails

2010-05-08 Thread HKairpost

Laurent Pinchart wrote:

Hi Paulo,

On Wednesday 05 May 2010 10:59:26 Paulo Assis wrote:
  

Hi,
Are you sure the camera supports MJPG ?



That's indeed the problem.
  


Thanks, you were both right, now that I set the input as YUYV it works.

The issue i have now is that it is only able to stream in 320x240 when 
it's suppose to be able to stream in 640x480.
I tried with both MJPG-Streamer and Motion. I paste the motion's log at 
the end of this email. As you may see motion segfault and try to restart 
endlessly.


In dmesg i have the following:
--8
Linux video capture interface: v2.00
uvcvideo: Found UVC 1.00 device USB Video Camera (0471:2034)
input: USB Video Camera as 
/devices/pci:00/:00:00.1/usb1/1-1/1-1:1.0/input/input0

usbcore: registered new interface driver uvcvideo
USB Video Class driver (v0.1.0)
uvcvideo: device USB Video Camera requested null bandwidth, defaulting 
to lowest.
uvcvideo: device USB Video Camera requested null bandwidth, defaulting 
to lowest.
uvcvideo: device USB Video Camera requested null bandwidth, defaulting 
to lowest.
uvcvideo: device USB Video Camera requested null bandwidth, defaulting 
to lowest.
uvcvideo: device USB Video Camera requested null bandwidth, defaulting 
to lowest.
uvcvideo: device USB Video Camera requested null bandwidth, defaulting 
to lowest.
uvcvideo: device USB Video Camera requested null bandwidth, defaulting 
to lowest.
uvcvideo: device USB Video Camera requested null bandwidth, defaulting 
to lowest.

--8

As far as mjpg-streamer is concern I get the following, no error but it 
streams nothing:

--8
r...@openwrt:~# mjpg_streamer -i input_uvc.so -d /dev/video0 -y -r 
640x480 -o output_http.so -p 8080 -w /www/webcam

MJPG Streamer Version.: 2.0
i: Using V4L2 device.: /dev/video0
i: Desired Resolution: 640 x 480
i: Frames Per Second.: 5
i: Format: YUV
i: JPEG Quality..: 80
o: www-folder-path...: /www/webcam/
o: HTTP TCP port.: 8080
o: username:password.: disabled
o: commands..: enabled
--8

In 320x480 both softwares stream correctly. And plugged to my ubuntu 
laptop the webcam output correctly in 640x480 with luvcview. I believe i 
have an issue with the uvc driver, but i don't know where to look. Any 
pointer would help.


Regards,
hka




Motion log
--8
[0] Processing thread 0 - config file /etc/motion.conf
[0] Unknown config option ffmpeg_cap_new
[0] Unknown config option ffmpeg_cap_motion
[0] Unknown config option ffmpeg_timelapse
[0] Unknown config option ffmpeg_timelapse_mode
[0] Unknown config option ffmpeg_bps
[0] Unknown config option ffmpeg_variable_bitrate
[0] Unknown config option ffmpeg_video_codec
[0] Unknown config option ffmpeg_deinterlace
[0] Unknown config option movie_filename
[0] Unknown config option timelapse_filename
[0] Unknown config option sql_log_image
[0] Unknown config option sql_log_snapshot
[0] Unknown config option sql_log_mpeg
[0] Unknown config option sql_log_timelapse
[0] Unknown config option sql_query
[0] Motion 3.2.11.1 Started
[0] Thread 1 is from /etc/motion.conf
[1] Thread 1 started
[0] motion-httpd/3.2.11.1 running, accepting connections
[1] cap.driver: uvcvideo
[1] cap.card: USB Video Camera
[1] cap.bus_info: usb-:00:00.1-1
[1] cap.capabilities=0x0401
[1] - VIDEO_CAPTURE
[1] - STREAMING
[1] Supported palettes:
[1] 0: YUYV (YUV 4:2:2 (YUYV))
[1] Selected palette YUYV
[0] motion-httpd: waiting for data on port TCP 8080
[1] index_format 6 Test palette YUYV (640x480)
[1] Using palette YUYV (640x480) bytesperlines 1280 sizeimage 614400 
colorspace 

[1] found control 0x00980900, Brightness, range 0,37
[1] Brightness, default 24, current 24
[1] found control 0x00980901, Contrast, range 0,200
[1] Contrast, default 124, current 124
[1] found control 0x00980902, Saturation, range 0,200
[1] Saturation, default 121, current 121
[1] found control 0x00980910, Gamma, range 1,31
[1] Gamma, default 18, current 18
[1] mmap information:
[1] frames=4
[1] 0 length=614400
[1] 1 length=614400
[1] 2 length=614400
[1] 3 length=614400
[1] Using V4L2
[1] Resizing pre_capture buffer to 1 items
[1] Started stream webcam server in port 8081
[0] Thread 1 - Watchdog timeout, trying to do a graceful restart
[0] httpd - Finishing
[0] httpd Closing
[0] httpd thread exit
[1] Thread exiting
[1] Calling vid_close() from motion_cleanup
[1] Closing video device /dev/video0
[0] Motion thread 1 restart
[1] Thread 1 started
[1] cap.driver: uvcvideo
[1] cap.card: USB Video Camera
[1] cap.bus_info: usb-:00:00.1-1
[1] cap.capabilities=0x0401
[1] - VIDEO_CAPTURE
[1] - STREAMING
[1] Supported palettes:
[1] 0: YUYV (YUV 4:2:2 (YUYV))
[1] Selected palette YUYV
[1] index_format 6 Test palette YUYV (640x480)
[1] Using palette YUYV (640x480) bytesperlines 1280 sizeimage 614400 
colorspace 

[1] found control