Motion live stream via browser

If wanting to use motion as a live camera via browser, it is easy to do by making a html-file like

the file in this package

See also Set Motion as e-mailing Security Camera

You can do that using motion, when you add multible cameras into /etc/motion/motion.conf

# Remember: If you have more than one camera you must have one
# thread file for each camera. E.g. 2 cameras requires 3 files:
# This motion.conf file AND thread1.conf and thread2.conf.
# Only put the options that are unique to each camera in the
# thread config files.
; thread /usr/local/etc/thread1.conf
; thread /usr/local/etc/thread2.conf
; thread /usr/local/etc/thread3.conf
; thread /usr/local/etc/thread4.conf

An example a part of thread1.conf

###########################################################
# Capture device options
############################################################

# Videodevice to be used for capturing (default /dev/video0)
# for FreeBSD default is /dev/bktr0
videodevice /dev/video0

############################################################
# Live Webcam Server
############################################################

# The mini-http server listens to this port for requests (default: 0 = disabled)
webcam_port 8081

And when you have set all thread1.confs, you can make a html-file and see what cameras see via browser. An example about the html-file.

 

multible_cameras.html.tar