NGINX v1.14.1. FFmpeg v4.1.
This commit is contained in:
parent
76a08d509f
commit
95e0b06d46
14
Dockerfile
14
Dockerfile
|
@ -1,6 +1,6 @@
|
||||||
ARG NGINX_VERSION=1.14.0
|
ARG NGINX_VERSION=1.14.1
|
||||||
ARG NGINX_RTMP_VERSION=1.2.1
|
ARG NGINX_RTMP_VERSION=1.2.1
|
||||||
ARG FFMPEG_VERSION=4.0.2
|
ARG FFMPEG_VERSION=4.1
|
||||||
|
|
||||||
|
|
||||||
##############################
|
##############################
|
||||||
|
@ -57,12 +57,12 @@ RUN cd /tmp/nginx-${NGINX_VERSION} && \
|
||||||
FROM alpine:latest as build-ffmpeg
|
FROM alpine:latest as build-ffmpeg
|
||||||
ARG FFMPEG_VERSION
|
ARG FFMPEG_VERSION
|
||||||
ARG PREFIX=/usr/local
|
ARG PREFIX=/usr/local
|
||||||
|
ARG MAKEFLAGS="-j4"
|
||||||
|
|
||||||
# FFmpeg build dependencies.
|
# FFmpeg build dependencies.
|
||||||
RUN apk add --update \
|
RUN apk add --update \
|
||||||
build-base \
|
build-base \
|
||||||
freetype-dev \
|
freetype-dev \
|
||||||
gcc \
|
|
||||||
lame-dev \
|
lame-dev \
|
||||||
libogg-dev \
|
libogg-dev \
|
||||||
libass \
|
libass \
|
||||||
|
@ -71,7 +71,6 @@ RUN apk add --update \
|
||||||
libvorbis-dev \
|
libvorbis-dev \
|
||||||
libwebp-dev \
|
libwebp-dev \
|
||||||
libtheora-dev \
|
libtheora-dev \
|
||||||
nasm \
|
|
||||||
opus-dev \
|
opus-dev \
|
||||||
pkgconf \
|
pkgconf \
|
||||||
pkgconfig \
|
pkgconfig \
|
||||||
|
@ -79,7 +78,7 @@ RUN apk add --update \
|
||||||
wget \
|
wget \
|
||||||
x264-dev \
|
x264-dev \
|
||||||
x265-dev \
|
x265-dev \
|
||||||
yasm-dev
|
yasm
|
||||||
|
|
||||||
RUN echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories
|
RUN echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories
|
||||||
RUN apk add --update fdk-aac-dev
|
RUN apk add --update fdk-aac-dev
|
||||||
|
@ -112,7 +111,10 @@ RUN cd /tmp/ffmpeg-${FFMPEG_VERSION} && \
|
||||||
--enable-avresample \
|
--enable-avresample \
|
||||||
--enable-libfreetype \
|
--enable-libfreetype \
|
||||||
--enable-openssl \
|
--enable-openssl \
|
||||||
--disable-debug && \
|
--disable-debug \
|
||||||
|
--disable-doc \
|
||||||
|
--disable-ffplay \
|
||||||
|
--extra-libs="-lpthread -lm" && \
|
||||||
make && make install && make distclean
|
make && make install && make distclean
|
||||||
|
|
||||||
# Cleanup.
|
# Cleanup.
|
||||||
|
|
32
README.md
32
README.md
|
@ -2,9 +2,9 @@
|
||||||
A Dockerfile installing NGINX, nginx-rtmp-module and FFmpeg from source with
|
A Dockerfile installing NGINX, nginx-rtmp-module and FFmpeg from source with
|
||||||
default settings for HLS live streaming. Built on Alpine Linux.
|
default settings for HLS live streaming. Built on Alpine Linux.
|
||||||
|
|
||||||
* Nginx 1.14.0 (compiled from source)
|
* Nginx 1.14.1 (compiled from source)
|
||||||
* nginx-rtmp-module 1.2.1 (compiled from source)
|
* nginx-rtmp-module 1.2.1 (compiled from source)
|
||||||
* ffmpeg 4.0.2 (compiled from source)
|
* ffmpeg 4.1 (compiled from source)
|
||||||
* Default HLS settings (See: [nginx.conf](nginx.conf))
|
* Default HLS settings (See: [nginx.conf](nginx.conf))
|
||||||
|
|
||||||
[![Docker Stars](https://img.shields.io/docker/stars/alfg/nginx-rtmp.svg)](https://hub.docker.com/r/alfg/nginx-rtmp/)
|
[![Docker Stars](https://img.shields.io/docker/stars/alfg/nginx-rtmp.svg)](https://hub.docker.com/r/alfg/nginx-rtmp/)
|
||||||
|
@ -48,20 +48,21 @@ http://<server ip>:8080/live/$STREAM_NAME.m3u8
|
||||||
|
|
||||||
### FFmpeg Build
|
### FFmpeg Build
|
||||||
```
|
```
|
||||||
ffmpeg version 3.4.2 Copyright (c) 2000-2018 the FFmpeg developers
|
ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers
|
||||||
built with gcc 5.3.0 (Alpine 5.3.0)
|
built with gcc 6.4.0 (Alpine 6.4.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
|
configuration: --prefix=/usr/local --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 --disable-doc --disable-ffplay --extra-libs='-lpthread -lm'
|
||||||
libavutil 55. 78.100 / 55. 78.100
|
libavutil 56. 22.100 / 56. 22.100
|
||||||
libavcodec 57.107.100 / 57.107.100
|
libavcodec 58. 35.100 / 58. 35.100
|
||||||
libavformat 57. 83.100 / 57. 83.100
|
libavformat 58. 20.100 / 58. 20.100
|
||||||
libavdevice 57. 10.100 / 57. 10.100
|
libavdevice 58. 5.100 / 58. 5.100
|
||||||
libavfilter 6.107.100 / 6.107.100
|
libavfilter 7. 40.101 / 7. 40.101
|
||||||
libavresample 3. 7. 0 / 3. 7. 0
|
libavresample 4. 0. 0 / 4. 0. 0
|
||||||
libswscale 4. 8.100 / 4. 8.100
|
libswscale 5. 3.100 / 5. 3.100
|
||||||
libswresample 2. 9.100 / 2. 9.100
|
libswresample 3. 3.100 / 3. 3.100
|
||||||
libpostproc 54. 7.100 / 54. 7.100
|
libpostproc 55. 3.100 / 55. 3.100
|
||||||
|
|
||||||
configuration:
|
configuration:
|
||||||
|
--prefix=/usr/local
|
||||||
--enable-version3
|
--enable-version3
|
||||||
--enable-gpl
|
--enable-gpl
|
||||||
--enable-nonfree
|
--enable-nonfree
|
||||||
|
@ -82,6 +83,9 @@ ffmpeg version 3.4.2 Copyright (c) 2000-2018 the FFmpeg developers
|
||||||
--enable-libfreetype
|
--enable-libfreetype
|
||||||
--enable-openssl
|
--enable-openssl
|
||||||
--disable-debug
|
--disable-debug
|
||||||
|
--disable-doc
|
||||||
|
--disable-ffplay
|
||||||
|
--extra-libs='-lpthread -lm'
|
||||||
```
|
```
|
||||||
|
|
||||||
## Resources
|
## Resources
|
||||||
|
|
Loading…
Reference in New Issue