Send Motion-user mailing list submissions to motion-user@lists.sourceforge.net
To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/motion-user or, via email, send a message with subject or body 'help' to motion-user-requ...@lists.sourceforge.net You can reach the person managing the list at motion-user-ow...@lists.sourceforge.net When replying, please edit your Subject line so it is more specific than "Re: Contents of Motion-user digest..." Today's Topics: 1. unable to open 2nd camera (John Tuxies) 2. Re: unable to open 2nd camera (tosiara) 3. Re: unable to open 2nd camera (John Tuxies) ---------------------------------------------------------------------- Message: 1 Date: Wed, 16 Jan 2019 10:13:35 +0200 From: John Tuxies <atuxn...@gmail.com> To: motion-user@lists.sourceforge.net Subject: [Motion-user] unable to open 2nd camera Message-ID: <CACoLBwX1oui9_s40=cTYGF=SByS048K-rCF3KmmyvcN=igh...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" Hi all. I have 2 raspberry pi's and i have motion in both of them. One has only the onboard camera and the other a usb camera (Microsoft lifecam HD3000). It works fine for more than a year. i can see the webpage of them in 8081 and have the stream. Now i need to remove one of the raspberry pi's and have only one with 2 cameras(onboard and usb). i have followed different tutorials and created 2 files in /etc/motion/ folder and changed the motion.conf file accordingly to include the 2 cameras. When i fire up the browser i can see the stream in first camera (http://IP:8081) but i cannot see the second(http:///IP:8082), as it states unable to open camera. Also when i open the webcontrol page( http://IP:8080) i see 3 instances. The first two are identical and it shows camera1 and the 3rd is the camera2. Here are the config of motion.conf *daemon onprocess_id_file /var/run/motion/motion.pidsetup_mode offlogfile /var/log/motion/motion.loglog_level 6log_type allv4l2_palette 17input -1norm 0frequency 0power_line_frequency -1rotate 0width 640height 480framerate 80minimum_frame_time 0netcam_keepalive offnetcam_tolerant_check offrtsp_uses_tcp onauto_brightness offbrightness 0contrast 0saturation 0hue 0roundrobin_frames 1roundrobin_skip 1switchfilter offthreshold 2500threshold_tune offnoise_level 32noise_tune ondespeckle_filter EedDlsmart_mask_speed 0lightswitch 0minimum_motion_frames 1pre_capture 5post_capture 5event_gap 60max_movie_time 0emulate_motion offoutput_pictures onoutput_debug_pictures offquality 75picture_type jpegffmpeg_output_movies offffmpeg_output_debug_movies offffmpeg_timelapse 0ffmpeg_timelapse_mode dailyffmpeg_bps 400000ffmpeg_variable_bitrate 0ffmpeg_video_codec mpeg4ffmpeg_duplicate_frames trueuse_extpipe offsnapshot_interval 0locate_motion_mode offlocate_motion_style boxtext_right %d-%m-%Y\n%T-%q text_left rpi0w_CAMERA %ttext_changes offtext_event %Y%m%d%H%M%Stext_double ontarget_dir /home/pi/webcam/logsnapshot_filename %v-%Y%m%d%H%M%S-snapshotpicture_filename %Y_%m_%d/%v-%d%m%Y_%H%M%S-%qmovie_filename %Y_%m_%d/%v-%d%m%Y%_H%M%S-%qtimelapse_filename %d%m%Y-timelapseipv6_enabled offstream_quality 50stream_motion offstream_maxrate 1stream_localhost offstream_limit 50stream_auth_method 0webcontrol_port 8080webcontrol_localhost offwebcontrol_html_output ontrack_type 0track_auto offtrack_iomojo_id 0track_step_angle_x 10track_step_angle_y 10track_move_wait 10track_speed 255track_stepsize 40quiet oncamera /etc/motion/camera1.confcamera /etc/motion/camera2.conf* *#################################* here is the config of camera1.conf *camera_id = 1videodevice /dev/video0input -1text_left CAMERA 1target_dir /home/pi/webcam/camera1picture_filename CAM1_%v-%Y%m%d%H%M%S-%qstream_port 8081* *#################################* here is the config of camera2.conf *camera_id = 2videodevice /dev/video1input 1text_left CAMERA 2target_dir /home/pi/webcam/camera2picture_filename CAM2_%v-%Y%m%d%H%M%S-%qstream_port 8082* I would appreciate any help available to make it work please. -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 2 Date: Wed, 16 Jan 2019 10:38:35 +0200 From: tosiara <tosi...@gmail.com> To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] unable to open 2nd camera Message-ID: <CACHTdwTccbZqC5Wp3CiDkXCPYdZy9N=1h_cdaswgg-d219v...@mail.gmail.com> Content-Type: text/plain; charset="UTF-8" Which motion version? On Wed, Jan 16, 2019 at 10:12 AM John Tuxies <atuxn...@gmail.com> wrote: > > Hi all. I have 2 raspberry pi's and i have motion in both of them. One has > only the onboard camera and the other a usb camera (Microsoft lifecam > HD3000). It works fine for more than a year. i can see the webpage of them in > 8081 and have the stream. > Now i need to remove one of the raspberry pi's and have only one with 2 > cameras(onboard and usb). i have followed different tutorials and created 2 > files in /etc/motion/ folder and changed the motion.conf file accordingly to > include the 2 cameras. When i fire up the browser i can see the stream in > first camera (http://IP:8081) but i cannot see the second(http:///IP:8082), > as it states unable to open camera. Also when i open the webcontrol page( > http://IP:8080) i see 3 instances. The first two are identical and it shows > camera1 and the 3rd is the camera2. > Here are the config of 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 640 > height 480 > 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 2500 > 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 on > target_dir /home/pi/webcam/log > 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_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.conf > camera /etc/motion/camera2.conf > > > ################################# > here is the config of camera1.conf > > camera_id = 1 > videodevice /dev/video0 > input -1 > text_left CAMERA 1 > target_dir /home/pi/webcam/camera1 > picture_filename CAM1_%v-%Y%m%d%H%M%S-%q > stream_port 8081 > > ################################# > here is the config of camera2.conf > camera_id = 2 > videodevice /dev/video1 > input 1 > text_left CAMERA 2 > target_dir /home/pi/webcam/camera2 > picture_filename CAM2_%v-%Y%m%d%H%M%S-%q > stream_port 8082 > > > > I would appreciate any help available to make it work please. > _______________________________________________ > Motion-user mailing list > Motion-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/motion-user > https://motion-project.github.io/ > > Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user ------------------------------ Message: 3 Date: Wed, 16 Jan 2019 12:13:11 +0200 From: John Tuxies <atuxn...@gmail.com> To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] unable to open 2nd camera Message-ID: <CACoLBwXu9=rp0c3R1a0myKDvKEmMV=eu7o65lkome4fts4x...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" i am using motion Version 4.0, On Wed, Jan 16, 2019 at 10:39 AM tosiara <tosi...@gmail.com> wrote: > Which motion version? > > On Wed, Jan 16, 2019 at 10:12 AM John Tuxies <atuxn...@gmail.com> wrote: > > > > Hi all. I have 2 raspberry pi's and i have motion in both of them. One > has only the onboard camera and the other a usb camera (Microsoft lifecam > HD3000). It works fine for more than a year. i can see the webpage of them > in 8081 and have the stream. > > Now i need to remove one of the raspberry pi's and have only one with 2 > cameras(onboard and usb). i have followed different tutorials and created 2 > files in /etc/motion/ folder and changed the motion.conf file accordingly > to include the 2 cameras. When i fire up the browser i can see the stream > in first camera (http://IP:8081) but i cannot see the second(http:///IP:8082), > as it states unable to open camera. Also when i open the webcontrol page( > http://IP:8080) i see 3 instances. The first two are identical and it > shows camera1 and the 3rd is the camera2. > > Here are the config of 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 640 > > height 480 > > 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 2500 > > 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 on > > target_dir /home/pi/webcam/log > > 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_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.conf > > camera /etc/motion/camera2.conf > > > > > > ################################# > > here is the config of camera1.conf > > > > camera_id = 1 > > videodevice /dev/video0 > > input -1 > > text_left CAMERA 1 > > target_dir /home/pi/webcam/camera1 > > picture_filename CAM1_%v-%Y%m%d%H%M%S-%q > > stream_port 8081 > > > > ################################# > > here is the config of camera2.conf > > camera_id = 2 > > videodevice /dev/video1 > > input 1 > > text_left CAMERA 2 > > target_dir /home/pi/webcam/camera2 > > picture_filename CAM2_%v-%Y%m%d%H%M%S-%q > > stream_port 8082 > > > > > > > > I would appreciate any help available to make it work please. > > _______________________________________________ > > Motion-user mailing list > > Motion-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/motion-user > > https://motion-project.github.io/ > > > > Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user > > > _______________________________________________ > Motion-user mailing list > Motion-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/motion-user > https://motion-project.github.io/ > > Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user > -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ ------------------------------ Subject: Digest Footer _______________________________________________ Motion-user mailing list Motion-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/motion-user ------------------------------ End of Motion-user Digest, Vol 151, Issue 24 ********************************************