Sorry, late to the party, but can't get motion up and running on Trixie 32bit light (have zeros and 2B as cams....).
I tried both install from repo (sudo apt install motion) as well as install from scratch (make, sudo make install), as linked above. Always:
But
gives me a vid.
Details:
and motion.conf in ~ reads:
Tried two different cams...
I tried both install from repo (sudo apt install motion) as well as install from scratch (make, sudo make install), as linked above. Always:
Code:
$ libcamerify motion[NTC][ALL][mo00] process: Processing config file /home/user/motion.conf[ALR][ALL][mo00] camera_add: Camera config file /usr/local/var/lib/motion/camera1.conf not found: No such file or directory[NTC][ALL][mo00] set_log_file: Logging to syslog[NTC][ALL][mo00] mytranslate_init: Language: English[NTC][ALL][mo00] pid_write: Motion pid: 893[NTC][ENC][mo00] av_init: libavcodec version 61.19.101[NTC][ENC][mo00] av_init: libavformat version 61.7.100[NTC][STR][mo00] startup: Starting webcontrol on port 8080[NTC][STR][mo00] start_daemon_port1: Started webcontrol on port 8080[NTC][VID][cl01] start_cam: Opening V4L2 device[NTC][VID][cl01] device_open: Opening video device /dev/video0[0:08:01.939208517] [900] INFO Camera camera_manager.cpp:330 libcamera v0.5.2+99-bfd68f78[0:08:02.046951089] [901] INFO IPAProxy ipa_proxy.cpp:180 Using tuning file /usr/share/libcamera/ipa/rpi/vc4/ov5647.json[0:08:02.061085471] [901] INFO Camera camera_manager.cpp:220 Adding camera '/base/soc/i2c0mux/i2c@1/ov5647@36' for pipeline handler rpi/vc4[0:08:02.061221770] [901] INFO RPI vc4.cpp:440 Registered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media0 and ISP device /dev/media1[ERR][VID][cl01] device_open: Not a V4L2 device?[ERR][VID][cl01] start_cam: V4L2 device failed to open[NTC][VID][cl01] stop_cam: Closing video device /dev/video0[ERR][ALL][cl01] init_cam_start: Failed to start camera.[NTC][ALL][cl01] ring_resize: Resizing buffer to 4 items[ERR][ALL][cl01] init_firstimage: Unable to open cameraCode:
rpicam-vid --height 480 --width 640 -t 2000 -o test.h264Details:
Code:
libcamerify v4l2-ctl --list-devices[0:18:43.662932505] [919] INFO Camera camera_manager.cpp:330 libcamera v0.5.2+99-bfd68f78[0:18:43.716326220] [922] INFO IPAProxy ipa_proxy.cpp:180 Using tuning file /usr/share/libcamera/ipa/rpi/vc4/ov5647.json[0:18:43.730284860] [922] INFO Camera camera_manager.cpp:220 Adding camera '/base/soc/i2c0mux/i2c@1/ov5647@36' for pipeline handler rpi/vc4[0:18:43.730452098] [922] INFO RPI vc4.cpp:440 Registered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media0 and ISP device /dev/media1unicam (platform:3f801000.csi): /dev/media0bcm2835-codec-decode (platform:bcm2835-codec): /dev/video10 /dev/video11 /dev/video12 /dev/video18 /dev/video31bcm2835-isp (platform:bcm2835-isp): /dev/video13 /dev/video20 /dev/video21 /dev/video22 /dev/video23 /dev/media1 /dev/media2bcm2835-codec (vchiq:bcm2835-codec): /dev/media3Code:
$ rpicam-hello --list-camerasAvailable cameras-----------------0 : ov5647 [2592x1944 10-bit GBRG] (/base/soc/i2c0mux/i2c@1/ov5647@36) Modes: 'SGBRG10_CSI2P' : 640x480 [58.92 fps - (16, 0)/2560x1920 crop] 1296x972 [46.34 fps - (0, 0)/2592x1944 crop] 1920x1080 [32.81 fps - (348, 434)/1928x1080 crop] 2592x1944 [15.63 fps - (0, 0)/2592x1944 crop]Code:
; This config file was generated by motion 5.0.0-git-20251009-8bc2260; Documentation: /usr/local/share/doc/motion/motion_guide.html;; This file contains only the basic configuration options to get a; system working. There are many more options available. Please; consult the documentation for the complete list of all options.;;*************************************************;***** System;*************************************************daemon off;log_filelog_level 6log_type ALL;*************************************************;***** Camera;*************************************************device_namedevice_idtarget_dir /usr/local/var/lib/motion/media;*************************************************;***** Source;*************************************************v4l2_device /dev/video0;netcam_url;*************************************************;***** Image;*************************************************width 640height 480framerate 15;*************************************************;***** Overlays;*************************************************text_right %Y-%m-%d\n%T;*************************************************;***** Method;*************************************************emulate_motion offthreshold 1500;*************************************************;***** Masks;*************************************************noise_level 32despeckle_filter EedDl;*************************************************;***** Detection;*************************************************minimum_motion_frames 1event_gap 60pre_capture 3post_capture 10;*************************************************;***** Scripts;*************************************************on_event_starton_event_end;*************************************************;***** Picture;*************************************************picture_output offpicture_filename %v-%Y%m%d%H%M%S-%q;*************************************************;***** Movie;*************************************************movie_output offmovie_max_time 120movie_quality 60movie_container mkvmovie_filename %v-%{movienbr}-%Y%m%d%H%M%S;*************************************************;***** Web Control;*************************************************webcontrol_port 8080webcontrol_localhost offwebcontrol_parms 2;*************************************************;***** Web Stream;*************************************************stream_preview_scale 100stream_preview_method combined;*************************************************;***** Database;*************************************************#database_type sqlite3#database_dbname /usr/local/var/lib/motion/motion.db#database_host localhost#database_port 0#database_user#database_password#database_busy_timeout 0;*************************************************; Device config files - One for each device.;*************************************************camera /usr/local/var/lib/motion/camera1.conf; camera /usr/local/var/lib/motion/camera2.conf; camera /usr/local/var/lib/motion/camera3.conf; sound /usr/local/var/lib/motion/sound1.conf;*************************************************; Directory to read '.conf' files for devices.;*************************************************; config_dir /usr/local/var/lib/motion/conf.dStatistics: Posted by pi-anazazi — Tue Oct 28, 2025 3:54 pm