Hi, I have been trying to use motion (camera recording) on my ubuntu 10.04 64bit and am having some issues. I have looked everywhere for an answer but cannot seem to find it. I am using a Logitech C10 and I have already set up all the motion configurations but still get the following results;


When I do not start the motion detection daemon separately, I get this:
Code:
user@ubuntu:~$ sudo motion
[0] Processing thread 0 - config file /etc/motion/motion.conf
[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
[0] motion-httpd/3.2.11 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 8080
[1] cap.driver: "uvcvideo"
[1] cap.card: "UVC Camera (046d:081b)"
[1] cap.bus_info: "usb-0000:00:1d.7-2"
[1] cap.capabilities=0x04000001
[1] - VIDEO_CAPTURE
[1] - STREAMING
[1] Supported palettes:
[1] 0: YUYV (YUV 4:2:2 (YUYV))
[1] 1: MJPG (MJPEG)
[1] index_format 2 Test palette MJPG (1280x720)
[1] Using palette MJPG (1280x720) bytesperlines 0 sizeimage 816000 colorspace 00000008
[1] VIDIOC_G_JPEGCOMP not supported but it should be (does your webcam driver support this ioctl?)
[1] found control 0x00980900, "Brightness", range 0,255 
[1]     "Brightness", default 128, current 128
[1] found control 0x00980901, "Contrast", range 0,255 
[1]     "Contrast", default 32, current 32
[1] found control 0x00980902, "Saturation", range 0,255 
[1]     "Saturation", default 32, current 32
[1] found control 0x00980913, "Gain", range 0,255 
[1]     "Gain", default 0, current 0
[1] mmap information:
[1] frames=4
[1] 0 length=816000
[1] 1 length=816000
[1] 2 length=816000
[1] 3 length=816000
[1] Using V4L2
[1] Resizing pre_capture buffer to 1 items
[0] httpd - Finishing
[0] httpd Closing
[0] httpd thread exit
Corrupt JPEG data: 4 extraneous bytes before marker 0xd4
[1] mjpegtoyuv420p: Corrupt image ... continue
Corrupt JPEG data: 4 extraneous bytes before marker 0xd1
[1] mjpegtoyuv420p: Corrupt image ... continue
Corrupt JPEG data: 2 extraneous bytes before marker 0xd0
[1] mjpegtoyuv420p: Corrupt image ... continue
Corrupt JPEG data: 1 extraneous bytes before marker 0xd7
[1] mjpegtoyuv420p: Corrupt image ... continue
[1] mjpegtoyuv420p: Corrupt image ... continue
Corrupt JPEG data: 2 extraneous bytes before marker 0xd2
[1] mjpegtoyuv420p: Corrupt image ... continue
Corrupt JPEG data: 1 extraneous bytes before marker 0xd7
[1] mjpegtoyuv420p: Corrupt image ... continue
Corrupt JPEG data: 1 extraneous bytes before marker 0xd0
[1] mjpegtoyuv420p: Corrupt image ... continue
Corrupt JPEG data: 2 extraneous bytes before marker 0xd5
[1] mjpegtoyuv420p: Corrupt image ... continue
Corrupt JPEG data: 3 extraneous bytes before marker 0xd1
[1] mjpegtoyuv420p: Corrupt image ... continue
Corrupt JPEG data: 1 extraneous bytes before marker 0xd1
[1] mjpegtoyuv420p: Corrupt image ... continue
Corrupt JPEG data: 1 extraneous bytes before marker 0xd0
[1] mjpegtoyuv420p: Corrupt image ... continue
Corrupt JPEG data: 3 extraneous bytes before marker 0xd7
[1] mjpegtoyuv420p: Corrupt image ... continue
[1] Error capturing first image
[1] Started stream webcam server in port 8081
[1] Thread exiting
[1] Calling vid_close() from motion_cleanup
[1] Closing video device /dev/video0
[0] Motion terminating

When I start the motion detection daemon separately, I get this:
Code:
user@ubuntu:/etc/motion$ sudo service motion start
[sudo] password for user: 
 * Starting motion detection daemon : motion                             [ OK ] 
user@ubuntu:/etc/motion$ sudo motion
[0] Processing thread 0 - config file /etc/motion/motion.conf
[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
[0] httpd bind(): 
[0] httpd thread exit
[1] cap.driver: "uvcvideo"
[1] cap.card: "UVC Camera (046d:081b)"
[1] cap.bus_info: "usb-0000:00:1d.7-7.3"
[1] cap.capabilities=0x04000001
[1] - VIDEO_CAPTURE
[1] - STREAMING
[1] Error selecting input 0 VIDIOC_S_INPUT: 
[1] ioctl(VIDIOCGMBUF) - Error device does not support memory map
[1] V4L capturing using read is deprecated!
[1] Motion only supports mmap.
[1] Could not fetch initial image from camera
[1] Motion continues using width and height from config file(s)
[1] Resizing pre_capture buffer to 1 items
[1] Started stream webcam server in port 8081
[1] Retrying until successful connection with camera
I have searched everywhere for answers to the following lines;
[1] VIDIOC_G_JPEGCOMP not supported but it should be (does your webcam driver support this ioctl?)
and
[1] ioctl(VIDIOCGMBUF) - Error device does not support memory map

because I have seen other people having this same problem so thought this might be the common problem but cannot find any solutions. Hopefully someone here has already set this up and knows where I am at/how to move past this point.

Thank you anyone for your help in advance!