Well it looks like its progress... not quite there but progress
still seems to give the same error but this time "camera monitor" pops up saying the camera /video0 has been turned on which did not happen before
Code:
user@ubuntu:~$ sudo apt-get install libv4l-0
[sudo] password for user:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libv4l-0 is already the newest version.
The following packages were automatically installed and are no longer required:
linux-headers-2.6.32-38 linux-headers-2.6.32-38-generic
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Code:
user@ubuntu:~$ LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libv4l/v4l2convert.so motion
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libv4l/v4l2convert.so' from LD_PRELOAD cannot be preloaded: ignored.
[0] could not open configfile /etc/motion/motion.conf:
[0] Not config file to process using default values
[0] Motion 3.2.11 Started
[0] ffmpeg LIBAVCODEC_BUILD 3412993 LIBAVFORMAT_BUILD 3415808
[1] Thread 1 started
[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] Supported palettes:
[1] 0: YUYV (YUV 4:2:2 (YUYV))
[1] 1: MJPG (MJPEG)
[1] index_format 2 Test palette MJPG (352x288)
[1] Using palette MJPG (352x288) bytesperlines 0 sizeimage 102400 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=102400
[1] 1 length=102400
[1] 2 length=102400
[1] 3 length=102400
[1] Using V4L2
[1] Resizing pre_capture buffer to 1 items
Corrupt JPEG data: 1 extraneous bytes before marker 0xd4
[1] mjpegtoyuv420p: Corrupt image ... continue
Corrupt JPEG data: 1 extraneous bytes before marker 0xd3
[1] mjpegtoyuv420p: Corrupt image ... continue
Corrupt JPEG data: 3 extraneous bytes before marker 0xd7
[1] mjpegtoyuv420p: Corrupt image ... continue
Corrupt JPEG data: 3 extraneous bytes before marker 0xd4
[1] mjpegtoyuv420p: Corrupt image ... continue
Corrupt JPEG data: 1 extraneous bytes before marker 0xd2
[1] mjpegtoyuv420p: Corrupt image ... continue
[1] Error capturing first image
Corrupt JPEG data: 4 extraneous bytes before marker 0xd4
[1] mjpegtoyuv420p: Corrupt image ... continue
Corrupt JPEG data: 1 extraneous bytes before marker 0xd4
[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 0xd2
[1] mjpegtoyuv420p: Corrupt image ... continue
Corrupt JPEG data: 1 extraneous bytes before marker 0xd7
[1] mjpegtoyuv420p: Corrupt image ... continue
Corrupt JPEG data: 4 extraneous bytes before marker 0xd3
[1] Thread exiting
[1] Calling vid_close() from motion_cleanup
[1] Closing video device /dev/video0
[0] Motion terminating
user@ubuntu:~$
√ | Connect the camera directly to the computer, not through a usb hub.
Are you using USB 2.0? Maybe you don't have the bandwidth to handle the camera.
√ | Set a lower resolution, that may help with the previous point.
I personally use NTSC instead of PAL (norm 1), but that may not be an issue.
√ | This is what usually solve any of my problems:
I tried a different cam, pluged it directly into the tower and lowered the res all the way down to default 235X288. This still gave me the error only difference is I do not get the corrupt image errror anymore. Here is what came back after the cam/res change;
- I did try running the camera with cheese and it runs fine so it is not a connection issue
Code:
user@ubuntu:~$ LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libv4l/v4l2convert.so motion
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libv4l/v4l2convert.so' from LD_PRELOAD cannot be preloaded: ignored.
[0] could not open configfile /etc/motion/motion.conf:
[0] Not config file to process using default values
[0] Motion 3.2.11 Started
[0] ffmpeg LIBAVCODEC_BUILD 3412993 LIBAVFORMAT_BUILD 3415808
[1] Thread 1 started
[1] Failed to open video device /dev/video0:
[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] Retrying until successful connection with camera
[1] Failed to open video device /dev/video0:
[1] Retrying until successful connection with camera
[1] Failed to open video device /dev/video0:
[1] Thread exiting
[0] Motion terminating
user@ubuntu:~$
Thank you for all your help
Bookmarks