Motion - Bug Report 2007x 07x 11x 211429
You are here: Foswiki>Motion Web>BugReports>BugReport2007x07x11x211429 (18 May 2008, AngelCarpintero)Edit Attach

BUG: Can't get better pixel resolution

My camera claims to support 640x480, but it is downsized to 176x144

It's a QuickCam Pro5000. I'm using V4l v2, and the uvcvideo driver. works great, just too small.

[0] Processing thread 0 - config file /usr/local/etc/motion.conf
[0] Motion running in setup mode.
[0] Thread 1 is from /usr/local/etc/motion.conf
[0] Thread 1 is device: /dev/video0 input 8
[0] Waiting for threads to finish, pid: 19473
[1] Thread started
[1] cap.driver: "uvcvideo"
[1] cap.card: "USB Video Class device"
[1] cap.bus_info: "0000:00:07.2"
[1] cap.capabilities=0x04000001
[1] - VIDEO_CAPTURE
[1] - STREAMING
[1] v4l2_select_input: name = "Camera", type 0x00000002, status 00000000
[1] - CAMERA
[1] Device doesn't support VIDIOC_G_STD
[1] Supported palettes:
[1] 0: MJPG (MJPEG)
[1] 1: YUYV (Uncompressed)
[0] motion-httpd/3.2.8 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 8080
[1] Test palette YUYV (640x480)
[1] Adjusting resolution from 640x480 to 176x144.
[1] Using palette YUYV (176x144) bytesperlines 352 sizeimage 50688 colorspace 00000008


My config has:

width 640
and

height 480


Thanks!


Environment

Motion version: 3.2.8
ffmpeg version: 0.4.9_p20070330 (gentoo)
Shared libraries: ffmpeg
Server OS: gentoo

-- IraMoss - 11 Jul 2007

Follow up

This cannot be a Motion issue.

You must have a problem with your driver for the camera.

Are you sure your camera can run this resolution? Have you tried with another program than Motion?

Can it be lack of available bandwidth on a USB controller that also has other devices connected?

You should ask the uvcvideo experts about this.

-- KennethLavrsen - 11 Jul 2007

Follow up

Hmm, you could be right, it's only on a USB 1.1... maybe I need to get 2.0 PCI card. frown, sad smile

I'll get one tomorrow, and let you know smile

No, I have not tried with other programs than motion...

-- IraMoss - 11 Jul 2007

Fix record

That is not a motion either driver bug , is a known issue when you use a USB 1.1.

-- AngelCarpintero - 12 Jul 2007

Fix record

Oh... It's a beautiful thing!!!

Just put in a new USB 2.0 controller card (yes.. I should have done this earlier anyways. smile )

now...

[0] motion-httpd/3.2.8 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 8080
[1] Test palette YUYV (640x480)
[1] Using palette YUYV (640x480) bytesperlines 1280 sizeimage 614400 colorspace 00000008
[1] found control 0x00980900, "Brightness", range 0,255
[1]     "Brightness", default 127, current 127
[1] found control 0x00980901, "Contrast", range 0,255

etc....

Works perfect!!

Thanks!

-- IraMoss - 12 Jul 2007
Topic revision: r7 - 18 May 2008, AngelCarpintero
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.