updated handbrake

This commit is contained in:
2026-04-17 14:09:39 +00:00
parent 94ef62fe03
commit 6ded36e994
6 changed files with 52 additions and 76 deletions
@@ -1,7 +1,8 @@
# Handbrake # Handbrake
DockerHub: https://hub.docker.com/r/jlesage/handbrake - DockerHub: https://hub.docker.com/r/jlesage/handbrake
Env docs: https://github.com/jlesage/docker-handbrake - Env docs: https://github.com/jlesage/docker-handbrake
- Proxy port: 5800
## NOTES ## NOTES
@@ -144,4 +145,16 @@ I think this is the best preset for small file, big quality:
"x264Option": "", "x264Option": "",
"x264UseAdvancedOptions": false "x264UseAdvancedOptions": false
}, },
``` ```
## Dockhand Stack, Deploy from Git
Cookbooks Repository
stackname: handbrake
Compose file path: handbrake/compose-cpu.yaml
Additional env file (optional): handbrake/sample.env
Then "Load" handbrake/sample.env into the Environmental variables in dockhand
Create the Stack
+17
View File
@@ -0,0 +1,17 @@
# Handbrake CPU
services:
handbrake:
image: ${HANDBRAKE_IMAGE:-jlesage/handbrake:latest}
restart: ${HANDBRAKE_RESTART:-unless-stopped}
volumes:
- "${VOL_PATH:-./data}/handbrake/ghb-config:/config"
- "${VOL_PATH:-./data}/handbrake/storage:/storage"
- "${VOL_PATH:-./data}/handbrake/complete:/output"
- "${VOL_PATH:-./data}/handbrake/watch:/watch"
- "${VOL_PATH:-./data}/handbrake/watch2:/watch2"
- "${VOL_PATH:-./data}/handbrake/trash:/trash"
env_file:
- ${HANDBRADE_ENV:-sample.env}
ports:
- ${HANDBRAKE_PORT:-5800}:5800"
@@ -1,6 +1,8 @@
# Handbrake CPU
services: services:
handbrake: handbrake:
image: ${HANDBRAKE_IMAGE:-jlesage/handbrake:latest} image: ${HANDBRAKE_IMAGE:-jlesage/handbrake:latest}
restart: ${HANDBRAKE_RESTART:-unless-stopped}
volumes: volumes:
- "${VOL_PATH:-./data}/handbrake/ghb-config:/config" - "${VOL_PATH:-./data}/handbrake/ghb-config:/config"
- "${VOL_PATH:-./data}/handbrake/storage:/storage" - "${VOL_PATH:-./data}/handbrake/storage:/storage"
@@ -8,15 +10,13 @@ services:
- "${VOL_PATH:-./data}/handbrake/watch:/watch" - "${VOL_PATH:-./data}/handbrake/watch:/watch"
- "${VOL_PATH:-./data}/handbrake/watch2:/watch2" - "${VOL_PATH:-./data}/handbrake/watch2:/watch2"
- "${VOL_PATH:-./data}/handbrake/trash:/trash" - "${VOL_PATH:-./data}/handbrake/trash:/trash"
restart: "unless-stopped"
env_file: env_file:
- .env - ${HANDBRADE_ENV:-sample.env}
ports: ports:
- "5800:5800" - ${HANDBRAKE_PORT:-5800}:5800"
# Below for GPU
runtime: nvidia runtime: nvidia
deploy: deploy:
resources: resources:
reservations: reservations:
devices: devices:
- capabilities: [gpu] - capabilities: [gpu]
@@ -1,10 +1,12 @@
# Global VOL_PATH=/data
VOL_PATH=/docker/vol/handbrake-data #HELP: volpath HANDBRAKE_IMAGE=jlesage/handbrake:latest #CPU
VOL_CONFIG_PATH=/docker/vol #HELP: configpath #HANDBRAKE_IMAGE=zocker160/handbrake-nvenc:18x #GPU
COOKBOOK=/home/user/git/docker-compose-cookbooks #HELP: cookbooks #NVIDIA_VISIBLE_DEVICES=all #GPU
#NVIDIA_DRIVER_CAPABILITIES=all #GPU
HANDBRAKE_RESTART=unless-stopped
HANDBRAKE_ENV=sample.env
HANDBRAKE_PORT=5800
# Handbrake
HANDBRAKE_IMAGE=jlesage/handbrake:latest
AUTOMATED_CONVERSION=1 # 0 for no AUTOMATED_CONVERSION=1 # 0 for no
AUTOMATED_CONVERSION_FORMAT=m4v AUTOMATED_CONVERSION_FORMAT=m4v
AUTOMATED_CONVERSION_KEEP_SOURCE=1 # 0 for remove AUTOMATED_CONVERSION_KEEP_SOURCE=1 # 0 for remove
@@ -19,7 +21,9 @@ AUTOMATED_CONVERSION_OUTPUT_DIR=/output
AUTOMATED_CONVERSION_PRESET_2='Very Fast 1080p30' AUTOMATED_CONVERSION_PRESET_2='Very Fast 1080p30'
AUTOMATED_CONVERSION_OUTPUT_DIR_2=/output AUTOMATED_CONVERSION_OUTPUT_DIR_2=/output
# Handbrake with GPU # Password Protect
#HANDBRAKE_IMAGE=zocker160/handbrake-nvenc:18x SECURE_CONNECTION=1
#NVIDIA_VISIBLE_DEVICES=all WEB_AUTHENTICATION=1
#NVIDIA_DRIVER_CAPABILITIES=all WEB_AUTHENTICATION_TOKEN_VALIDITY_TIME=40
WEB_AUTHENTICATION_USERNAME=username
WEB_AUTHENTICATION_PASSWORD=p@ssw0rd
-33
View File
@@ -1,33 +0,0 @@
# Here is what I'm using for portainer copied into the editor
# It will only work if you copy the env section into the env section of portainer
services:
handbrake:
image: ${HANDBRAKE_IMAGE:-jlesage/handbrake:latest}
restart: "unless-stopped"
container_name: handbrake
volumes:
- "/handbrake/config:/config/ghb"
- "/handbrake/downloads:/storage"
- "/handbrake/done:/output"
- "/handbrake/720:/watch"
- "/handbrake/4k:/watch2"
- "/handbrake/trash:/trash"
environment:
- HANDBRAKE_IMAGE=zocker160/handbrake-nvenc:18x
- AUTOMATED_CONVERSION=1
- AUTOMATED_CONVERSION_FORMAT=m4v
- AUTOMATED_CONVERSION_KEEP_SOURCE=0
- AUTOMATED_CONVERSION_USE_TRASH=1
- AUTOMATED_CONVERSION_MAX_WATCH_FOLDERS=2
- AUTOMATED_CONVERSION_PRESET="nix/720"
- AUTOMATED_CONVERSION_OUTPUT_DIR="/output"
- AUTOMATED_CONVERSION_PRESET_2="nix/4K"
- AUTOMATED_CONVERSION_OUTPUT_DIR_2="/output"
ports:
- "5800:5800"
runtime: nvidia
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
-25
View File
@@ -1,25 +0,0 @@
# Global
VOL_PATH=/docker/vol/handbrake-data #HELP: volpath
VOL_CONFIG_PATH=/docker/vol #HELP: configpath
COOKBOOK=/home/user/git/docker-compose-cookbooks #HELP: cookbooks
# Handbrake
HANDBRAKE_IMAGE=jlesage/handbrake:latest
AUTOMATED_CONVERSION=1 # 0 for no
AUTOMATED_CONVERSION_FORMAT=m4v
AUTOMATED_CONVERSION_KEEP_SOURCE=1 # 0 for remove
AUTOMATED_CONVERSION_USE_TRASH=0 # 1 for yes. Required KEEP_SOURCE
AUTOMATED_CONVERSION_OVERWRITE_OUTPUT=0
AUTOMATED_CONVERSION_NO_GUI_PROGRESS=0 # 0 is show
AUTOMATED_CONVERSION_MAX_WATCH_FOLDERS=2
AUTOMATED_CONVERSION_PRESET='Very Fast 1080p30'
AUTOMATED_CONVERSION_OUTPUT_DIR=/output
AUTOMATED_CONVERSION_PRESET_2='Very Fast 1080p30'
AUTOMATED_CONVERSION_OUTPUT_DIR_2=/output
# Handbrake with GPU
#HANDBRAKE_IMAGE=zocker160/handbrake-nvenc:18x
#NVIDIA_VISIBLE_DEVICES=all
#NVIDIA_DRIVER_CAPABILITIES=all