Description
Web server that displays an RTSP video stream.
It is not a very efficient solution in terms of video transmission, but you will be able to see the video stream from all devices (Windows, Linux, Mac, iPhone, Android).
Audio is not supported.
Use case
You have a security camera that streams in RTSP (e.g. Foscam) and want to make the video accessible via web.
Install with pip
$ pip install rtspwebviewer --user
Install from source
$ git clone https://github.com/luiscarlosgph/rtspwebviewer.git
$ cd rtspwebviewer
$ python3 setup.py install
Run
-
Syntax:
$ python -m rtspwebviewer.run -a <listening_ip_address> -p <port> -t <web_title> -w <password> -u <rtsp_address>
You can specify up to four RTSP addresses, e.g.
-u <rtsp_address> <rtsp_address> <rtsp_address> <rtsp_address> -
Example:
$ python -m rtspwebviewer.run -a 0.0.0.0 -p 7654 -t 'RTSP Web Viewer' -w fancypassword -u 'rtsp://user:pass@127.0.0.1:8669/unicast'
In this case, you should access http://127.0.0.1:7654/fancypassword to see the website displaying the video stream.
The IP address
0.0.0.0means that the web server will listen in all your network interfaces.The password parameter is optional, if you do not specify one, you should access http://127.0.0.1:7654 to see the video.
Run Docker container
If you do not have Docker installed, you have an install guide here.
-
Build Docker image:
$ git clone https://github.com/luiscarlosgph/rtspwebviewer.git $ cd rtspwebviewer $ docker build -t rtspwebviewer docker
-
Deploy container:
$ docker run -it --name rtspwebviewer --net=host --restart=always rtspwebviewer:latest python -m rtspwebviewer.run -a <listening_address> -p <listening_port> -t <web_title> -w <web_password> -u <rtsp_address> &
Access the camera view in
http://<ip>:<port>/<web_password>If you do not know what to put on
<listening_address>, use0.0.0.0(i.e. listen in all network interfaces).A password is not necessary.
Metadata
Release files for rtspwebviewer 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rtspwebviewer-0.1.3.tar.gz | 17.7 kB | Without provenance | Details for rtspwebviewer-0.1.3.tar.gz |
Release files / rtspwebviewer-0.1.3.tar.gz
| Download URL | rtspwebviewer-0.1.3.tar.gz |
|---|---|
| Size | 17.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9cb2d7ae4fcb084e62f94ea143e3676fe3fdcea5c813a16a3c3b8b1d6cf2d13
|
|
BLAKE2b-256 checksum How to use checksums |
9d00dc7c35f46b2efb4457f23634199687457c2b645a64e31473270a25355b93
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.1
|
Security for rtspwebviewer 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.