Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ rtmp推流, 三种方式拉流

## 如何使用

* step1: pull container docker pull xiayanji/rtmp-hls-flv:v1.0
* step2: start container docker run -d -p 80:80 -p 1935:1935 xiayanji/rtmp-hls-flv:v1.0
* step1: pull container docker pull xiayanji/rtmp-hls-flv:v1.1.0
* step2: start container docker run -d -p 80:80 -p 1935:1935 xiayanji/rtmp-hls-flv:v1.1.0
* step3: rtmp推流
* ffmpeg -re -i ~/test.mp4 -r 30 -s 480x320 -threads 2 -vcodec libx264 -acodec aac -f flv "rtmp://127.0.0.1/live/stream1"
* step4: 拉流
Expand All @@ -20,4 +20,4 @@ rtmp推流, 三种方式拉流
* hls
* ffplay "http://127.0.0.1/hls/stream1.m3u8"
* http-flv
* ffplay "http://127.0.0.1/live?app=live&stream=stream1"
* ffplay "http://127.0.0.1/play/stream1.flv"