Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
et:distancelab:wiredprogram [2015/05/06 09:17] heikopikneret:distancelab:wiredprogram [2020/07/20 09:00] (current) – external edit 127.0.0.1
Line 67: Line 67:
   end script   end script
  
 +The script for starting a multiple cameras:
 +
 +  description "MJPG-streamer START"
 +  start on runlevel [2345]
 +  stop on runlevel [016]
 +  script
 +  /usr/local/bin/mjpg_streamer -b -i "/usr/local/lib/input_uvc.so -d /dev/video0 -r 1280x720" -o "/usr/local/lib/output_http.so -p 8080 -w /usr/local/www/www/" >> /var/log/mjpg_streamer_upstart.log 2>&1
 +  /bin/sleep 5
 +  /usr/local/bin/mjpg_streamer -b -i "/usr/local/lib/input_uvc.so -d /dev/video1 -r 1280x720" -o "/usr/local/lib/output_http.so -p 8081 -w /usr/local/www/www/" >> /var/log/mjpg_streamer_upstart.log 2>&1
 +  /bin/sleep 5
 +  /usr/local/bin/mjpg_streamer -b -i "/usr/local/lib/input_uvc.so -d /dev/video2 -r 1280x720" -o "/usr/local/lib/output_http.so -p 8082 -w /usr/local/www/www/" >> /var/log/mjpg_streamer_upstart.log 2>&1
 +  /bin/sleep 5
 +  /usr/local/bin/mjpg_streamer -b -i "/usr/local/lib/input_uvc.so -d /dev/video3 -r 1280x720" -o "/usr/local/lib/output_http.so -p 8083 -w /usr/local/www/www/" >> /var/log/mjpg_streamer_upstart.log 2>&1
 +  /bin/sleep 5
 +  end script
      
 The script must be executable: The script must be executable:
Line 78: Line 93:
 Faili sisu: Faili sisu:
  
-#!/bin/sh -e +  #!/bin/sh -e 
-+  
-# rc.local +  # rc.local 
-+  
-# This script is executed at the end of each multiuser runlevel. +  # This script is executed at the end of each multiuser runlevel. 
-# Make sure that the script will "exit 0" on success or any other +  # Make sure that the script will "exit 0" on success or any other 
-# value on error. +  # value on error. 
-+  
-# In order to enable or disable this script just change the execution +  # In order to enable or disable this script just change the execution 
-# bits. +  # bits. 
-+  
-# By default this script does nothing. +  # By default this script does nothing.   
- +  echo "scsi remove-single-device 2 0 0 0" > /proc/scsi/scsi  
-echo "scsi remove-single-device 2 0 0 0" > /proc/scsi/scsi  +  /sbin/rmmod uvcvideo 
- +  /sbin/modprobe uvcvideo 
-/sbin/rmmod uvcvideo +  /bin/sleep 15 
-/sbin/modprobe uvcvideo +  /usr/bin/mjpg_streamer -b -i "input_uvc.so -d /dev/video0 -y" -o "output_http.so -p 8090 -w /home/robot/mjpgs_compiled/mjpg-streamer-r63/www/"
-/bin/sleep 15 +  /bin/sleep 5 
-/usr/bin/mjpg_streamer -b -i "input_uvc.so -d /dev/video0 -y" -o "output_http.so -p 8090 -w /home/robot/mjpgs_compiled/mjpg-streamer-r63/www/"+  /usr/bin/mjpg_streamer -b -i "input_uvc.so -d /dev/video1 -y" -o "output_http.so -p 8091 -w /home/robot/mjpgs_compiled/mjpg-streamer-r63/www/"
-/bin/sleep 5 +  /bin/sleep 5 
-/usr/bin/mjpg_streamer -b -i "input_uvc.so -d /dev/video1 -y" -o "output_http.so -p 8091 -w /home/robot/mjpgs_compiled/mjpg-streamer-r63/www/"+  /usr/bin/mjpg_streamer -b -i "input_uvc.so -d /dev/video2 -y" -o "output_http.so -p 8092 -w /home/robot/mjpgs_compiled/mjpg-streamer-r63/www/"
-/bin/sleep 5 +  exit 0
-/usr/bin/mjpg_streamer -b -i "input_uvc.so -d /dev/video2 -y" -o "output_http.so -p 8092 -w /home/robot/mjpgs_compiled/mjpg-streamer-r63/www/"+
- +
-exit 0+
  
  
-Faili sisu vana ja ilmselt veaga:+Faili sisu enne muutmist ja ilmselt veaga:
  
   #!/bin/sh -e   #!/bin/sh -e
et/distancelab/wiredprogram.1430903834.txt.gz · Last modified: 2020/07/20 09:00 (external edit)
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0