Smolrtsp
A lightweight real-time streaming library for IP cameras
Install / Use
/learn @OpenIPC/SmolrtspREADME

SmolRTSP
SmolRTSP is a simple RTSP 1.0 server library tailored for embedded devices, such as IP cameras. It supports both TCP and UDP, allows any payload format, and provides a convenient and flexible API.
Highlights
- Small. SmolRTSP is designed for use in embedded systems (e.g., IP cameras).
- Unopinionated. You can use SmolRTSP with bare POSIX sockets, libevent, or any other network framework.
- Zero-copy. SmolRTSP does not allocate or copy data while parsing.
- Battle-tested. SmolRTSP is used by Majestic, an IP camera streamer developed by OpenIPC.
Features
- Supported protocols:
- Supported RTP payload formats:
Installation
If you use CMake, the recommended way is FetchContent:
include(FetchContent)
FetchContent_Declare(
smolrtsp
URL https://github.com/OpenIPC/smolrtsp/archive/refs/tags/v1.2.3.tar.gz # v1.2.3
)
FetchContent_MakeAvailable(smolrtsp)
target_link_libraries(MyProject smolrtsp)
Options
| Option | Description | Default |
|--------|-------------|---------|
| SMOLRTSP_SHARED | Build a shared library instead of static. | OFF |
| SMOLRTSP_FULL_MACRO_EXPANSION | Show full macro expansion backtraces (DANGEROUS: may impair diagnostics and slow down compilation). | OFF |
Usage
A simple example server that streams H.264 video and G.711 Mu-Law audio can be found at examples/server.c.

Run it as follows:
$ mkdir examples/build
$ cd examples/build
$ cmake .. && cmake --build .
$ sudo ./server
Then open a new terminal window to start playing:
$ ffplay rtsp://localhost
Integration
SmolRTSP is agnostic to a network backend: you can run it atop of any network/event loop framework. Currently, we support the following integrations:
Feel free to extend this list with your own integration code.
Release procedure
- Update the
PROJECT_NUMBERfield inDoxyfile. - Update
CHANGELOG.md. - Release the project in GitHub Releases.
Related Skills
qqbot-channel
349.9kQQ 频道管理技能。查询频道列表、子频道、成员、发帖、公告、日程等操作。使用 qqbot_channel_api 工具代理 QQ 开放平台 HTTP 接口,自动处理 Token 鉴权。当用户需要查看频道、管理子频道、查询成员、发布帖子/公告/日程时使用。
docs-writer
100.4k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
349.9kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
Design
Campus Second-Hand Trading Platform \- General Design Document (v5.0 \- React Architecture \- Complete Final Version)1\. System Overall Design 1.1. Project Overview This project aims t
