Raspberry Pi Zero W, Pi 카메라 동작 오류

Raspberry Pi Zero W, Pi 카메라 동작 오류

Raspberry Pi Zero W Stretch에서 Motion을 작업하고 있습니다. 휴식을 취하기 위해 전원을 끌 때까지 모든 것이 잘 작동했습니다. 다시 켜보니 갑자기 작동이 멈췄습니다. 이것이 내가 얻는 오류입니다.

[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을 사용하여 카메라 기능을 확인할 수 있습니다.

관련 정보