ffmpeg wrapper for RTSP client
Project description
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)
Project details
Release history Release notifications | RSS feed
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.3.tar.gz
(3.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
rtsp-1.0.3-py3-none-any.whl
(3.3 kB
view details)
File details
Details for the file rtsp-1.0.3.tar.gz.
File metadata
- Download URL: rtsp-1.0.3.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ed668d213557f6a166ef4f085fd403562d79d3b399e71c449856f8b2d21ad69
|
|
| MD5 |
3ad20cf7e3b2c1aa89eabbe8018601f8
|
|
| BLAKE2b-256 |
4973c4d2d6c3623d54f8c522cb1941d74939527970d461bcfbf5ffcdc7346ac3
|
File details
Details for the file rtsp-1.0.3-py3-none-any.whl.
File metadata
- Download URL: rtsp-1.0.3-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
635e1728d0d96737d60a71089bd19be015f434c65c4627c0a8b0869d74137ce2
|
|
| MD5 |
0364c3d457c84079096611ddcf04978f
|
|
| BLAKE2b-256 |
3f1d77a058a7717b5d68c6d9faf04c8a7e405a9b82f89b9d4932ba81256281fb
|