Raspberry pi webcam "premature data end"

I am trying to run my webcam on raspberry pi. I am using quickcam logictech for laptops. Through lsusb, I see that the device is connected. When I start moving, I get this error "corrupted JPEG data: premature end of data segment". I tried fswebcam too, but I just get black photos. any advice? (should I use another program / doesn't work with raspberries?)

early

+4
source share
4 answers

I also had problems with my old Logitech QuickCam Express, but different. First, make sure that you have at least one scenario where your webcam is running. You asked about other programs. Try for example

mplayer tv:// 

or

 cheese 

or

 guvcview 

from your X desktop. I got errors that showed that video4linux v2 does not support my camera, only v1 for which I had to add

 LD_PRELOAD=/usr/lib/arm-linux-gnueabihf/libv4l/v4l1compat.so 

before running failed commands. (I found it at http://ubuntuforums.org/showthread.php?t=1476423. ) However, again, I did not get the same error as you (mine crumbled over palette formats). But different webcams can cause different symptoms, even if the root of the problem is the same or similar.

+3
source

I had this with my cheap webcam. The error disappeared when I selected a different image size to be recorded.

+1
source

I'm not sure if you still need help with this. I found this: A) Using the list of trusted peripherals for the Pi was the first clue: I had a shitty webcam with no name, and it just didn't work. I ended up using microsoft HD3000.

B) A powered USB hub was needed and many problems were fixed.

In the default motion.conf file, you will notice that the default resolution is something like 352x288. It runs on 640, but puts a lot of stress on the small pi. In the end, I turned the resolution back to default until I had all the other parts, and then turned it back on when I was ready to sit down and capture the video.

+1
source

If you have not already done so, I suggest viewing the Raspberry Pi Forum . Many others have struggled with this before. Start with the smallest possible resolution and experiment with different palettes. It is also possible that you are working with USB-related issues (see USB Stream Reduction in a related forum for further discussion). Make sure you have the latest firmware installed.

0
source

All Articles