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.3.5.tar.gz (37.4 kB view details)

Uploaded Source

Built Distribution

aiortsp-1.3.5-py3-none-any.whl (33.4 kB view details)

Uploaded Python 3

File details

Details for the file aiortsp-1.3.5.tar.gz.

File metadata

  • Download URL: aiortsp-1.3.5.tar.gz
  • Upload date:
  • Size: 37.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.5

File hashes

Hashes for aiortsp-1.3.5.tar.gz
Algorithm Hash digest
SHA256 e002ac9d5710dac54a60aa579de9987cda11455141ba88a5391945943cd247a7
MD5 9e94cf7453834303a55802b840199cc4
BLAKE2b-256 2536046be667a66b642f70cfce7bba0bb758132ebadb9bbfec2bbdac2430e76f

See more details on using hashes here.

File details

Details for the file aiortsp-1.3.5-py3-none-any.whl.

File metadata

  • Download URL: aiortsp-1.3.5-py3-none-any.whl
  • Upload date:
  • Size: 33.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.5

File hashes

Hashes for aiortsp-1.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e02833eee4722be62ad39ba7d0b5477f7512e4e1076d86d435afa3833f5bce24
MD5 55330c028d7e9a31b1c561a56bd82fa7
BLAKE2b-256 c5b51f25c5126a0412aefc6f3881bba74925e15247794234e6f298eaf3c33d1c

See more details on using hashes here.

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