【问题标题】:Raspberry Pi webcam unable to open video device树莓派网络摄像头无法打开视频设备
【发布时间】:2014-06-03 08:31:04
【问题描述】:

错误“无法打开视频设备”

我正在使用带有树莓派的 HP Deluxe 网络摄像头 (EW193AA)

lsusb 的日志

Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 006: ID 093a:2621 Pixart Imaging, Inc. PAC731x Trust Webcam
Bus 001 Device 005: ID 413c:2107 Dell Computer Corp.

运动日志-n

[0] Processing thread 0 - config file /etc/motion/motion.conf
[0] Motion 3.2.12 Started
[0] ffmpeg LIBAVCODEC_BUILD 3482368 LIBAVFORMAT_BUILD 3478785
[0] Thread 1 is from /etc/motion/motion.conf
[0] httpd bind(): Address already in use
[0] httpd thread exit
[1] Thread 1 started
[1] cap.driver: "gspca_pac7302"
[1] cap.card: "USB Camera (093a:2621)"
[1] cap.bus_info: "usb-bcm2708_usb-1.2"
[1] cap.capabilities=0x85000001
[1] - VIDEO_CAPTURE
[1] - READWRITE
[1] - STREAMING
[1] Config palette index 8 (YU12) doesn't work.
[1] Supported palettes:
[1] 0: PJPG (PJPG)
[1] Unable to find a compatible palette format.
[1] ioctl (VIDIOCGCAP): Inappropriate ioctl for device
[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] bind(): Address already in use
[1] Problem enabling stream server in port 8081: Address already in use
[1] Thread exiting
[0] Motion thread 1 restart

我曾尝试将宽度和高度更改为 160*140、320*240,640*480 但导致同样的错误....但找不到解决方案...

【问题讨论】:

    标签: raspberry-pi raspbian motion


    【解决方案1】:

    日志文件显示您的端口 8081 已在使用中... 还请确保您的 outpath 为用户 motion.motion 启用了写入功能: 例如。 sudo chown motion.motion /home/pi/motion

    【讨论】:

      【解决方案2】:

      尝试运行:

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

      【讨论】:

        【解决方案3】:

        对我来说,这最终成为配置文件的问题。我将分辨率设置为 640x360,经过一番摆弄后,我发现高度必须能被 16 整除。“端口已在使用”的原始错误消息是错误的,事实证明,更改端口并没有解决任何问题。在我切换回 480 的高度后,服务又出现了。

        我推荐 320x240、640x480 或 1280x720(如果您有不错的网络摄像头和网速)。

        【讨论】:

          猜你喜欢
          • 2021-08-11
          • 1970-01-01
          • 2019-11-24
          • 1970-01-01
          • 2013-01-01
          • 2017-09-25
          • 2017-05-12
          • 1970-01-01
          • 2013-01-17
          相关资源
          最近更新 更多