Java library for handing MJPEG streams - can e.g. display stream from a Webcam as a preview
Maven dependency
<dependency>
<groupId>com.bitplan</groupId>
<artifactId>com.bitplan.mjpegstreamer</artifactId>
<version>0.0.7</version>
</dependency>
Current release at repo1.maven.org
git clone https://github.com/BITPlan/com.bitplan.mjpegstreamer
cd com.bitplan.mjpegstreamer
mvn install
java -jar mjpegstreamer.jar --help
Help
MJpegViewer Version: 0.0.6
github: https://github.com/BITPlan/com.bitplan.mjpegstreamer
usage: java com.bitplan.mjpegstreamer.MJpegViewer
-ac (--autoclose) : auto close
close when stream is finished
-d (--debug) : debug
adds debugging output
-h (--help) : help
show this usage
-o (--overlay) : adds a rectangle overlay
-r (--rotation) N : rotation e.g. 0/90/180/270 degrees
-rto (--readtimeout) N : readtimeout in milliseconds
default is 5000 millisecs
-s (--start) : auto start
start streaming immediately
-t (--title) VAL : title
title to be used
-u (--url) VAL : url
url to be used
-v (--version) : showVersion
show current version if this switch is used
java -jar mjpegstreamer.jar --url http://iris.not.iac.es/axis-cgi/mjpg/video.cgi?resolution=640x480 --start --title "NORDIC Telescope on Observatorio del Roque de Los Muchachos - La Palma"
java -jar mjpegstreamer.jar --url http://87.139.217.70/mjpg/video.mjpg?resolution=640x480 --start --title "Dollnstein/Germany"
see http://www.insecam.org for more publicly accessible test cameras
gphoto2 --capture-movie --stdout | java -jar mjpegstreamer.jar -u - --start --title "Canon EOS preview"
see preview script for more details on how to handle the release of the USB port which might be blocked by the PTPCamera process on MacOSX
git clone https://github.com/BITPlan/com.bitplan.mjpegstreamer
mvn install
to use as a library
mvn clean compile assembly:single
to create a stand alone jar
- 0.0.1: 2013 Internal Project at BITPlan
- 0.0.3: 2016-08-25 Released as Open Source Project
- 0.0.6: 2018-08-03 version number upgrade
- 0.0.7: 2081-08-22 upgrades to Java 8 and uses com.bitplan.pom