MyGit

OpenIPC/smolrtsp

Fork: 25 Star: 121 (更新于 1970-01-01 00:00:00)

license: MIT

Language: C .

A lightweight real-time streaming library for IP cameras

最后发布版本: v0.1.3 ( 2023-03-12 05:47:59)

官方网址 GitHub网址

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

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.

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.

最近版本更新:(数据更新于 1970-01-01 00:00:00)

2023-03-12 05:47:59 v0.1.3

2022-07-27 23:27:55 v0.1.2

2022-03-31 05:31:15 v0.1.1

2022-03-30 03:06:46 v0.1.0

主题(topics):

audio, c, c-library, embedded, h264, h265, media-server, network-protocol, rtp, rtsp, rtsp-client, rtsp-server, streaming, video

OpenIPC/smolrtsp同语言 C最近更新仓库

2024-11-21 10:58:30 EdgeTX/edgetx

2024-11-15 10:03:16 hanwckf/bl-mt798x

2024-11-09 07:41:43 XITRIX/Moonlight-Switch

2024-11-04 17:16:21 redis/redis

2024-10-31 09:06:25 Spooks4576/Ghost_ESP

2024-10-31 03:40:05 tursodatabase/libsql