v4l2 devices not working
Lemmiwinks opened this issue · 2 comments
Lemmiwinks commented
Did you read the guide?
Yes
What is the base version number of MotionPlus being used?
0.1.x
What was the install method?
Built from source code
What is base architecture?
x86/x64
What is the distro being used?
Ubuntu
Disto version number
22.04
Camera/Sound type(s) being used?
v4l2 camera
Describe the issue/problem and steps to reproduce
I wanted to start using MotionPlus with a very basic configuration based on the conf file created on installation to drive my webcam on my laptop. The camera works without problems in motion or vlc but it simply does not turn on or does anything in MotionPlus. My config file is attached and so is the log. Thanks!
motionplus.conf.zip
Relevant MotionPlus log output (at log_level 8)
motionplus
[NTC][ALL][00:motionplus] conf_process: Processing config file /home/andy/.motionplus/motionplus.conf
[NTC][ALL][00:motionplus] log_init: Logging to syslog
[NTC][ALL][00:motionplus] log_init: MotionPlus 0.1.1-git-20230916-20a34d8 started
[NTC][ALL][00:motionplus] log_init: Using log type (ALL) log level (DBG)
[NTC][ALL][00:motionplus] mytranslate_init: Language: English
[INF][ALL][00:motionplus] conf_parms_log: Logging configuration parameters from all files
[INF][ALL][00:motionplus] Config file: /home/andy/.motionplus/motionplus.conf
[INF][ALL][00:motionplus] daemon off
[INF][ALL][00:motionplus] setup_mode off
[INF][ALL][00:motionplus] pid_file
[INF][ALL][00:motionplus] log_file
[INF][ALL][00:motionplus] log_level 8
[INF][ALL][00:motionplus] log_type ALL
[INF][ALL][00:motionplus] native_language on
[INF][ALL][00:motionplus] device_name webcam
[INF][ALL][00:motionplus] device_id 10
[INF][ALL][00:motionplus] device_tmo 30
[INF][ALL][00:motionplus] pause off
[INF][ALL][00:motionplus] target_dir /home/andy/Videos/motionplus
[INF][ALL][00:motionplus] watchdog_tmo 30
[INF][ALL][00:motionplus] watchdog_kill 10
[INF][ALL][00:motionplus] v4l2_device /dev/video0
[INF][ALL][00:motionplus] v4l2_params palette=8
[INF][ALL][00:motionplus] netcam_url <redacted>
[INF][ALL][00:motionplus] netcam_params
[INF][ALL][00:motionplus] netcam_high_url <redacted>
[INF][ALL][00:motionplus] netcam_high_params
[INF][ALL][00:motionplus] netcam_userpass <redacted>
[INF][ALL][00:motionplus] libcam_device
[INF][ALL][00:motionplus] libcam_params
[INF][ALL][00:motionplus] width 640
[INF][ALL][00:motionplus] height 480
[INF][ALL][00:motionplus] framerate 25
[INF][ALL][00:motionplus] rotate 0
[INF][ALL][00:motionplus] flip_axis vertical
[INF][ALL][00:motionplus] locate_motion_mode off
[INF][ALL][00:motionplus] locate_motion_style box
[INF][ALL][00:motionplus] text_left
[INF][ALL][00:motionplus] text_right %Y-%m-%d\n%T
[INF][ALL][00:motionplus] text_changes off
[INF][ALL][00:motionplus] text_scale 1
[INF][ALL][00:motionplus] text_event %Y%m%d%H%M%S
[INF][ALL][00:motionplus] emulate_motion off
[INF][ALL][00:motionplus] threshold 1500
[INF][ALL][00:motionplus] threshold_maximum 0
[INF][ALL][00:motionplus] threshold_sdevx 0
[INF][ALL][00:motionplus] threshold_sdevy 0
[INF][ALL][00:motionplus] threshold_sdevxy 0
[INF][ALL][00:motionplus] threshold_ratio 0
[INF][ALL][00:motionplus] threshold_ratio_change 64
[INF][ALL][00:motionplus] threshold_tune off
[INF][ALL][00:motionplus] secondary_method none
[INF][ALL][00:motionplus] secondary_params
[INF][ALL][00:motionplus] noise_level 32
[INF][ALL][00:motionplus] noise_tune on
[INF][ALL][00:motionplus] despeckle_filter EedDl
[INF][ALL][00:motionplus] area_detect
[INF][ALL][00:motionplus] mask_file
[INF][ALL][00:motionplus] mask_privacy
[INF][ALL][00:motionplus] smart_mask_speed 0
[INF][ALL][00:motionplus] lightswitch_percent 0
[INF][ALL][00:motionplus] lightswitch_frames 5
[INF][ALL][00:motionplus] minimum_motion_frames 1
[INF][ALL][00:motionplus] static_object_time 10
[INF][ALL][00:motionplus] event_gap 60
[INF][ALL][00:motionplus] pre_capture 3
[INF][ALL][00:motionplus] post_capture 10
[INF][ALL][00:motionplus] on_event_start
[INF][ALL][00:motionplus] on_event_end
[INF][ALL][00:motionplus] on_picture_save
[INF][ALL][00:motionplus] on_area_detected
[INF][ALL][00:motionplus] on_motion_detected
[INF][ALL][00:motionplus] on_movie_start
[INF][ALL][00:motionplus] on_movie_end
[INF][ALL][00:motionplus] on_camera_lost
[INF][ALL][00:motionplus] on_camera_found
[INF][ALL][00:motionplus] on_secondary_detect
[INF][ALL][00:motionplus] on_action_user
[INF][ALL][00:motionplus] on_sound_alert
[INF][ALL][00:motionplus] picture_output off
[INF][ALL][00:motionplus] picture_output_motion off
[INF][ALL][00:motionplus] picture_type jpeg
[INF][ALL][00:motionplus] picture_quality 75
[INF][ALL][00:motionplus] picture_exif
[INF][ALL][00:motionplus] picture_filename %v-%Y%m%d%H%M%S-%q
[INF][ALL][00:motionplus] snapshot_interval 0
[INF][ALL][00:motionplus] snapshot_filename %v-%Y%m%d%H%M%S-snapshot
[INF][ALL][00:motionplus] movie_output off
[INF][ALL][00:motionplus] movie_output_motion off
[INF][ALL][00:motionplus] movie_max_time 120
[INF][ALL][00:motionplus] movie_bps 400000
[INF][ALL][00:motionplus] movie_quality 45
[INF][ALL][00:motionplus] movie_container mkv
[INF][ALL][00:motionplus] movie_passthrough off
[INF][ALL][00:motionplus] movie_filename %v-%Y%m%d%H%M%S
[INF][ALL][00:motionplus] movie_retain all
[INF][ALL][00:motionplus] movie_extpipe_use off
[INF][ALL][00:motionplus] movie_extpipe
[INF][ALL][00:motionplus] timelapse_interval 0
[INF][ALL][00:motionplus] timelapse_mode daily
[INF][ALL][00:motionplus] timelapse_fps 30
[INF][ALL][00:motionplus] timelapse_container mpg
[INF][ALL][00:motionplus] timelapse_filename %Y%m%d-timelapse
[INF][ALL][00:motionplus] video_pipe
[INF][ALL][00:motionplus] video_pipe_motion
[INF][ALL][00:motionplus] webcontrol_port 8080
[INF][ALL][00:motionplus] webcontrol_port2 0
[INF][ALL][00:motionplus] webcontrol_base_path
[INF][ALL][00:motionplus] webcontrol_ipv6 off
[INF][ALL][00:motionplus] webcontrol_localhost on
[INF][ALL][00:motionplus] webcontrol_parms 0
[INF][ALL][00:motionplus] webcontrol_interface default
[INF][ALL][00:motionplus] webcontrol_auth_method none
[INF][ALL][00:motionplus] webcontrol_authentication <redacted>
[INF][ALL][00:motionplus] webcontrol_tls off
[INF][ALL][00:motionplus] webcontrol_cert <redacted>
[INF][ALL][00:motionplus] webcontrol_key <redacted>
[INF][ALL][00:motionplus] webcontrol_headers
[INF][ALL][00:motionplus] webcontrol_html
[INF][ALL][00:motionplus] webcontrol_actions
[INF][ALL][00:motionplus] webcontrol_lock_minutes 10
[INF][ALL][00:motionplus] webcontrol_lock_attempts 3
[INF][ALL][00:motionplus] webcontrol_lock_script
[INF][ALL][00:motionplus] stream_preview_scale 100
[INF][ALL][00:motionplus] stream_preview_newline off
[INF][ALL][00:motionplus] stream_preview_method mjpg
[INF][ALL][00:motionplus] stream_preview_ptz on
[INF][ALL][00:motionplus] stream_quality 50
[INF][ALL][00:motionplus] stream_grey off
[INF][ALL][00:motionplus] stream_motion off
[INF][ALL][00:motionplus] stream_maxrate 1
[INF][ALL][00:motionplus] stream_scan_time 5
[INF][ALL][00:motionplus] stream_scan_scale 25
[INF][ALL][00:motionplus] database_type
[INF][ALL][00:motionplus] database_dbname
[INF][ALL][00:motionplus] database_host
[INF][ALL][00:motionplus] database_port 0
[INF][ALL][00:motionplus] database_user <redacted>
[INF][ALL][00:motionplus] database_password <redacted>
[INF][ALL][00:motionplus] database_busy_timeout 0
[INF][ALL][00:motionplus] sql_event_start
[INF][ALL][00:motionplus] sql_event_end
[INF][ALL][00:motionplus] sql_movie_start
[INF][ALL][00:motionplus] sql_movie_end
[INF][ALL][00:motionplus] sql_pic_save
[INF][ALL][00:motionplus] ptz_auto_track off
[INF][ALL][00:motionplus] ptz_wait 0
[INF][ALL][00:motionplus] ptz_move_track
[INF][ALL][00:motionplus] ptz_pan_left
[INF][ALL][00:motionplus] ptz_pan_right
[INF][ALL][00:motionplus] ptz_tilt_up
[INF][ALL][00:motionplus] ptz_tilt_down
[INF][ALL][00:motionplus] ptz_zoom_in
[INF][ALL][00:motionplus] ptz_zoom_out
[INF][ALL][00:motionplus] snd_device
[INF][ALL][00:motionplus] snd_params
[INF][ALL][00:motionplus] snd_window hamming
[INF][ALL][00:motionplus] snd_show off
[DBG][ALL][00:motionplus] motpls_ntc: v4l2 : available
[DBG][ALL][00:motionplus] motpls_ntc: webp : available
[DBG][ALL][00:motionplus] motpls_ntc: libcam : not available
[DBG][ALL][00:motionplus] motpls_ntc: mysql : not available
[DBG][ALL][00:motionplus] motpls_ntc: MariaDB: available
[DBG][ALL][00:motionplus] motpls_ntc: sqlite3: available
[DBG][ALL][00:motionplus] motpls_ntc: pgsql : available
[DBG][ALL][00:motionplus] motpls_ntc: nls : available
[DBG][ALL][00:motionplus] motpls_ntc: alsa : available
[DBG][ALL][00:motionplus] motpls_ntc: fftw3 : available
[NTC][STR][00:motionplus] webu_init_webcontrol: Starting webcontrol on port 8080
[INF][ALL][00:motionplus] util_parms_add: Parsed: >event< >off<
[INF][ALL][00:motionplus] util_parms_add: Parsed: >snapshot< >off<
[INF][ALL][00:motionplus] util_parms_add: Parsed: >pause< >off<
[INF][ALL][00:motionplus] util_parms_add: Parsed: >restart< >off<
[INF][ALL][00:motionplus] util_parms_add: Parsed: >stop< >off<
[INF][ALL][00:motionplus] util_parms_add: Parsed: >config_write< >off<
[INF][ALL][00:motionplus] util_parms_add: Parsed: >camera_add< >off<
[INF][ALL][00:motionplus] util_parms_add: Parsed: >camera_delete< >off<
[INF][ALL][00:motionplus] util_parms_add: Parsed: >config< >off<
[INF][ALL][00:motionplus] util_parms_add: Parsed: >ptz< >off<
[INF][ALL][00:motionplus] util_parms_add: Parsed: >movies< >on<
[INF][ALL][00:motionplus] util_parms_add: Parsed: >action_user< >off<
[DBG][STR][00:motionplus] webu_mhd_features_basic: Basic authentication: available
[DBG][STR][00:motionplus] webu_mhd_features_digest: Digest authentication: available
[DBG][STR][00:motionplus] webu_mhd_features_ipv6: IPV6: available
[DBG][STR][00:motionplus] webu_mhd_features_tls: SSL/TLS: available
[NTC][STR][00:motionplus] webu_init_webcontrol: Started webcontrol on port 8080
[NTC][ENC][00:motionplus] motpls_av_init: libavcodec version 58.134.100
[NTC][ENC][00:motionplus] motpls_av_init: libavformat version 58.76.100
[NTC][ALL][00:motionplus] main: Motionplus pid: 250790
Mr-Dave commented
If no camera file is specified, Motionplus waits for a camera to be added via the webcontrol. It looks like you just need to specify a camera configuration file. (i.e. There must be a motionplus.conf file AND a camera.conf file)
Lemmiwinks commented
Ah okay thanks, that fixed it! Somehow that was not clear to me from the docs.