rtmp-server

command
v0.0.0-...-ae8f3be Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

简单 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

  • main.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL