树莓派运动网络摄像头“数据过早结束" [英] raspberry pi motion webcam "premature end of data"

查看:53
本文介绍了树莓派运动网络摄像头“数据过早结束"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试让我的网络摄像头在 raspberry pi 上运行.我正在为笔记本使用 logictech 快速摄像头.通过 lsusb 我看到设备已连接.当我开始运动时,我收到此错误损坏的 JPEG 数据:数据段过早结束".我也尝试过 fswebcam,但我只是从中得到了黑色图片.有什么建议吗?(我应该使用其他程序/不适用于覆盆子吗?)

I am trying to get my webcam running on the raspberry pi. I am using a logictech quickcam for notebooks. Via lsusb I see that the device is connected. When i am starting motion I am getting this error "corrupt JPEG data: premature end of data segment". I tried fswebcam as well but I just get black pictures out of it. any advice? (should i use another programme/doesn´t work with raspberry?)

提前致谢

推荐答案

我的老式 Logitech QuickCam Express 也有问题,但问题不同.首先确保您至少有一个网络摄像头可以工作的场景.你问过其他程序.尝试例如

I also had problems with my oldish Logitech QuickCam Express, but a different one. First make sure you have at least one scenario where your webcam does work. You've asked about other programs. Try e.g.

mplayer tv://

cheese

guvcview

从您的 X 桌面.我收到错误,表明 video4linux v2 不支持我的摄像头,只支持 v1,为此我必须添加

from your X desktop. I got errors which indicated video4linux v2 did not support my cam, only v1, for which I had to add

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

在启动失败的命令之前.(我在 http://ubuntuforums.org/showthread.php?t=1476423.) 然而,我没有得到和你一样的错误(我在调色板格式上翻滚).但是不同的网络摄像头可能会触发不同的症状,即使问题的根源相同或相似.

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

这篇关于树莓派运动网络摄像头“数据过早结束"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆