Jump to content
  • 0
atux_null

rpi with pi cam and usb cam

Question

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?

 

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

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

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×