Sign inSign up

607qwq/alpine-rtmp

By 607qwq

Updated over 4 years ago

基于alpine构建rtmp服务

Image
2

2.2K

607qwq/alpine-rtmp repository overview

Alpine-RTMP

使用🐋Docker Alpin镜像构建RTMP服务

1.下载镜像

docker pull 607qwq/alpine-rtmp

2.运行容器

docker run -d -p 80:80 -p 1935:1935 -v /hls:/hls -v /video:/video --name rtmp alpine-rtmp

本机hlsvideo中可存放相应的音视频文件,hls目录中文件主要用ffmpeg来推流,video目录中的文件主要用来点播使用。

3.使用容器

docker exec -it rtmp sh

可以进入容器根据自己实际的需求对相应的配置文件nginx.conf文件进行修改,在/usr/local/nginx/conf目录下

4.演示

点播

live

ffmpeg -re -i 23.mp4 -vcodec copy -acodec copy -f flv "rtmp://127.0.0.1:1935/live/test1"

hls

 ffmpeg -re -i  24.mp4 -vcodec copy -acodec copy -f flv "rtmp://127.0.0.1:1935/hls/test2"

stat界面

Tag summary

Content type

Image

Digest

Size

113.7 MB

Last updated

over 4 years ago

docker pull 607qwq/alpine-rtmp