Skip to content
Projets

À propos

Bibliothèque légère de streaming en temps réel pour caméras IP

Design et médias

Comment ces chiffres sont mesurés

What you can do

  • 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.

Progression mesurée des étoiles

in 24h
0
in 7 days
0
in 15 days
+4
in 1 month
+7

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

OpenIPC Logo

SmolRTSP

CI Docs

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:
    • RTSP 1.0 (RFC 2326)
    • RTP (RFC 3550)
    • RTP over TCP (interleaved binary data)
    • RTP over UDP
    • SDP (RFC 4566)
    • RTCP (RFC 3550):
      • Sender Report (SR), Receiver Report (RR), SDES (single CNAME), and BYE serialization
  • 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. The same server can also advertise additional streams: pass -DENABLE_JPEGXS=ON for JPEG XS on the /jpegxs path, -DENABLE_AV1=ON for AV1 on the /av1 path, or -DENABLE_VVC=ON for H.266 / VVC on the /vvc path.

server demo

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

  1. Update the PROJECT_NUMBER field in Doxyfile.
  2. Update CHANGELOG.md.
  3. Release the project in GitHub Releases.

Explorer des projets similaires

Chargement…