Motion - Feature Request 2008x 10x 15x 130110

Feature Request:

Description

Hi. I tried to start motion with my usb webcam (Logitech, Inc. QuickCam express Plus), and this was the output:

[0] Motion 3.2.11 Started
[0] ffmpeg LIBAVCODEC_BUILD 3357696 LIBAVFORMAT_BUILD 3412224
[0] Thread 1 is from /usr/local/etc/motion.conf
[1] Thread 1 started
[1] cap.driver: "spca561"
[1] cap.card: "Camera"
[1] cap.bus_info: "0000:00:13.2"
[1] cap.capabilities=0x05000001
[1] - VIDEO_CAPTURE
[1] - READWRITE
[1] - STREAMING
[1] Supported palettes:
[1] 0: S561 (S561)
[1] 1: GBRG (GBRG)
[1] Unable to find a compatible palette format.
[0] motion-httpd/3.2.11 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 8080
[1] Using VIDEO_PALETTE_YUV420P palette
[1] Using V4L1
[1] Resizing pre_capture buffer to 1 items
[1] Started stream webcam server in port 8081
[1] sync error in proc 6536: Invalid argument
[1] mcapture error in proc 6536: Invalid argument
[1] Video device fatal error - Closing video device
[1] Closing video device /dev/video0

I'm doing this on Mandriva 2009 (kernel version 2.6.27).

On Ubuntu it was working (using V4L1, in Ubuntu Hardy Heron (kernel version 2.6.24)). I asked for help on the IRC channel, and got a patch from sack (it can be found here: http://pastebin.com/m443bdc62). It got it working (although not with the best quality, but the errors magically were gone). Motion was installed from source.

Thank you in advance for solving this issue!

-- BadanSergiu - 15 Oct 2008

Follow up

Attached a quick patch to allow use bayer compressed format included in drivers from kernel 2.6.27.

Get motion-3.2.11-V4L2_PIX_FMT_SGBRG8-hack.diff.gz
cp  motion-3.2.11-V4L2_PIX_FMT_SGBRG8-hack.diff.gz motion-3.2.11/.
gunzip  motion-3.2.11-V4L2_PIX_FMT_SGBRG8-hack.diff.gz
patch -p0 <  V4L2_PIX_FMT_SGBRG8-hack.diff
make  

-- AngelCarpintero - 15 Oct 2008


Included in svn trunk -r433

-- AngelCarpintero - 18 Oct 2008

Comments

Thank you!

-- BadanSergiu - 22 Oct 2008
Topic attachments
I Attachment Action Size Date Who Comment
motion-3.2.11-V4L2_PIX_FMT_SGBRG8-hack.diff.gzgz motion-3.2.11-V4L2_PIX_FMT_SGBRG8-hack.diff.gz manage 643 bytes 15 Oct 2008 - 13:39 AngelCarpintero patch to allow V4L2_PIX_FMT_SGBRG8 in motion-3.2.11
Topic revision: r4 - 22 Oct 2008, BadanSergiu
Copyright © 1999-2017 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.