MCPcopy Index your code
hub / github.com/deepch/RTSPtoRTMP

github.com/deepch/RTSPtoRTMP @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
27 symbols 51 edges 4 files 4 documented · 15%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

RTSPtoRTMP

RTSP Stream to YouTube or Twitch

full native! not use ffmpeg or gstreamer

Download Source

  1. Download source bash $ git clone https://github.com/deepch/RTSPtoRTMP
  2. CD to Directory bash $ cd RTSPtoRTMP/
  3. Test Run bash $ GO111MODULE=on go run *.go
  4. Edit config.json

Configuration

Edit file config.json

format:

{
  "streams": {
    "H264_AAC": {
      "on_demand": false,
      "url": "YOU_RTSP_CAMERA_URL",
      "broadcast": {
        "enable": true,
        "url": "rtmp://a.rtmp.youtube.com/live2/YOU_YOUTUBE_KEY"
      }
    }
  }
}

Limitations

Video Codecs Supported: H264 all profiles

Audio Codecs Supported: AAC or NONE

Test

CPU usage 0.2% one core cpu intel core i7 / stream

Team

Deepch - https://github.com/deepch streaming developer

Dmitry - https://github.com/vdalex25 web developer

Other Example

Examples of working with video on golang

Core symbols most depended-on inside this repo

Close
called by 3
fakeAudio.go
RTSPWorkerLoop
called by 2
stream.go
HasViewer
called by 2
config.go
coAd
called by 2
config.go
serveStreams
called by 1
stream.go
RTSPWorker
called by 1
stream.go
RunUnlock
called by 1
config.go
loadConfig
called by 1
config.go

Shape

Method 13
Function 7
Struct 7

Languages

Go100%

Modules by API surface

config.go19 symbols
fakeAudio.go4 symbols
stream.go3 symbols
main.go1 symbols

For agents

$ claude mcp add RTSPtoRTMP \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact