Simple web viewer for RTSP streams.
Project description
Description
Web server that displays an RTSP video stream.
Install with pip
$ pip install rtspwebviewer --user
Install from source
$ python3 setup.py install
Run
-
Syntax:
$ python rtspwebviewer.run -u <rtsp_stream> -a <listening_ip_address> -p <port> -t <web_title>
-
Example:
$ python rtspwebviewer.run -u 'rtsp://user:pass@127.0.0.1:8669/unicast' -a 0.0.0.0 -p 7654 -t 'RTSP Web Viewer'
In this case, you would connect to http://127.0.0.1:7654 and you would see a website with the video stream. The IP address
0.0.0.0
means that the web server will listen in all your network interfaces.
Build Docker image
- Configure Docker image, edit docker/Dockerfile and fill it with your RTSP stream and web server information:
# rtspwebviewer config
ENV RWV_RTSP_ADDRESS=<rtsp_address>
ENV RWV_LISTENING_IP=<web_server_listening_ip>
ENV RMV_PORT=<web_server_listening_port>
ENV RMV_TITLE=<website_title>
- Build Docker image:
$ docker build -t rtspwebviewer docker
- Deploy container:
$ docker run --name rtspwebviewer rtspwebviewer:latest /bin/bash -c 'sleep infinity'
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rtspwebviewer-0.1.1.tar.gz
(17.0 kB
view hashes)