Jump to content

atux_null

Members
  • Content Count

    7
  • Joined

  • Last visited

  • Days Won

    1

atux_null last won the day on January 12

atux_null had the most liked content!

Community Reputation

1 Neutral
  1. atux_null

    rpi with pi cam and usb cam

    i failed to see the second camera. I have motion working working with the onboard camera and i added a usb camera (Microsoft lifecam HD3000) and it is recongised from the system since i can manually see with the software fswebcam. /dev/video0 is the onboard camera /dev/video1 is the usb camera i have two files (Camera 1 and camera 2). Motion.conf: daemon on process_id_file /var/run/motion/motion.pid setup_mode off logfile /var/log/motion/motion.log log_level 6 log_type all v4l2_palette 17 input -1 norm 0 frequency 0 power_line_frequency -1 rotate 0 width 1280 height 960 framerate 80 minimum_frame_time 0 netcam_keepalive off netcam_tolerant_check off rtsp_uses_tcp on auto_brightness off brightness 0 contrast 0 saturation 0 hue 0 roundrobin_frames 1 roundrobin_skip 1 switchfilter off threshold 1500 threshold_tune off noise_level 32 noise_tune on despeckle_filter EedDl smart_mask_speed 0 lightswitch 0 minimum_motion_frames 1 pre_capture 5 post_capture 5 event_gap 60 max_movie_time 0 emulate_motion off output_pictures on output_debug_pictures off quality 75 picture_type jpeg ffmpeg_output_movies off ffmpeg_output_debug_movies off ffmpeg_timelapse 0 ffmpeg_timelapse_mode daily ffmpeg_bps 400000 ffmpeg_variable_bitrate 0 ffmpeg_video_codec mpeg4 ffmpeg_duplicate_frames true use_extpipe off snapshot_interval 0 locate_motion_mode off locate_motion_style box text_right %d-%m-%Y\n%T-%q text_left rpi0w_CAMERA %t text_changes off text_event %Y%m%d%H%M%S text_double off target_dir /home/pi/camera_images snapshot_filename %v-%Y%m%d%H%M%S-snapshot picture_filename %Y_%m_%d/%v-%d%m%Y_%H%M%S-%q movie_filename %Y_%m_%d/%v-%d%m%Y%_H%M%S-%q timelapse_filename %d%m%Y-timelapse ipv6_enabled off stream_port 8081 stream_quality 50 stream_motion off stream_maxrate 1 stream_localhost off stream_limit 50 stream_auth_method 0 webcontrol_port 8080 webcontrol_localhost off webcontrol_html_output on track_type 0 track_auto off track_iomojo_id 0 track_step_angle_x 10 track_step_angle_y 10 track_move_wait 10 track_speed 255 track_stepsize 40 quiet on camera /etc/motion/camera1-dist.conf camera /etc/motion/camera2-dist.conf ################################################# camera1-dist.conf camera_id = 1 videodevice /dev/video0 input -1 text_left CAMERA 1 picture_filename CAM1_%v-%Y%m%d%H%M%S-%q stream_port 8081 ################################################# camera2-dist.conf camera_id = 2 videodevice /dev/video1 input 1 text_left CAMERA 2 picture_filename CAM2_%v-%Y%m%d%H%M%S-%q stream_port 8082 ################################################### if i go to http://IP:8080 i see twice the onboard camera and the usb it says unable to open camera https://ibb.co/nfgNyPB
  2. atux_null

    rpi with pi cam and usb cam

    i do have a RPI with rpi cam and by using the software motion it can motion(dah) detect movement. It records it as video and still images. Also it provides in http://IP_ADDRESS:8081 a stream. I would like to add another one or two usb cameras (Microsoft lifecam HD 3000) and motion detect from all three cameras, as well present in a single webpage the stream of each camera in a tile. Has anyone got any ideas on how to create it, please?
  3. atux_null

    RPI camera motion alerts

    Just finished the setup of a new Raspbian install with motion. In order to make it work, as user i created a folder and gave it 777 rights. then in motion.conf in target_dir i pointed to this directory. It worked after clean install. Thanks a lot for your time.
  4. atux_null

    RPI camera motion alerts

    i am afraid even that did not make it to work. i have the folder /home/pi/camera_images and the rights are: pi@rpi0cam:~ $ ls -la | grep camera_images drwxrwxr-x 2 pi motion 4096 Jan 3 09:06 camera_images pi@rpi0cam:~ $ and it is configured in /etc/motion/motion.conf as: # Target directory for pictures, snapshots and movies target_dir /home/pi/camera_images and there are not any logs available to find out the error: pi@rpi0cam:/var/log/motion $ ls pi@rpi0cam:/var/log/motion $ any ideas please?
  5. atux_null

    RPI camera motion alerts

    At the moment the snapshots/videos are not saved anywhere for some strange reason
  6. atux_null

    RPI camera motion alerts

    Thanks for your reply. i did a clean install and wget the new version that you mentioned. The camera feed in the browser seems to work better now. i have an issue with the snapshots/videos recording (motion detection). I need them to be stored in the /home/pi/camera_images folder and create a folder for different day and send me email alert when there is a motion detection to my email. Here is my config: # Rename this distribution example file to motion.conf # # This config file was generated by motion 4.2.1 # Documentation: /usr/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 control configuration parameters ############################################################ # Start in daemon (background) mode and release terminal. daemon on # Start in Setup-Mode, daemon disabled. setup_mode off # File to store the process ID. ; pid_file value # File to write logs messages into. If not defined stderr and syslog is used. ; log_file value # Level of log messages [1..9] (EMG, ALR, CRT, ERR, WRN, NTC, INF, DBG, ALL). log_level 6 # Target directory for pictures, snapshots and movies target_dir /home/pi/camera_images/ # Video device (e.g. /dev/video0) to be used for capturing. videodevice /dev/video0 # Parameters to control video device. See motion_guide.html ; vid_control_params value # The full URL of the network camera stream. ; netcam_url value # Name of mmal camera (e.g. vc.ril.camera for pi camera). ; mmalcam_name value # Camera control parameters (see raspivid/raspistill tool documentation) ; mmalcam_control_params value ############################################################ # Image Processing configuration parameters ############################################################ # Image width in pixels. #width 640 width 1024 # Image height in pixels. #height 480 height 768 # Maximum number of frames to be captured per second. framerate 24 # Text to be overlayed in the lower left corner of images text_left CAMERA1 # Text to be overlayed in the lower right corner of images. text_right %d-%m-%Y\n%T-%q ############################################################ # Motion detection configuration parameters ############################################################ # Always save pictures and movies even if there was no motion. emulate_motion off # Threshold for number of changed pixels that triggers motion. #threshold 1500 threshold 30000 # Noise threshold for the motion detection. ; noise_level 32 # Despeckle the image using (E/e)rode or (D/d)ilate or (l)abel. despeckle_filter EedDl # Number of images that must contain motion to trigger an event. minimum_motion_frames 1 # Gap in seconds of no motion detected that triggers the end of an event. event_gap 60 # The number of pre-captured (buffered) pictures from before motion. pre_capture 3 # Number of frames to capture after motion is no longer detected. post_capture 0 ############################################################ # Script execution configuration parameters ############################################################ # Command to be executed when an event starts. ; on_event_start value # Command to be executed when an event ends. ; on_event_end value # Command to be executed when a movie file is closed. ; on_movie_end value ############################################################ # Picture output configuration parameters ############################################################ # Output pictures when motion is detected picture_output off # File name(without extension) for pictures relative to target directory picture_filename %Y%m%d%H%M%S-%q ############################################################ # Movie output configuration parameters ############################################################ # Create movies of motion events. movie_output on # Maximum length of movie in seconds. movie_max_time 60 # The encoding quality of the movie. (0=use bitrate. 1=worst quality, 100=best) movie_quality 45 # Container/Codec to used for the movie. See motion_guide.html movie_codec mkv # File name(without extension) for movies relative to target directory movie_filename %t-%v-%Y%m%d%H%M%S ############################################################ # Webcontrol configuration parameters ############################################################ # Port number used for the webcontrol. webcontrol_port 8080 # Restrict webcontrol connections to the localhost. webcontrol_localhost on # Type of configuration options to allow via the webcontrol. webcontrol_parms 0 ############################################################ # Live stream configuration parameters ############################################################ # The port number for the live stream. stream_port 8081 # Restrict stream connections to the localhost. stream_localhost off ffmpeg_output_movies off ############################################################## # Camera config files - One for each camera. ############################################################## ; camera /etc/motion/camera1.conf ; camera /etc/motion/camera2.conf ; camera /etc/motion/camera3.conf ; camera /etc/motion/camera4.conf ############################################################## # Directory to read '.conf' files for cameras. ############################################################## ; camera_dir /etc/motion/conf.d i would appreciate any help available
  7. atux_null

    RPI camera motion alerts

    hi. i am trying to setup a rpi camera with motion to monitor my home office when away. i did follow the instructions from the webpage and i can see in a browser the live image and once motion detected then snapshots are taken. So far so good. I would like to have the images/videos detected to be created one folder per day, so i could find them easily. Also i would like to be able the system send me an alert email once motion detected with an image attached. Currently the system can send images with ssmtp and mpack installed: echo "Hello world email body" | mail -s "Test Subject" recipientname@domain.com i have a problem with the live streaming. It starts OK and i can see it in the browser, but when it detects motion, it stops streaming. The only way to see it again is to reboot.
×