Skip to main content

An asyncio-based RTSP library

Project description

https://travis-ci.com/marss/aiortsp.svg?branch=master https://coveralls.io/repos/github/marss/aiortsp/badge.svg?branch=master

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiortsp-1.4.0.tar.gz (38.1 kB view details)

Uploaded Source

Built Distribution

aiortsp-1.4.0-py3-none-any.whl (33.6 kB view details)

Uploaded Python 3

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

Hashes for aiortsp-1.4.0.tar.gz
Algorithm Hash digest
SHA256 6c2ae08ba78fd9b939a281365fdc323896ae5453c3e2c3c1c3dd43efb120928e
MD5 8a198702622a9c2bbd783ffacfb470f0
BLAKE2b-256 a5d669fc1d338619b87fe79b0c26e5a3b4dd6766725a483e62467db3daf3f461

See more details on using hashes here.

Provenance

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

Hashes for aiortsp-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 30f0668320e8d417d517701aea3231db844e6bfca2096eb93d6cab5fd1501654
MD5 cd646a502bdc397227e02cfa2eec26b6
BLAKE2b-256 91e13bf21d6dc515d09d068f5b22a528048ba08b51176b9f93f7f68605c6d8e6

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page