Categorygithub.com/devplayg/rtsp-stream
repository
0.0.0-20200528040910-01818a6a08bc
Repository: https://github.com/devplayg/rtsp-stream.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

RTSP Streaming V2

Powered by

Do do

  • Write daily video size
  • If stream uri, name or password are changed, reload the stream

Structure

+-------------------------------------------------+
|                     |  stream | stream | stream |          +----------------+
|                     |  assist | assist | assist |          |                |
|-------------------------------------------------|          |     Minio      |
|  db  |  controller  |           manager         |          | 127.0.0.1:9000 |
|-------------------------------------------------|          |                |
|               server                            |          +----------------+
+-------------------------------------------------+

Server

framework

Database

Manager

  • manages all streams
  • starts, stops, adds, and removes streams
  • watches all streams

Stream

receives live stream

Assistant (Stream's assistant)

helps stream. He is like a slave.

  • checks streaming status
  • archives live videos and send it to object storage

Structure

  • server
    • boltdb: database
    • controller : handle API
    • manager : streaming manager
      • stream: streaming object
        • assistant: checking status, merging video files

Database

server.db

BucketKeyValue
streamsStream ID (int64)Stream information (Stream)
video-{id}YYYYMMDDVideo
configstringstring

stream-{id}.db

BucketKeyValue
{YYYYMMDD}media file name (string)Media information (Media)