Motion - Support Question 2007x 01x 14x 033716

Unable to find a compatible palette format with Logitech Sphere.

Question

Motion wont stat because of palette format. Webcam (Bus 001 Device 002: ID 046d:08c2 Logitech, Inc.).

[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: 7317
[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] Supported palettes:
[1] 0: MJPG (MJPEG)
[1] Unable to find a compatible palette format.
[0] motion-httpd/3.2.8 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 8080
[1] ioctl(VIDIOCGMBUF) - Error device does not support memory map
[1] V4L capturing using read is deprecated!
[1] Motion only supports mmap.
[1] Capture error calling vid_start
[1] Thread finishing...

Motion starts now (with svn version r153), but then it shutdown after this error message:

[1] processing jpeg image - content length 15167
[1] Huffman table 0x00 was not defined
[1] Error capturing first image
[1] Thread finishing...

Environment

Motion version: 3.2.8 svn r153
ffmpeg version:  
Libraries: ffmpeg
Server OS: Ubuntu 6.10 (Edgy Eft)

-- PeterBowle - 14 Jan 2007

Follow Up

Please try latest svn version r153 i have added an experimental support for MJPEG ( Motion Jpeg ).

Let me know any issue to improve the support to V4L2_PIX_FMT_MJPEG.

-- AngelCarpintero - 14 Jan 2007


Ok seems that motion jpeg needs a Huffman table , because the jpeg data is not complete in a jpeg frame. Let me figure out how to add it to allow jpeg decode properly the jpeg frame.

-- AngelCarpintero - 14 Jan 2007

Answer

I've added an experimental support for MJPEG ( V4L2_PIX_FMT_MJPEG ) in current svn version ( r159 ).

Please test it, open any bug related to problem with it.

-- AngelCarpintero - 18 Jan 2007
Topic revision: r5 - 18 Jan 2007, 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.