Audio/Video webm stream based on ffserver (ffmpeg)
256
This docker is compiled with x64 architecture, using i5 microprocessor.
This server listen input connection on 12345 port and serve video on 8080/tcp.
# Generate a docker for full featured ffmpeg with srt support
# by GIDAT -UNRC
# VERSION 1.0.0
# based on: https://github.com/klaxa/mkvserver_mk2
FROM alpine
LABEL MAINTAINER "gidat <[email protected]>"
RUN apk update && apk upgrade && apk add --no-cache ffmpeg git make pkgconfig ffmpeg-dev build-base && git clone https://github.com/klaxa/mkvserver_mk2.git && cd mkvserver_mk2 && make
WORKDIR mkvserver_mk2
EXPOSE 12345
ENTRYPOINT nc -l -p 12345 | ./server
For launching purposes is comfortable use docker-compose tool. This is the proposed docker-compose.yaml file:
version: '3.7'
services:
ffserver:
build:
context: ./
dockerfile: Dockerfile
image: gidat/ffserver
ports:
- target: 12345
published: 12345
protocol: tcp
mode: host
- target: 8080
published: 8080
protocol: tcp
mode: host
deploy:
restart_policy:
condition: on-failure
delay: 5s
To test this server is needed 1 video feed and a video consumer.
Video feed:
Video consumer: Open browser and see http://localhost:8080
Based/Inspired on several others works:
Content type
Image
Digest
Size
84.5 MB
Last updated
almost 7 years ago
docker pull gidat/ffserver