1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-12 11:21:52 +00:00

Add docker for FFmpeg publish

This commit is contained in:
winlin 2021-03-05 08:58:29 +08:00
parent a44833a3b9
commit ba5b2f6a60

View file

@ -34,17 +34,17 @@ If success, please open [http://localhost:8080/](http://localhost:8080/), then p
```bash
ffmpeg -re -i doc/source.200kbps.768x320.flv -c copy \
-f flv rtmp://127.0.0.1/live/livestream
-f flv rtmp://localhost/live/livestream
# Or by FFmpeg docker
docker run --rm --network=host registry.cn-hangzhou.aliyuncs.com/ossrs/srs:encoder \
ffmpeg -re -i ./doc/source.200kbps.768x320.flv -c copy \
-f flv -y rtmp://127.0.0.1/live/encoder
-f flv -y rtmp://localhost/live/encoder
```
Play the following streams by players:
* VLC: rtmp://127.0.0.1/live/livestream
* VLC: rtmp://localhost/live/livestream
* H5: [http://localhost:8080/live/livestream.flv](http://localhost:8080/players/srs_player.html?autostart=true&stream=livestream.flv&port=8080&schema=http)
* H5: [http://localhost:8080/live/livestream.m3u8](http://localhost:8080/players/srs_player.html?autostart=true&stream=livestream.m3u8&port=8080&schema=http)