HUB
Sign inSign up

labithiotis/ffmpeg-watch

By labithiotis

•Updated over 7 years ago

Automatically watch a directory and convert any files with FFMpeg

Image
0

1.3K

labithiotis/ffmpeg-watch repository overview

⁠ffmpeg-watch

A Docker container designed to watch a directory and encode any file automatically.

You need to set your watch and output folders either as ENVIRONMENT variables or map volumes in docker-compose:

services:
  ffmpeg-watch:
    container_name: ffmpeg-watch
    image: labithiotis/ffmpeg-watch
    restart: always
    environment:
      ENCODER: libx265
      CRF: 28
      PRESET: verfast
      EXTENSION: mp4
    volumes:
      - 'PATH_TO_STORAGE:/storage'
      - 'PATH_TO_WATCH:/watch'
      - 'PATH_TO_OUTPUT:/output'

⁠Options

VariablesDefault
WATCH/watchLocation of files to encode.
OUTPUT/outputWhere encoded files are saved.
STORAGE/storageTemp directory while processing files.
EXTENSIONmp4
ENCODERlibx265https://trac.ffmpeg.org/wiki/Encode/H.265⁠
PRESETveryfastSet as low as you're willing to wait. See https://x265.readthedocs.io/en/default/presets.html⁠
CRF28A quality factor for the encode from 0.0-58.0. Lower numbers are better quality and higher file size.
THREADS1How many CPU threads to use
PRIORITY19
CPU_LIMIT30Limit CPU usage 1-100%
Tag summary
Recent tags
Content type
Image
Digest
Size
35.4 MB
Last updated
over 7 years ago
docker pull labithiotis/ffmpeg-watch:latest