프로젝트
GitHub에서 보기
bluenviron/gortsplib
소개
Go 프로그래밍 언어용 RTSP 클라이언트 및 서버 라이브러리
프로그래밍 언어 및 런타임측정된 스타 증가
- in 24h
- +1
- in 7 days
- +4
- in 15 days
- +4
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalgortsplib
RTSP client and server library for the Go programming language, written for MediaMTX.
Go ≥ 1.26 is required.
Features:
- Client
- Support secure protocol variants (RTSPS, SRTP, SRTCP)
- Support tunneling (RTSP-over-HTTP, RTSP-over-WebSocket)
- Query servers about available media streams
- Read media streams from a server ("play")
- Read streams with the UDP, UDP-multicast or TCP transport protocol
- Switch transport protocol automatically
- Read selected media streams
- Pause or seek without disconnecting from the server
- Write to ONVIF back channels
- Get PTS (presentation timestamp) of inbound packets
- Get NTP (absolute timestamp) of inbound packets
- Write media streams to a server ("record")
- Write streams with the UDP or TCP transport protocol
- Switch transport protocol automatically
- Pause without disconnecting from the server
- Server
- Support secure protocol variants (RTSPS, SRTP, SRTCP)
- Support tunneling (RTSP-over-HTTP, RTSP-over-WebSocket)
- Handle requests from clients
- Validate client credentials
- Read media streams from clients ("record")
- Read streams with the UDP or TCP transport protocol
- Get PTS (presentation timestamp) of inbound packets
- Get NTP (absolute timestamp) of inbound packets
- Serve media streams to clients ("play")
- Write streams with the UDP, UDP-multicast or TCP transport protocol
- Compute and provide SSRC, RTP-Info to clients
- Read ONVIF back channels
- Utilities
- Parse RTSP elements
- Encode/decode RTP packets into/from codec-specific frames
Table of contents
Examples
- client-query
- client-play
- client-play-timestamp
- client-play-options
- client-play-pause
- client-play-backchannel
- client-play-format-av1
- client-play-format-av1-to-jpeg
- client-play-format-g711
- client-play-format-h264
- client-play-format-h264-to-jpeg
- client-play-format-h264-to-disk
- client-play-format-h264-mpeg4audio-to-disk
- client-play-format-h265
- client-play-format-h265-to-jpeg
- client-play-format-h265-to-disk
- client-play-format-lpcm
- client-play-format-mjpeg
- client-play-format-mpeg4audio
- client-play-format-mpeg4audio-to-disk
- client-play-format-opus
- client-play-format-opus-to-disk
- client-play-format-vp8
- client-play-format-vp9
- client-record-options
- client-record-pause
- client-record-format-av1
- client-record-format-g711
- client-record-format-h264
- client-record-format-h264-from-disk
- client-record-format-h265
- client-record-format-lpcm
- client-record-format-mjpeg
- client-record-format-mpeg4audio
- client-record-format-opus
- client-record-format-vp8
- client-record-format-vp9
- client-record-format-klv
- client-republish
- server
- server-secure
- server-auth
- server-record-format-h264-to-disk
- server-play-format-h264-from-disk
- server-play-backchannel
- proxy
- proxy-backchannel
API Documentation
Click to open the API Documentation
RTP Payload Formats
In RTSP, media streams are transmitted by using RTP packets, which are encoded in a specific, codec-dependent, format. This library supports the following formats:
Video
| format | documentation | encoder and decoder available |
|---|---|---|
| AV1 | link | :heavy_check_mark: |
| VP9 | link | :heavy_check_mark: |
| VP8 | link | :heavy_check_mark: |
| H265 | link | :heavy_check_mark: |
| H264 | link | :heavy_check_mark: |
| MPEG-4 Video (H263, Xvid) | link | :heavy_check_mark: |
| MPEG-1/2 Video | link | :heavy_check_mark: |
| M-JPEG | link | :heavy_check_mark: |
Audio
| format | documentation | encoder and decoder available |
|---|---|---|
| Opus | link | :heavy_check_mark: |
| Vorbis | link | |
| MPEG-4 Audio (AAC) | link | :heavy_check_mark: |
| MPEG-4 Audio LATM (AAC-LATM) | link | :heavy_check_mark: |
| MPEG-1/2 Audio (MP3) | link | :heavy_check_mark: |
| AC-3 | link | :heavy_check_mark: |
| Speex | link | |
| G726 | link | |
| G722 | link | :heavy_check_mark: |
| G711 (PCMA, PCMU) | link | :heavy_check_mark: |
| LPCM | link | :heavy_check_mark: |
Other
| format | documentation | encoder and decoder available |
|---|---|---|
| MPEG-TS | link | :heavy_check_mark: |
| KLV | link | :heavy_check_mark: |
Specifications
Related projects
관련 프로젝트 살펴보기
불러오는 중…