diff --git a/Dockerfile b/Dockerfile index 68cc37b..d0bf903 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,10 @@ ARG NODE_IMAGE=node:18-alpine FROM ${NODE_IMAGE} +USER root +RUN apk update && \ + apk upgrade && \ + apk add ffmpeg ENV NODE_ENV=production EXPOSE 8000 RUN mkdir /app diff --git a/readme.md b/readme.md index 7ac99fe..1f1ec78 100644 --- a/readme.md +++ b/readme.md @@ -32,6 +32,29 @@ docker run -d \ eyevinntechnology/fast-engine-bridge ``` +To push an MPEG-TS stream using SRT protocol + +``` +docker run -d \ + -e SOURCE=https://eyevinn.ce.prod.osaas.io/channels/demo/master.m3u8 \ + -e DEST_TYPE=stream \ + -e DEST_URL="srt://0.0.0.0:9998?mode=listener" \ + -p 9998:9998/udp \ + eyevinntechnology/fast-engine-bridge +``` + +To view the MPEG-TS stream you can open VLC on address `srt://127.0.0.1:9998` + +To bridge a channel to an RTMP destination + +``` +docker run -d \ + -e SOURCE=https://eyevinn.ce.prod.osaas.io/channels/demo/master.m3u8 \ + -e DEST_TYPE=stream \ + -e DEST_URL="rtmp://172.232.130.157:10503/live/abc123" \ + eyevinntechnology/fast-engine-bridge +``` +