rtp
A library for decoding/encoding rtp packets
Decision gist · record as of 2026-08-14
Yes, if you need to work with RTP packet structures in Python and can tolerate dormant maintenance. The library is lightweight, has no dependencies, and the RTP protocol itself is stable. However, no active development has occurred since 2023-12-05, so you should not expect bug fixes or updates. Suitable for stable, self-contained use cases; risky if you need ongoing support.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Python version compatibility is unspecified; verify your Python version works with this package before relying on it in production.
- Low friction installation with no runtime dependencies.
- Maintenance is dormant—last release was 2023-12-05, so expect no active bug fixes or feature updates.
License · maintenance · safety
apache-2.0 (permissive) — Apache 2.0 permissive license allows commercial and private use with minimal restrictions, though contributors must sign a CLA before pull requests are accepted.
last release 2023-12-05 (983 days) · last repo commit 2023-12-05 · 17 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 360,272 downloads/mo, #7,245 on PyPI
Alternatives
Verify before relying
from rtp import RTP, Extension, PayloadType
# Decode an RTP packet from bytes
packet_bytes = getNextPacket() # your source
rtp_obj = RTP().fromBytearray(packet_bytes)
print(rtp_obj.sequenceNumber, rtp_obj.timestamp)
# Encode an RTP packet to bytes
rtp_obj.payload = b'your_media_data'
output_bytes = rtp_obj.toBytearray()- Whether the package handles all RTP extensions and payload types defined in relevant RFCs
- Python version compatibility (requires_python is unspecified in the fact sheet)
- Whether CSRC list and extension header handling cover real-world streaming scenarios
- Performance characteristics and suitability for high-throughput packet processing
What it is and what it does
rtp is a Python library for working with RTP packet structures—the standard protocol for real-time media transport. It lets you construct RTP packets from scratch, parse incoming packet bytes, and manipulate fields like sequence numbers, timestamps, and payload type markers. The library handles the packet format itself (headers, extensions, CSRC lists) but deliberately does not provide socket I/O or network transmission; you integrate it with your own networking layer or use it alongside other libraries that handle the media payload decoding.
The package is maintained by BBC R&D and is used in scenarios where you need to build or inspect RTP streams programmatically—for instance, in media server implementations, protocol analysis tools, or custom streaming applications. It has no external runtime dependencies, making it lightweight to add to a project.
Use it for
- Build custom RTP packet streams for audio or video transmission in media server applications
- Parse and inspect RTP packet headers from captured network traffic or test data
- Implement protocol-level RTP handling in a streaming application that manages its own network I/O
- Test RTP-based media pipelines by constructing synthetic packets with controlled sequence numbers and timestamps
- Decode RTP packet structures in network analysis or debugging tools
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to work with RTP packet structures in Python and can tolerate dormant maintenance.
The library is lightweight, has no dependencies, and the RTP protocol itself is stable. However, no active development has occurred since 2023-12-05, so you should not expect bug fixes or updates. Suitable for stable, self-contained use cases; risky if you need ongoing support.
Install
rtp on PyPI
Before you install
Low friction installation with no runtime dependencies. Maintenance is dormant—last release was 2023-12-05, so expect no active bug fixes or feature updates.
Python version compatibility is unspecified; verify your Python version works with this package before relying on it in production.
License in practice
Apache 2.0 permissive license allows commercial and private use with minimal restrictions, though contributors must sign a CLA before pull requests are accepted.
Quickstart
from rtp import RTP, Extension, PayloadType
# Decode an RTP packet from bytes
packet_bytes = getNextPacket() # your source
rtp_obj = RTP().fromBytearray(packet_bytes)
print(rtp_obj.sequenceNumber, rtp_obj.timestamp)
# Encode an RTP packet to bytes
rtp_obj.payload = b'your_media_data'
output_bytes = rtp_obj.toBytearray()
Verify before relying
- Whether the package handles all RTP extensions and payload types defined in relevant RFCs
- Python version compatibility (requires_python is unspecified in the fact sheet)
- Whether CSRC list and extension header handling cover real-world streaming scenarios
- Performance characteristics and suitability for high-throughput packet processing
Package facts
| License | apache-2.0 permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Dormant 983 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 360,272 / month, #7,245 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: rtp-0.0.4-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “rtp packet encoding decoding”
- rtpDecodes, encodes, and manipulates RTP (Real-time Transport Protocol)…
- aiortspProvides asyncio-based RTSP client functionality with basic RTP/RTCP…
- pylibsrtppylibsrtp encrypts and decrypts Secure Real-time Transport Protocol…
Give your agent the search over MCP, or paste the wish link into any chat.
More Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also pylibsrtp · aiortsp · scapy · rf-protocols · dpkt · pyrad · icmplib · rlp · spacepackets · pydivert