树莓派java 控制摄像头_在树莓派上使用动作进行网络摄像头流媒体问题

在尝试使用树莓派和Java控制USB网络摄像头进行流媒体传输时,遇到了设备无法被检测到的问题。通过运行`lsusb`命令显示了设备信息,然后使用动作(motion)软件进行设置,但出现了配置错误,包括不支持的色彩格式、分辨率调整问题以及设备连接错误。日志中显示V4L2错误和相机可用性问题。目前,摄像头在启动后会关闭,并且需要解决配置不兼容和连接问题。
摘要由CSDN通过智能技术生成

我有一个USB网络摄像头(未知的制作,没有标记)在我的Raspberry Pi上检测不到 .

这是lsusb的输出

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.

Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.

Bus 001 Device 004: ID 0c45:608f Microdia PC Camera (SN9C103 + OV7630)

Bus 001 Device 005: ID 1267:0103 Logic3 / SpectraVideo plc G-720 Keyboard

但是当我运行动作时,使用/ dev / video0和唯一的默认配置会改变分辨率并关闭网络摄像头主机,以便我可以在网络上传输它 . 这是我运行动作时的日志

Log of motion -n

[0] Processing thread 0 - config file /etc/motion/motion.conf

[0] Motion 3.2.12 Started

[0] ffmpeg LIBAVCODEC_BUILD 3482368 LIBAVFORMAT_BUILD 3478784

[0] Thread 1 is from /etc/motion/motion.conf

[0] motion-httpd/3.2.12 running, accepting connections

[0] motion-httpd: waiting for data on port TCP 8080

[1] Thread 1 started

[1] cap.driver: "sonixb"

[1] cap.card: "USB camera"

[1] cap.bus_info: "usb-bcm2708_usb-1.2"

[1] cap.capabilities=0x05000001

[1] - VIDEO_CAPTURE

[1] - READWRITE

[1] - STREAMING

[1] Config palette index 8 (YU12) doesn't work.

[1] Supported palettes:

[1] 0: S910 (S910)

[1] 1: BA81 (BA81)

[1] Selected palette BA81

[1] Test palette BA81 (480x640)

[1] Adjusting resolution from 480x640 to 160x120.

[1] Using palette BA81 (160x120) bytesperlines 160 sizeimage 19200 colorspace 00000008

[1] found control 0x00980900, "Brightness", range 0,255

[1] "Brightness", default 127, current 127

[1] found control 0x00980911, "Exposure", range 0,1023

[1] "Exposure", default 66, current 66

[1] found control 0x00980912, "Automatic Gain (and Exposure)", range 0,1

[1] "Automatic Gain (and Exposure)", default 1, current 1

[1] found control 0x00980913, "Gain", range 0,255

[1] "Gain", default 127, current 127

[1] mmap information:

[1] frames=4

[1] 0 length=20480

[1] 1 length=20480

[1] 2 length=20480

[1] 3 length=20480

[1] Using V4L2

[1] Resizing pre_capture buffer to 1 items

[1] v4l2_next: VIDIOC_DQBUF: EIO (s->pframe 0): Input/output error

[1] v4l2_next: VIDIOC_QBUF: Invalid argument

[1] v4l2_next: VIDIOC_QBUF: Invalid argument

[1] v4l2_next: VIDIOC_QBUF: Invalid argument

[1] v4l2_next: VIDIOC_QBUF: Invalid argument

[1] Error capturing first image

[1] Started stream webcam server in port 8081

[1] v4l2_next: VIDIOC_QBUF: Invalid argument

[1] Video device fatal error - Closing video device

[1] Closing video device /dev/video0

[1] Retrying until successful connection with camera

[1] cap.driver: "sonixb"

[1] cap.card: "USB camera"

[1] cap.bus_info: "usb-bcm2708_usb-1.2"

[1] cap.capabilities=0x05000001

[1] - VIDEO_CAPTURE

[1] - READWRITE

[1] - STREAMING

[1] Config palette index 8 (YU12) doesn't work.

[1] Supported palettes:

[1] 0: S910 (S910)

[1] 1: BA81 (BA81)

[1] Selected palette BA81

[1] Test palette BA81 (480x640)

[1] Adjusting resolution from 480x640 to 160x120.

[1] Using palette BA81 (160x120) bytesperlines 160 sizeimage 19200 colorspace 00000008

[1] found control 0x00980900, "Brightness", range 0,255

[1] "Brightness", default 127, current 127

[1] found control 0x00980911, "Exposure", range 0,1023

[1] "Exposure", default 66, current 66

[1] found control 0x00980912, "Automatic Gain (and Exposure)", range 0,1

[1] "Automatic Gain (and Exposure)", default 1, current 1

[1] found control 0x00980913, "Gain", range 0,255

[1] "Gain", default 127, current 127

[1] mmap information:

[1] frames=4

[1] 0 length=20480

[1] 1 length=20480

[1] 2 length=20480

[1] 3 length=20480

[1] Using V4L2

[1] Camera has finally become available

[1] Camera image has different width and height from what is in the config file. You should fix that

[1] Restarting Motion thread to reinitialize all image buffers to new picture dimensions

[1] Thread exiting

[1] Calling vid_close() from motion_cleanup

[1] Closing video device /dev/video0

[0] Motion thread 1 restart

[1] Thread 1 started

[1] config image height (120) is not modulo 16

[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

[1] config image height (120) is not modulo 16

[0] httpd - Finishing

[0] httpd Closing

[0] httpd thread exit

[1] Thread exiting

[0] Motion terminating

相机上的指示灯在开始时亮起然后再次熄灭,是否有人认出我遇到的任何错误?

谢谢!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值