HandBrakeCLI + Python3 in a Docker
docker pull lovebootcaptain/handbrakecli-python3
docker build --build-arg SETLANG=de_DE.UTF-8 -t lovebootcaptain/handbrakecli-python3:latest
docker run
--entrypoint bash
-v /Volumes/video:/root/input
-v /Volumes/video/transcoded:/root/output
--env LC_ALL=de_DE.UTF-8
--env LANG=de_DE.UTF-8
--env LANGUAGE=de_DE:de
--env TZ=Europe/Berlin
--env VIDEO_FORMAT=mp4
--env SOURCE_EXT=mkv
--env AUDIO_ENCODER=aac
--env AUDIO_BITRATE=192
--env VIDEO_ENCODER=x264
--env CODEC_PRESET=veryfast
--env CODEC_QUALITY=23
--name handbrakecli-python3
-h docker-handbrake
lovebootcaptain/handbrakecli-python3:latest
the scripts
folder is added to the PATH
so you can use any of the scripts directly from your shell.
feel free to add and/or contribute your own.
convert
- use on a file
- lets you convert a single file
LoopConverter
- use in a folder with your source files
- uses
convert
on any file in that folder that matches the$SOURCE_EXT
Example
convert my_funny_video.mkv
cd /path/to/your/folder && LoopConverter
- add a watchdog for a folder with python3
- make watchdog configurable with ENV-variables for
docker run
-
makeconvert
script configurable with ENV-variables fordocker run