Skip to content

jbl19860422/go_srs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

go_srs

a rtmp server similar with srs, but is wrote by golang

目录说明

目录 说明
app 应用层
codec 编解码器解析层
global 全局变量存放
main main入口
protocol 包含amf0协议,rtmp协议
utils 存放工具类

protocol目录:

目录 说明
amf0 amf0协议实现
packet 信令包封包解包
rtmp rtmp协议,chunk,message
skt 网络层

运行方法

go run main.go

obs推流地址:

  • rtmp://ip:port/app/live?vhost=srs.net
  • vhost对应在配置文件中配置的vhost

拉流地址:

录制文件目录:

  • go_srs/srs/main/html/app/xxx.hls
  • go_srs/srs/main/html/app/xxx.flv

Releases

No releases published

Packages

No packages published

Languages