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

Uploaded Source

Built Distribution

aiortsp-1.3.6-py3-none-any.whl (33.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aiortsp-1.3.6.tar.gz
  • Upload date:
  • Size: 28.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.2

File hashes

Hashes for aiortsp-1.3.6.tar.gz
Algorithm Hash digest
SHA256 32d94a7b190e59ba7c5c7a59aeeec1044149fb8a1f8592693d2eb888d766fa78
MD5 3b69f19339a3fd47f64958cc70109a89
BLAKE2b-256 4297449c22714f7775a767bd2491c81f26d4555cd100b0f4bdbf3650d8a09327

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: aiortsp-1.3.6-py3-none-any.whl
  • Upload date:
  • Size: 33.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.2

File hashes

Hashes for aiortsp-1.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 26e63d4184326e09f9e29514fef6148021d835641269a846f3764de763f07ba6
MD5 f7f130ee45065f8bda21834a2f5f9503
BLAKE2b-256 854f86c92567689927f61b7eb9a50021606af7f2ccd35f6f8a32e76bbc7cc52c

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