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.4.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.4-py3-none-any.whl
(3.3 kB
view details)
File details
Details for the file rtsp-1.0.4.tar.gz.
File metadata
- Download URL: rtsp-1.0.4.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2d61bc15a41984152d22b9e9d7630b16ede806a87f0a59774e244ee9897cb0e
|
|
| MD5 |
993690a7a2244b1ad932c04d36515f5b
|
|
| BLAKE2b-256 |
8889e407494bf2ec361f1acac32826b33b150dec284fe88a94397c1a2ad35bdb
|
File details
Details for the file rtsp-1.0.4-py3-none-any.whl.
File metadata
- Download URL: rtsp-1.0.4-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be08e6be199c9f9a12b4e143cd76b8fe9a01c786af87b4c1bb833db8422c8589
|
|
| MD5 |
fd10da8ce85e8830db47b22e9ec36a54
|
|
| BLAKE2b-256 |
99e10b59b9322220bf5227d3785e214d80320c1855f8a7e06f4bfcbe5cad115e
|