Skip to main content

Simple web viewer for RTSP streams.

Project description

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 rtspwebviewer.run -u <rtsp_address> -a <listening_ip_address> -p <port> -t <web_title> -w <password>
    
  • 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' -w fancypassword
    

    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.0 means 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.

  1. Build Docker image:

    $ git clone https://github.com/luiscarlosgph/rtspwebviewer.git
    $ cd rtspwebviewer
    $ docker build -t rtspwebviewer docker
    
  2. Deploy container:

    $ docker run --name rtspwebviewer --net=host rtspwebviewer:latest python -m rtspwebviewer.run -u <rtsp_address> -a <listening_ip_address> -p <port> -t <web_title>
    

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.2.tar.gz (17.3 kB view details)

Uploaded Source

File details

Details for the file rtspwebviewer-0.1.2.tar.gz.

File metadata

  • Download URL: rtspwebviewer-0.1.2.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for rtspwebviewer-0.1.2.tar.gz
Algorithm Hash digest
SHA256 72d8aadd9022bad858029f65b07d9e3c6835391fc056c9e2e24f436a3160c208
MD5 dfa60db29cf5dc9e10b267df4041f4fb
BLAKE2b-256 188fe346e030f12ae63845929bcc237ca510a3ca5dd812b401a19742a77f6002

See more details on using hashes here.

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