This Docker image contains an encoder script and a ffmpeg installation.
It encodes all files in the input folder of an SFTP server or the local volume
/media/encoder/input. Multiple containers on the same directory are possible. The input folder
contains some special folder which corresponds to arguments for the encode script.
- Pull from Docker Hub, download the package from Releases or build using
builder/build.sh
CREATE_FOLDERS- If set to
truethe container creates the predefined input and output folder structure before processing, defaulttrue.
- If set to
ENCODER_CPU- Set to
trueto enable cpu encoding.
- Set to
EXIT_ON_FINISH- Set to
trueto exit if no more files to encode are present.
- Set to
MAX_BANDWIDTH- Limit the upload and download bandwidth, for example
10Mfor 10 MB/s.
- Limit the upload and download bandwidth, for example
NICENESS_ADJUSTMENT- Set a custom niceness adjustment, default
19.
- Set a custom niceness adjustment, default
SCHED_POLICY- Set the specified scheduling policy, default
idle.
- Set the specified scheduling policy, default
WORKER_ID- Id of the worker, default is random.
SERVER_URL- Server to download from and upload fineshed files to, in the format
sftp://user@hostname[:port]. If empty the local volumes are used.
- Server to download from and upload fineshed files to, in the format
SERVER_KEY- SSH key to use for authorization to the server.
SERVER_IDENTITY- Public key of the server for host key checking.
/media/encoder- The input and output directory of the files to encode and the encoded files, if no
SERVER_URLis specified.
- The input and output directory of the files to encode and the encoded files, if no
/media/encoder/input- The input directory for source files, if no
SERVER_URLis specified.
- The input directory for source files, if no
/media/encoder/failed- The output directory for source files of failed encodes, if no
SERVER_URLis specified.
- The output directory for source files of failed encodes, if no
/media/encoder/output- The output directory for encoded files, if no
SERVER_URLis specified.
- The output directory for encoded files, if no
/media/workdir- The directory which is used while encoding.
To build and run the docker container for development execute:
docker compose --file docker-compose-dev.yaml up --build