Web server & UI for v4l2rtspserver
The civetweb HTTP server give access to the Video4Linux interface, web interface is using VueJS, RTSP server is using project v4l2rtspserver
Dependencies:
- npm
Build Instructions:
cmake . && make
./v4l2web [-v[v]] [-P httpport] [-c sslkeycert] [-R rtspport] [-f format] [-G width x height [x fps]] [device]
-v : verbose
-v v : very verbose
-c sslkeycert : path to private key and certificate for HTTPS
-P port : server port (default 8080)
-p path : server root path (default webroot)
-R port : RTSP server port (default 8554)
-f format : V4L2 capture using format
-G <w>x<h>[x<f>] : V4L2 capture geometry (default 640x480x25)
-r : V4L2 capture using memory mapped buffers (default use read interface)
-w : V4L2 capture using write interface (default use memory mapped buffers)
device : V4L2 capture device (default /dev/video0)
You can start the application using the docker image :
docker run -p 8080:8080 -it mpromonet/v4l2camera
You can expose V4L2 devices from your host using :
docker run --device=/dev/video0 -p 8080:8080 -it mpromonet/v4l2camera
The container entry point is the v4l2web application, then you can :
-
get the help using :
docker run -it mpromonet/v4l2camera -h
-
run the container specifying some paramters :
docker run --device=/dev/video0 -p 8080:8080 -it mpromonet/v4l2camera -G 800x600x25