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.
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)
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 |
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
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.
PROJECT_NUMBER
field in Doxyfile
.CHANGELOG.md
.