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:57:15 +08:00
parent aa0520e07e
commit a44833a3b9

View file

@ -16,13 +16,12 @@ SRS is a RTMP/HLS/FLV streaming cluster, high efficiency, stable and simple.
Recommend to run SRS by [docker][docker-srs3]: Recommend to run SRS by [docker][docker-srs3]:
```bash ```bash
# From Aliyun CR, for developers in China.
docker run --rm -p 1935:1935 -p 1985:1985 -p 8080:8080 \
registry.cn-hangzhou.aliyuncs.com/ossrs/srs:3
# From docker hub, depends on your network.
docker run --rm -p 1935:1935 -p 1985:1985 -p 8080:8080 \ docker run --rm -p 1935:1935 -p 1985:1985 -p 8080:8080 \
ossrs/srs:3 ossrs/srs:3
# Or, for developers in China.
docker run --rm -p 1935:1935 -p 1985:1985 -p 8080:8080 \
registry.cn-hangzhou.aliyuncs.com/ossrs/srs:3
``` ```
> Note: All [tags](https://github.com/ossrs/srs/tags) are available, such as > Note: All [tags](https://github.com/ossrs/srs/tags) are available, such as
@ -36,6 +35,11 @@ If success, please open [http://localhost:8080/](http://localhost:8080/), then p
```bash ```bash
ffmpeg -re -i doc/source.200kbps.768x320.flv -c copy \ ffmpeg -re -i doc/source.200kbps.768x320.flv -c copy \
-f flv rtmp://127.0.0.1/live/livestream -f flv rtmp://127.0.0.1/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
``` ```
Play the following streams by players: Play the following streams by players: