https://github.com/saladlam/netty-mjpeg-demo-server
A motion JPEG stream http server which is made by using Project Reactor framework.
- Project Reactor Core 3.6.X
- Reactor netty 1.1.X
- netty 4.1.X
- Java SE Development Kit 17 or above
- Internet connection
- Common internet browser
Apache Maven wrapper is included, no addition package manager is necessary.
mvnw package
java -jar target\netty-mjpeg-demo-server-0.1.jar
This server is bind on TCP port 8080 of all interface.
# To get a single frame
http://localhost:8080/mjpg/frame.jpg
# To get a video stream in 5Hz
http://localhost:8080/mjpg/video.mjpg
- Frame generation cannot faster than 13Hz.
- Don't know why there is a constant read/write operation (around 1.5 MB/s) to hard disk when server started.
- Memory used of server increases quickly if a slow connection is established.
The background test card is downloaded from http://www.channel6.dk/mainsite/EN/Page421.html.