Sign inSign up

gidat/ffserver

By gidat

•Updated almost 7 years ago

Audio/Video webm stream based on ffserver (ffmpeg)

Image
0

256

gidat/ffserver repository overview

⁠FFServer Docker for webm A/V streaming

⁠Introduction

This docker is compiled with x64 architecture, using i5 microprocessor.

⁠Get started

This server listen input connection on 12345 port and serve video on 8080/tcp.

⁠Dockerfile


# 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

⁠Docker compose

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

⁠Testing

To test this server is needed 1 video feed and a video consumer.

⁠Credits / Bibliography

Based/Inspired on several others works:

Tag summary

Content type

Image

Digest

Size

84.5 MB

Last updated

almost 7 years ago

docker pull gidat/ffserver