You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 6, 2025. It is now read-only.
Hello,
I am using a Raspberry PI Zero 2W and the camera v2 on bookwork OS. I deployed the Motionplus docker container (crcinau/motionplus), added /dev/video0 as device in the container.
My motionplus.conf is:
`;*************************************************
;***** System
;*************************************************
daemon on
setup_mode off
;log_file
log_level 6
log_type ALL
;*************************************************
;***** Camera
;*************************************************
device_name MotionPlus1
device_id 101
;target_dir
;*************************************************
;***** Picture
;*************************************************
picture_output off
picture_filename %v-%Y%m%d%H%M%S-%q
;*************************************************
;***** Movie
;*************************************************
movie_output on
movie_max_time 120
movie_quality 45
movie_container mkv
movie_filename %v-%Y%m%d%H%M%S
;*************************************************
;***** Web Control
;*************************************************
webcontrol_port 8080
webcontrol_localhost off
webcontrol_parms 2
;*************************************************
;***** Web Stream
;*************************************************
stream_preview_scale 25
stream_preview_method mjpg
;*************************************************
; Device config files - One for each device.
;*************************************************
camera /usr/local/etc/motionplus/camera1.conf
; camera /usr/local/etc/motionplus/camera2.conf
; camera /usr/local/etc/motionplus/camera3.conf
; sound /usr/local/etc/motionplus/sound1.conf
;*************************************************
; Directory to read '.conf' files for devices.
;*************************************************
; config_dir /usr/local/etc/motionplus/conf.d'`
And camera1.conf:
`************************************************
; Configuration options specific to camera 1
;*************************************************
;*************************************************
;***** Camera
;*************************************************
device_name Motionplus1
device_id 101
;*************************************************
;***** Overlays
;*************************************************
text_left CAMERA 1
;*************************************************
;***** Movie
;*************************************************
movie_filename CAM01_%t-%v-%Y%m%d%H%M%S`
When starting the container it shows the error "Failed to start camera": NTC][ALL][00:motionplus] conf_process: Processing config file /usr/local/etc/motionplus/motionplus.conf [NTC][ALL][00:motionplus] conf_process: Processing config file /usr/local/etc/motionplus/camera1.conf [NTC][ALL][00:motionplus] log_init: Logging to syslog [NTC][ALL][00:motionplus] log_init: MotionPlus 0.1.1-git-20231124-2cfd106 started [NTC][ALL][00:motionplus] log_init: Using log type (ALL) log level (NTC) [NTC][ALL][00:motionplus] mytranslate_init: Language: English [NTC][STR][00:motionplus] webu_init_webcontrol: Starting webcontrol on port 8080 [NTC][STR][00:motionplus] webu_init_webcontrol: Started webcontrol on port 8080 [NTC][ENC][00:motionplus] motpls_av_init: libavcodec version 60.3.100 [NTC][ENC][00:motionplus] motpls_av_init: libavformat version 60.3.100 [NTC][ALL][00:motionplus] main: Motionplus pid: 1 [ERR][ALL][00:motionplus] mlp_init_cam_start: Failed to start camera. [NTC][ALL][00:motionplus] mlp_ring_resize: Resizing buffer to 4 items [ERR][ALL][00:motionplus] mlp_init_firstimage: Unable to open camera [NTC][ALL][00:motionplus] mlp_retry: Retrying until successful connection with camera [NTC][ALL][00:motionplus] mlp_main: Exiting
I have no idea what I am doing wrong. Can anybody help?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I am using a Raspberry PI Zero 2W and the camera v2 on bookwork OS. I deployed the Motionplus docker container (crcinau/motionplus), added /dev/video0 as device in the container.
My motionplus.conf is:
`;*************************************************
;***** System
;*************************************************
daemon on
setup_mode off
;log_file
log_level 6
log_type ALL
;*************************************************
;***** Camera
;*************************************************
device_name MotionPlus1
device_id 101
;target_dir
;*************************************************
;***** Source
;*************************************************
v4l2_device /dev/video0
;netcam_url
;*************************************************
;***** Image
;*************************************************
width 640
height 480
framerate 15
;*************************************************
;***** Overlays
;*************************************************
text_right %Y-%m-%d\n%T
;*************************************************
;***** Method
;*************************************************
emulate_motion off
threshold 1500
;*************************************************
;***** Masks
;*************************************************
noise_level 32
despeckle_filter EedDl
;*************************************************
;***** Detection
;*************************************************
minimum_motion_frames 1
event_gap 60
pre_capture 3
post_capture 10
;*************************************************
;***** Scripts
;*************************************************
on_event_start
on_event_end
;*************************************************
;***** Picture
;*************************************************
picture_output off
picture_filename %v-%Y%m%d%H%M%S-%q
;*************************************************
;***** Movie
;*************************************************
movie_output on
movie_max_time 120
movie_quality 45
movie_container mkv
movie_filename %v-%Y%m%d%H%M%S
;*************************************************
;***** Web Control
;*************************************************
webcontrol_port 8080
webcontrol_localhost off
webcontrol_parms 2
;*************************************************
;***** Web Stream
;*************************************************
stream_preview_scale 25
stream_preview_method mjpg
;*************************************************
; Device config files - One for each device.
;*************************************************
camera /usr/local/etc/motionplus/camera1.conf
; camera /usr/local/etc/motionplus/camera2.conf
; camera /usr/local/etc/motionplus/camera3.conf
; sound /usr/local/etc/motionplus/sound1.conf
;*************************************************
; Directory to read '.conf' files for devices.
;*************************************************
; config_dir /usr/local/etc/motionplus/conf.d'`
And camera1.conf:
`************************************************
; Configuration options specific to camera 1
;*************************************************
;*************************************************
;***** Camera
;*************************************************
device_name Motionplus1
device_id 101
;*************************************************
;***** Source
;*************************************************
v4l2_device /dev/video0
;*************************************************
;***** Image
;*************************************************
width 1280
height 720
;*************************************************
;***** Overlays
;*************************************************
text_left CAMERA 1
;*************************************************
;***** Movie
;*************************************************
movie_filename CAM01_%t-%v-%Y%m%d%H%M%S`
When starting the container it shows the error "Failed to start camera":
NTC][ALL][00:motionplus] conf_process: Processing config file /usr/local/etc/motionplus/motionplus.conf [NTC][ALL][00:motionplus] conf_process: Processing config file /usr/local/etc/motionplus/camera1.conf [NTC][ALL][00:motionplus] log_init: Logging to syslog [NTC][ALL][00:motionplus] log_init: MotionPlus 0.1.1-git-20231124-2cfd106 started [NTC][ALL][00:motionplus] log_init: Using log type (ALL) log level (NTC) [NTC][ALL][00:motionplus] mytranslate_init: Language: English [NTC][STR][00:motionplus] webu_init_webcontrol: Starting webcontrol on port 8080 [NTC][STR][00:motionplus] webu_init_webcontrol: Started webcontrol on port 8080 [NTC][ENC][00:motionplus] motpls_av_init: libavcodec version 60.3.100 [NTC][ENC][00:motionplus] motpls_av_init: libavformat version 60.3.100 [NTC][ALL][00:motionplus] main: Motionplus pid: 1 [ERR][ALL][00:motionplus] mlp_init_cam_start: Failed to start camera. [NTC][ALL][00:motionplus] mlp_ring_resize: Resizing buffer to 4 items [ERR][ALL][00:motionplus] mlp_init_firstimage: Unable to open camera [NTC][ALL][00:motionplus] mlp_retry: Retrying until successful connection with camera [NTC][ALL][00:motionplus] mlp_main: Exiting
I have no idea what I am doing wrong. Can anybody help?
Best regards
Tobias
Beta Was this translation helpful? Give feedback.
All reactions