Debian Codegraph @

/

debian aiortsp 1.4.0-1debian python3-aiortsp python aiortsp 1.4.0 debianinimakefilepythonshellyaml 44 files · 1151 symbols
View dependency graph

Depends on

README (full)

RTSP Library for asyncio

:target: https://travis-ci.com/marss/aiortsp

:target: https://coveralls.io/github/marss/aiortsp?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())
dir aiortsp/
dir debian/
dir examples/
dir tests/
file .gitignore
file .travis.yml
file CHANGELOG.rst
file LICENSE
file README.rst
file requirements-dev.txt
file setup.cfg
file setup.py
file tox.ini