Skip to content

Latest commit

 

History

History
34 lines (33 loc) · 866 Bytes

README.md

File metadata and controls

34 lines (33 loc) · 866 Bytes

Push-Streaming

Github stars GitHub code size in bytes

将视频文件推送为rtmp流

Usage

sudo apt update && apt install ffmpeg &&
git clone https://github.com/canaconZion/push-streaming.git &&
make && ./rtmpPush

Config

config.ini

[PUSHSTREAMING]
# 视频原文件
Filepath=/home/video/videos/mecha.mp4 
# 推流协议
Protocol=rtmp 
# 流媒体服务器地址
HostName=localhost 
# 推流端口
Port=1935 
# 应用程序名
Key=mecha
# 流名
Pwd=test
# 循环推流次数
PushTimes=2 
# KeepPush=0 不限制次数循环播放
# KeepPush=1 按次数播放
KeepPush=1