Skip to content

LoveBootCaptain/Docker.HandBrakeCLI-Python3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker.HandBrakeCLI-Python3

HandBrakeCLI + Python3 in a Docker

docker build status docker build docker pulls docker stars

Pull

docker pull lovebootcaptain/handbrakecli-python3

Build

docker build --build-arg SETLANG=de_DE.UTF-8 -t lovebootcaptain/handbrakecli-python3:latest

Run

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 

Usage of included scripts

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

TODO

  • add a watchdog for a folder with python3
  • make watchdog configurable with ENV-variables for docker run
  • make convert script configurable with ENV-variables for docker run