Skip to main content

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

  1. 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>
  1. Build Docker image:
$ docker build -t rtspwebviewer docker
  1. 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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page