Motion - Support Question 2010x 05x 08x 221414

Simple logitech webcam, /dev/video0 fatal error

Question

Sorry, I asked again, I couldn't tell if my post went through.

I have a Logitech Quickcam Express with Ubuntu Linux 10.4. I have used the Cheese application and others that connect to /dev/video0 and they all show video. But, when I run motion I get the following error: I have used some of the basic settings from Ubuntu and edited some.

Also, v4l1 and v4l2 tested OK when I ran gstreamer-properties

Error:

[0] Motion 3.2.11 Started
[0] ffmpeg LIBAVCODEC_BUILD 3412993 LIBAVFORMAT_BUILD 3415808
[0] Thread 1 is from /etc/motion/motion.conf
[1] Thread 1 started
[1] cap.driver: "STV06xx"
[1] cap.card: "Camera"
[1] cap.bus_info: "usb-0000:00:10.1-1"
[1] cap.capabilities=0x05000001
[1] - VIDEO_CAPTURE
[1] - READWRITE
[1] - STREAMING
[1] v4l2_select_input: name = "STV06xx", type 0x00000002, status 00000000
[1] - CAMERA
[1] Device doesn't support VIDIOC_G_STD
[1] Supported palettes:
[1] 0: GRBG (GRBG)
[1] Unable to find a compatible palette format.
[1] Using VIDEO_PALETTE_YUV420P palette
[1] Using V4L1
[1] Resizing pre_capture buffer to 1 items
[1] sync error in proc 4413: 
[1] mcapture error in proc 4413: 
[1] Video device fatal error - Closing video device
[1] Closing video device /dev/video0
[0] DEBUG-2 threads_running 1 motion_threads_running 1 , finish 0
[1] vid_return_code 1
[1] vid_return_code 1
[0] DEBUG-2 threads_running 1 motion_threads_running 1 , finish 0
[1] vid_return_code 1
[1] vid_return_code 1
[0] DEBUG-2 threads_running 1 motion_threads_running 1 , finish 0
[1] vid_return_code 1
[1] vid_return_code 1
[0] DEBUG-2 threads_running 1 motion_threads_running 1 , finish 0
[1] vid_return_code 1
...

0] DEBUG-2 threads_running 1 motion_threads_running 1 , finish 0
[1] vid_return_code 1
[1] Retrying until successful connection with camera
[1] cap.driver: "STV06xx"
[1] cap.card: "Camera"
[1] cap.bus_info: "usb-0000:00:10.1-1"
[1] cap.capabilities=0x05000001
[1] - VIDEO_CAPTURE
[1] - READWRITE
[1] - STREAMING
[1] v4l2_select_input: name = "STV06xx", type 0x00000002, status 00000000
[1] - CAMERA
[1] Device doesn't support VIDIOC_G_STD
[1] Supported palettes:
[1] 0: GRBG (GRBG)
[1] Unable to find a compatible palette format.
[1] Using VIDEO_PALETTE_YUV420P palette
[1] Using V4L1
[0] DEBUG-2 threads_running 1 motion_threads_running 1 , finish 0
[1] sync error in proc 4413: 
[1] mcapture error in proc 4413: 
[1] Video device fatal error - Closing video device
[1] Closing video device /dev/video0
[0] DEBUG-2 threads_running 1 motion_threads_running 1 , finish 0
[1] vid_return_code 1
[1] vid_return_code 1
[0] DEBUG-2 threads_running 1 motion_threads_running 1 , finish 0
[1] vid_return_code 1
[1] vid_return_code 1
[0] DEBUG-2 threads_running 1 motion_threads_running 1 , finish 0
[1] vid_return_code 1
[1] vid_return_code 1
[0] DEBUG-2 threads_running 1 motion_threads_running 1 , finish 0
[1] vid_return_code 1
[1] vid_return_code 1
[0] DEBUG-2 threads_running 1 motion_threads_running 1 , finish 0
[1] vid_return_code 1
[1] vid_return_code 1
[0] DEBUG-2 threads_running 1 motion_threads_running 1 , finish 0
[1] vid_return_code 1





------

Config:

############################################################
# Daemon
############################################################

# Start in daemon (background) mode and release terminal (default: off)
daemon off

# File to store the process ID, also called pid file. (default: not defined)
process_id_file /var/run/motion/motion.pid

############################################################
# Basic Setup Mode
############################################################

# Start in Setup-Mode, daemon disabled. (default: off)
setup_mode off

###########################################################
# Capture device options
############################################################

# Videodevice to be used for capturing  (default /dev/video0)
# for FreeBSD default is /dev/bktr0
videodevice /dev/video0

# v4l2_palette allows to choose preferable palette to be use by motion
# to capture from those supported by your videodevice. (default: 8)
# E.g. if your videodevice supports both V4L2_PIX_FMT_SBGGR8 and
# V4L2_PIX_FMT_MJPEG then motion will by default use V4L2_PIX_FMT_MJPEG.
# Setting v4l2_palette to 1 forces motion to use V4L2_PIX_FMT_SBGGR8
# instead.
#
# Values :
# V4L2_PIX_FMT_SN9C10X : 0  'S910'
# V4L2_PIX_FMT_SBGGR8  : 1  'BA81'
# V4L2_PIX_FMT_MJPEG   : 2  'MJPEG'
# V4L2_PIX_FMT_JPEG    : 3  'JPEG'
# V4L2_PIX_FMT_RGB24   : 4  'RGB3'
# V4L2_PIX_FMT_UYVY    : 5  'UYVY'
# V4L2_PIX_FMT_YUYV    : 6  'YUYV'
# V4L2_PIX_FMT_YUV422P : 7  '422P'
# V4L2_PIX_FMT_YUV420  : 8  'YU12'
v4l2_palette 8

# Tuner device to be used for capturing using tuner as source (default /dev/tuner0)
# This is ONLY used for FreeBSD. Leave it commented out for Linux
; tunerdevice /dev/tuner0

# The video input to be used (default: 8)
# Should normally be set to 0 or 1 for video/TV cards, and 8 for USB cameras
input 8

# The video norm to use (only for video capture and TV tuner cards)
# Values: 0 (PAL), 1 (NTSC), 2 (SECAM), 3 (PAL NC no colour). Default: 0 (PAL)
norm 0

# The frequency to set the tuner to (kHz) (only for TV tuner cards) (default: 0)
frequency 0

# Rotate image this number of degrees. The rotation affects all saved images as
# well as mpeg movies. Valid values: 0 (default = no rotation), 90, 180 and 270.
rotate 0

# Image width (pixels). Valid range: Camera dependent, default: 352
width 320

# Image height (pixels). Valid range: Camera dependent, default: 288
height 240
                                                                                            56,1          Top

Environment

Motion version: 3.2.11.1
ffmpeg version:  
Libraries: ffmpeg, mysql, postgresql
Server OS:  

-- BerlinBrown - 08 May 2010

Answer

Read this topic, where is explained how to run motion with libv4l to work with unsupported palettes.

 http://www.lavrsen.dk/twiki/bin/view/Motion/SupportQuestion2009x01x20x183230

-- AngelCarpintero - 15 May 2010
Topic revision: r2 - 15 May 2010, 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.