Skip to main content

ffmpeg wrapper for RTSP client

Project description

RTSP Package

RTSP Client. Requires ffmpeg system call for RTSP support and Pillow for parsing and conversion.

Features

  • fetch a single image as Pillow Image

Examples

One-off Retrieval

import rtsp
image = rtsp.fetch_image('rtsp://1.0.0.1/StreamId=1')

Continuous Retrieval

import rtsp
import time

collector = rtsp.BackgroundListener()

## image_1 may be None but has no delay
image_1 = collector.current_image

## image_2 will not be None but may have a delay
image_2 = collector.blocking_get_new_image()

## image_2 and image_3 will not be the same
image_3 = collector.blocking_get_new_image(old_image = image_2)

collector.shutdown(verbose=False)

Continuous Retrieval Context Manager

import rtsp
import time
with rtsp.BackgroundListener() as collector:
    _image = collector.blocking_get_new_image()

    while True:
        process_image(_image)
        _image = collector.blocking_get_new_image(old_image = _image)

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.1.tar.gz (3.1 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.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for rtsp-1.0.1.tar.gz
Algorithm Hash digest
SHA256 8ac13677b4e842c74b40cc396ae05bed69cf2484a0d9d60949fe915b6f28714c
MD5 b8383bd611b9e9f6013a7f2f5fffda08
BLAKE2b-256 a14e8878dcd17807b6aae0c427a18150b3ac0cc930096b9fb88b967a58a8589d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for rtsp-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 480c697d4db0e490890dafd0ee98e1ce08baf43a084a284a96af7eebd26268b9
MD5 f36b3e7ffa43659f5f17528edcc9c001
BLAKE2b-256 1394e581f9f5eb698daa87b60d3f14408021d68a145c1a47cdf2f2a22aaa5739

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