ryanmccartney / ffmpeg-docker

FFmpeg in a container with an API and optional Decklink support
https://ryan.mccartney.info/ffmpeg-docker
GNU General Public License v3.0
14 stars 4 forks source link
api broadcast decklink docker ffmpeg ndi playback record rest streaming transcode

FFmpeg in Docker

Confiugrable FFmpeg in a docker container with a simple RESTful API

continuous integration continuous integration contributors license

FFmpeg compilation made easy with additional libraries and runs inside a Docker container. A RESTful API runs alongside written in Node.js utilising express and fluent-ffmpeg.

For more information read the documentation.

:exclamation: This project is a work in progress, it is still in the early stages of development and functions may not work as expected.

Pre-built Image

You can use the pre-built image straight away - however, this is contains pre-compiled FFmpeg as a result it does not have the following options enabled to comply with FFmpeg licensing;

If this isn't a problem then you can get the image here;

docker pull ghcr.io/ryanmccartney/ffmpeg-docker:latest

Building

If you want to contribute to this project or you'd like some of the above features, you'll need to build a copy of this image yourself which will compile FFmpeg locally.

  1. Clone the repository git clone https://github.com/ryanmccartney/ffmpeg-docker
  2. Change directory to the repository cd ./ffmpeg-docker
  3. Build the image using docker compose build.

on an M1 Mac

  1. Install your packages locally - npm install --platform=linux --arch=arm64v8 sharp

About

This software uses libraries from the FFmpeg project under the LGPLv2.1.

This software uses code of FFmpeg licensed under the LGPLv2.1 and its source can be downloaded here