docker nginx rtmp Docker 构建 Nginx + ffmpeg + OBS 直播服务器 项目简介
docker nginx rtmp一个Dockerfile从源代码安装NGINX,nginx-rtmp-module和FFmpeg HLS实时流媒体的默认设置。 建立在Alpine Linux上。Nginx 1.15.3 (从源代码编译)nginx-rtmp-module 1.2.1 (从源代码编译)ffmpeg 4.0.2 (从源代码编译)默认HLS设置(见: nginx.conf)用法:服务端拉取docker镜像并运行:docker pull jun3/rtmp
docker run --name rtmp -p 1935:1935 -p 8080:80 -d -it jun3/rtmp或者构建docker镜像并运行:docker build -t jun3/rtmp .
docker run --name rtmp -p 1935:1935 -p 8080:80 -d -it jun3/rtmp将实时内容串流到服务端:rtmp://<server ip>:1935/stream/$STREAM_NAMEOBS配置流类型: 自定义流媒体服务器流地址: rtmp://localhost:1935/stream流密钥: hello观看流在Safari,VLC或任何HLS播放器中,打开:http://<server ip>:8080/live/$STREAM_NAME.m3u8例如: http://localhost:8080/live/hello.m3u8FFMPEG构建ffmpeg version 3.4.2 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 5.3.0 (Alpine 5.3.0)
configuration: --enable-version3 --enable-gpl --enable-nonfree --enable-small --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libvpx --enable-libtheora --enable-libvorbis --enable-libopus --enable-libfdk-aac --enable-libass --enable-libwebp --enable-librtmp --enable-postproc --enable-avresample --enable-libfreetype --enable-openssl --disable-debug
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
configuration:
--enable-version3
--enable-gpl
--enable-nonfree
--enable-small
--enable-libmp3lame
--enable-libx264
--enable-libx265
--enable-libvpx
--enable-libtheora
--enable-libvorbis
--enable-libopus
--enable-libfdk-aac
--enable-libass
--enable-libwebp
--enable-librtmp
--enable-postproc
--enable-avresample
--enable-libfreetype
--enable-openssl
--disable-debug
docker run --name rtmp -p 1935:1935 -p 8080:80 -d -it jun3/rtmp或者构建docker镜像并运行:docker build -t jun3/rtmp .
docker run --name rtmp -p 1935:1935 -p 8080:80 -d -it jun3/rtmp将实时内容串流到服务端:rtmp://<server ip>:1935/stream/$STREAM_NAMEOBS配置流类型: 自定义流媒体服务器流地址: rtmp://localhost:1935/stream流密钥: hello观看流在Safari,VLC或任何HLS播放器中,打开:http://<server ip>:8080/live/$STREAM_NAME.m3u8例如: http://localhost:8080/live/hello.m3u8FFMPEG构建ffmpeg version 3.4.2 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 5.3.0 (Alpine 5.3.0)
configuration: --enable-version3 --enable-gpl --enable-nonfree --enable-small --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libvpx --enable-libtheora --enable-libvorbis --enable-libopus --enable-libfdk-aac --enable-libass --enable-libwebp --enable-librtmp --enable-postproc --enable-avresample --enable-libfreetype --enable-openssl --disable-debug
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
configuration:
--enable-version3
--enable-gpl
--enable-nonfree
--enable-small
--enable-libmp3lame
--enable-libx264
--enable-libx265
--enable-libvpx
--enable-libtheora
--enable-libvorbis
--enable-libopus
--enable-libfdk-aac
--enable-libass
--enable-libwebp
--enable-librtmp
--enable-postproc
--enable-avresample
--enable-libfreetype
--enable-openssl
--disable-debug