An asyncio-based RTSP library
Project description
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())
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
Built Distribution
File details
Details for the file aiortsp-1.4.0.tar.gz
.
File metadata
- Download URL: aiortsp-1.4.0.tar.gz
- Upload date:
- Size: 38.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c2ae08ba78fd9b939a281365fdc323896ae5453c3e2c3c1c3dd43efb120928e |
|
MD5 | 8a198702622a9c2bbd783ffacfb470f0 |
|
BLAKE2b-256 | a5d669fc1d338619b87fe79b0c26e5a3b4dd6766725a483e62467db3daf3f461 |
File details
Details for the file aiortsp-1.4.0-py3-none-any.whl
.
File metadata
- Download URL: aiortsp-1.4.0-py3-none-any.whl
- Upload date:
- Size: 33.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30f0668320e8d417d517701aea3231db844e6bfca2096eb93d6cab5fd1501654 |
|
MD5 | cd646a502bdc397227e02cfa2eec26b6 |
|
BLAKE2b-256 | 91e13bf21d6dc515d09d068f5b22a528048ba08b51176b9f93f7f68605c6d8e6 |