command
Version:
v0.0.0-...-ae8f3be
Opens a new window with list of versions in this module.
Published: Feb 1, 2026
License: MIT
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
简单 RTMP 服务器示例
功能:
- 接收 RTMP 推流
- 支持多路流同时推送
- 支持拉流播放
- 提供简单的流列表 API
用法:
go run main.go
go run main.go -rtmp :1935 -http :8080
推流:
ffmpeg -re -i input.mp4 -c copy -f flv rtmp://localhost:1935/live/test
拉流:
ffplay rtmp://localhost:1935/live/test
Source Files
¶
Click to show internal directories.
Click to hide internal directories.