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
-
Robustness
- configurable number of frames to allow dropped
- configure time to retry creating a new connection
Client
Client(rtsp_server_uri, drop_frame_limit=15, retry_connection=TRUE, verbose = TRUE)
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://...',drop_frame_limit=10) as client:
_image = client.read()
while True:
process_image(_image)
_image = client.read()
Verbose mode
In [1]: import rtsp
In [2]: client = rtsp.Client()
Connected to RTSP video source rtsp://192.168.1.3/ufirststream/track1.
In [3]: client.preview()
In [4]: client.close()
Dropped RTSP connection.
Received signal to stop.
In [5]: client.open()
Connected to RTSP video source rtsp://192.168.1.3/ufirststream/track1.
In [6]: client.read().show()
Connected to RTSP video source rtsp://192.168.1.3/ufirststream/track1.
In [7]: client.close()
Dropped RTSP connection.
Received signal to stop.
Roadmap:
- v1.0.0 - basic function relying on OpenCV or ffmpeg
- v2.0.0 - lightweight native-Python implementation rtsp client functions
- live stream reading & buffer
- on-demand frame retrieval
- v2.1.0 - native Python rtsp server functions
Metadata
Release files for rtsp 1.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rtsp-1.1.3.tar.gz | 4.3 kB | Without provenance | Details for rtsp-1.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rtsp-1.1.3-py3-none-any.whl | Python 3 | none | any | Details for rtsp-1.1.3-py3-none-any.whl |
Total release size: 9.9 kB
Release files / rtsp-1.1.3.tar.gz
| Download URL | rtsp-1.1.3.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f9c9e3e9bce95a2bc403fd74fb2cbc7512e7f99b283d614cae4ca54c60dd9ce5
|
|
BLAKE2b-256 checksum How to use checksums |
83b5e852c6c35678ae422054e9e7a9f928a59cd7a80eaf18923355675ed1bd8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.8 CPython/2.7.10
|
Release files / rtsp-1.1.3-py3-none-any.whl
| Download URL | rtsp-1.1.3-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
843a6e101ab9879443dba9331d850559bfce69571c773135f951997a1bb05960
|
|
BLAKE2b-256 checksum How to use checksums |
b9f32aa91f9022293f5e77b47e98a5108c1d5dbf7ce0f85f5440e09d36c38d8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.8 CPython/2.7.10
|
Security for rtsp 1.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.