Skip to main content

RTSP Package

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

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)

Metadata

Release files for rtsp 1.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rtsp 1.0.6
File Size Uploaded
rtsp-1.0.6.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rtsp 1.0.6
File Interpreter ABI Platform
rtsp-1.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 7.2 kB

Release files / rtsp-1.0.6.tar.gz

Download URL rtsp-1.0.6.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7a3d8f12738a2202dc985348d910e95ded76797f8a8989b5d87635e0bbca6f1b
BLAKE2b-256 checksum
How to use checksums
3766ac5ec8b6b536a3194c572adc2465e2a74e2da92ba87872e1ecae526888ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / rtsp-1.0.6-py3-none-any.whl

Download URL rtsp-1.0.6-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b93f03c251b362803107dc222035b7d6d10105f8eb5c837ef09b68d4ec4fafa4
BLAKE2b-256 checksum
How to use checksums
a50d488e7ff389979e55138c7cfc45f349490e4eea8481f6b972cff003996cf8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.1.10

2 release files

1.1.9

2 release files

1.1.8

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.11

2 release files

1.0.10

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

This release

1.0.6 This release

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page