Question 
This is a phillips laptop usb camera with lamp, but not detected as pwc. motion -r432 can't get a palette, and no output occurs. kernel 2.6.27 64 bit
0] motion_startup: Motion trunk-r432 Started
[0] ffmpeg_init: ffmpeg LIBAVCODEC_BUILD 3352580 LIBAVFORMAT_BUILD 3345409
[0] main: Motion running in setup mode.
[0] main: Thread 1 is from /usr/local/etc/motion.conf
[1] motion_init: Thread 1 started
[1] v4l2_get_capability:
------------------------
cap.driver: "pac7311"
cap.card: "VGA Single Chip"
cap.bus_info: "0000:00:1d.7"
cap.capabilities=0x05000001
------------------------
[1] - VIDEO_CAPTURE
[1] - READWRITE
[1] - STREAMING
[1] v4l2_set_pix_format: Supported palettes:
[1] 0: PJPG (PJPG)
[1] v4l2_set_pix_format: Unable to find a compatible palette format.
[1] v4l_start: Failed with YUV420P, trying YUV422 palette: Input/output error
[1] v4l_start: Failed with YUV422, trying YUYV palette: Invalid argument
[1] v4l_start: Failed with YUYV, trying RGB24 palette: Invalid argument
[1] v4l_start: Failed with RGB24, tryingGREYSCALE palette: Invalid argument
[1] v4l_start: Failed with all supported palettes - giving up: Invalid argument
[1] motion_init: Could not fetch initial image from camera Motion continues using width and height from config file(s)
[1] image_ring_resize: Resizing pre_capture buffer to 1 items
[1] Changes:     0 - noise level: 21
[1] Changes:     0 - noise level: 21
[1] Changes:     0 - noise level: 16
[1] Changes:     0 - noise level: 16
[1] Changes:     0 - noise level: 13
[1] Changes:     0 - noise level: 13
[1] Changes:     0 - noise level: 12
[1] Changes:     0 - noise level: 12
[1] motion_loop: Retrying until successful connection with camera
  Environment 
	
		
			|  Motion version:  | 
			 -r432 snap  | 
		
		
			|  ffmpeg version  | 
			    | 
		
		
			|  Libraries:  | 
			 ffmpeg, mysql, postgresql  | 
		
		
			|  Server OS:  | 
			 gentoo X64  | 
		
	
-- 
JohnHuttley - 20 Oct 2008
  Answer 
Yah , still working on new patettes added in 2.6.27 specially those custom bayer and Pixart :
#define V4L2_PIX_FMT_PJPG     v4l2_fourcc('P', 'J', 'P', 'G') /* Pixart 73xx JPEG */
I'll commit to svn a fix .
-- 
AngelCarpintero - 21 Oct 2008
Hi Angel,
I think it also needs to go in video.c u32 supported_formats[]
But it needs more than that. as it will then segfault.
--John
John ,
i just wrote the new define nothing else ... there's no problem to add detection of that new palette , but also
conversion so i'm looking to add a support to 8 new palettes introduced in 2.6.27 . I'll to get something this weekend.
-- 
AngelCarpintero - 24 Oct 2008
As a work around
http://www.lavrsen.dk/foswiki/bin/view/Motion/FrequentlyAskedQuestions#Problems_running_motion_with_ker
-- 
AngelCarpintero - 06 Aug 2009