Skip to main content

ffmpeg wrapper for RTSP client

Project description

RTSP Package

        /((((((\\\\
=======((((((((((\\\\\
     ((           \\\\\\\
     ( (*    _/      \\\\\\\
       \    /  \      \\\\\\________________
        |  |   |      </    __             ((\\\\
        o_|   /        ____/ / _______       \ \\\\    \\\\\\\
             |  ._    / __/ __(_-</ _ \       \ \\\\\\\\\\\\\\\\
             | /     /_/  \__/___/ .__/       /    \\\\\\\     \\
     .______/\/     /           /_/           /         \\\
    / __.____/    _/         ________(       /\
   / / / ________/`---------'         \     /  \_
  / /  \ \                             \   \ \_  \
 ( <    \ \                             >  /    \ \
  \/      \\_                          / /       > )
           \_|                        / /       / /
                                    _//       _//
                                   /_|       /_|

RTSP Client. Requires OpenCV-Python

Features

  • fetch a single image as Pillow Image
  • open RTSP stream and poll most recent frame as Pillow Image
  • preview stream in OpenCV

Examples

One-off Retrieval

import rtsp
client = rtsp.Client(rtsp_server_uri = 'rtsp://...')
client.read().show()
client.close()

Stream Preview

import rtsp
with rtsp.Client('rtsp://...') as client:
    client.preview()

Continuous Retrieval

import rtsp

with rtsp.Client(rtsp_server_uri = 'rtsp://...') as client:
    _image = client.read()

    while True:
        process_image(_image)
        _image = client.read()

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

rtsp-1.0.9.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rtsp-1.0.9-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file rtsp-1.0.9.tar.gz.

File metadata

  • Download URL: rtsp-1.0.9.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rtsp-1.0.9.tar.gz
Algorithm Hash digest
SHA256 f89460390aca826ee114aa6d28ae78af4d4b8f516c7feed9f2fbcebeecd8b095
MD5 fa93836afa3e52e5b0ca663f9d3012fe
BLAKE2b-256 e85d5400ea2aa18522b63e6e78d7ab68ecbbf9069e0d6124a29a3ad3d87dfaf9

See more details on using hashes here.

File details

Details for the file rtsp-1.0.9-py3-none-any.whl.

File metadata

  • Download URL: rtsp-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rtsp-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 41883d883ff2916849a4522b0a38aec894ea652761ba3fd4963fc5519efcc9b3
MD5 57673a5334ca355e5babc3f187b80755
BLAKE2b-256 b60f94f930dc8738fc2ca9c6e062c99a758e3e23dd621761952d87c11a5e8dca

See more details on using hashes here.

Supported by

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