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: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
MP4 文件推流到 RTMP 服务器示例
功能:
- 智能检测 MP4 文件编码格式
- 判断是否支持直接推流(无需转码)
- 按原始时间戳控制推流速度
- 支持循环推流
用法:
go run main.go -i input.mp4 -o rtmp://server/live/stream
go run main.go -i input.mp4 -o rtmp://server/live/stream -loop
支持的编码:
Source Files
¶
Click to show internal directories.
Click to hide internal directories.