This is a very simple asyncio library for interacting with an RTSP server, with basic RTP/RTCP support.
The intended use case is to provide a pretty low level control of what happens at RTSP connection level, all in python/asyncio.
This library does not provide any decoding capability, it is up to the client to decide what to do with received RTP packets.
One could easily decode using OpenCV or PyAV, or not at all depending on the intended use.
See examples for how to use the lib internals, butfor quick usage:
import asyncio
from aiortsp.rtsp.reader import RTSPReader
async def main():
# Open a reader (which means RTSP connection, then media session)
async with RTSPReader('rtsp://cam/video.sdp') as reader:
# Iterate on RTP packets
async for pkt in reader.iter_packets():
print('PKT', pkt.seq, pkt.pt, len(pkt))
asyncio.run(main())
Release files for aiortsp 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aiortsp-1.4.0.tar.gz | 38.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aiortsp-1.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 71.7 kB
Release files / aiortsp-1.4.0.tar.gz
| Download URL | aiortsp-1.4.0.tar.gz |
|---|---|
| Size | 38.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c2ae08ba78fd9b939a281365fdc323896ae5453c3e2c3c1c3dd43efb120928e
|
|
BLAKE2b-256 checksum How to use checksums |
a5d669fc1d338619b87fe79b0c26e5a3b4dd6766725a483e62467db3daf3f461
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.4
|
Release files / aiortsp-1.4.0-py3-none-any.whl
| Download URL | aiortsp-1.4.0-py3-none-any.whl |
|---|---|
| Size | 33.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
30f0668320e8d417d517701aea3231db844e6bfca2096eb93d6cab5fd1501654
|
|
BLAKE2b-256 checksum How to use checksums |
91e13bf21d6dc515d09d068f5b22a528048ba08b51176b9f93f7f68605c6d8e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.4
|