正在显示
1 个修改的文件
包含
7 行增加
和
0 行删除
| @@ -56,6 +56,13 @@ For example, use ffmpeg to publish: | @@ -56,6 +56,13 @@ For example, use ffmpeg to publish: | ||
| 56 | -f flv -y rtmp://127.0.0.1/live?vhost=demo.srs.com/livestream; \ | 56 | -f flv -y rtmp://127.0.0.1/live?vhost=demo.srs.com/livestream; \ |
| 57 | sleep 1; \ | 57 | sleep 1; \ |
| 58 | done | 58 | done |
| 59 | +publish the demo stream for players: | ||
| 60 | + for((;;)); do \ | ||
| 61 | + ./objs/ffmpeg/bin/ffmpeg -re -i ./doc/source.200kbps.768x320.flv \ | ||
| 62 | + -vcodec copy -acodec copy \ | ||
| 63 | + -f flv -y rtmp://127.0.0.1/live?vhost=players/livestream; \ | ||
| 64 | + sleep 1; \ | ||
| 65 | + done | ||
| 59 | </pre> | 66 | </pre> |
| 60 | <strong>step 7:</strong> add server ip to client hosts as demo. <br/> | 67 | <strong>step 7:</strong> add server ip to client hosts as demo. <br/> |
| 61 | <pre> | 68 | <pre> |
-
请 注册 或 登录 后发表评论