Raspberry Pi Zero W、Pi 相机出现运动错误

Raspberry Pi Zero W、Pi 相机出现运动错误

我让 Motion 在我的 Raspberry Pi Zero W Stretch 上工作。一切都工作正常,直到我关闭它休息一下。我重新打开后,它突然不工作了。这是我得到的错误。

[0:motion] [NTC] [ALL] conf_load: Processing thread 0 - config file 
/home/pi/.motion/motion.conf
[0:motion] [ALR] [ALL] conf_cmdparse: Unknown config option "
"
[0:motion] [NTC] [ALL] motion_startup: Logging to syslog
[0:motion] [NTC] [ALL] motion_startup: Motion 4.2.2 Started
[0:motion] [NTC] [ALL] motion_startup: Using default log type (ALL)
[0:motion] [NTC] [ALL] motion_startup: Using log type (ALL) log level (NTC)
[0:motion] [NTC] [STR] webu_start_strm: Starting all camera streams on port 8081
[0:motion] [NTC] [STR] webu_start_strm: Unable to start stream for camera 0
[0:motion] [NTC] [STR] webu_start_ctrl: Starting webcontrol on port 8080
[0:motion] [NTC] [STR] webu_start_ctrl: Unable to start MHD
[0:motion] [NTC] [ENC] ffmpeg_global_init: ffmpeg libavcodec version 57.64.101 libavformat version 57.56.101
[0:motion] [NTC] [ALL] translate_init: Language: English
[0:motion] [NTC] [ALL] motion_start_thread: Camera ID: 0 is from /home/pi/.motion/motion.conf
[0:motion] [NTC] [ALL] motion_start_thread: Camera ID: 0 Camera Name: (null) Device: /dev/video0
[0:motion] [NTC] [ALL] main: Waiting for threads to finish, pid: 687
[1:ml1] [NTC] [ALL] motion_init: Camera 0 started: motion detection Enabled
[1:ml1] [NTC] [VID] vid_start: Opening MMAL cam
[1:ml1] [NTC] [VID] mmalcam_start: MMAL Camera thread starting... for camera (vc.ril.camera) of 640 x 480 at 10 fps
mmal: mmal_vc_component_enable: failed to enable component: ENOSPC
[1:ml1] [ERR] [VID] create_camera_component: camera component couldn't be enabled
[1:ml1] [NTC] [VID] mmalcam_cleanup: MMAL Camera cleanup
[1:ml1] [ERR] [VID] vid_start: MMAL cam failed to open
[1:ml1] [WRN] [ALL] motion_init: Could not fetch initial image from camera
[1:ml1] [WRN] [ALL] motion_init: Motion continues using width and height from config file(s)
[1:ml1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 1 items
[1:ml1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 4 items```

答案1

可能是连接相机的带状电缆松动。另请检查配置中是否启用了相机(raspi-config)

如果相机上的红色 LED 发光,则一切正常。您可以使用 rpstill 验证相机功能

相关内容