Docker Handbrake Setup Documentation - ryanm292002/Ryans-Repository GitHub Wiki
Handbrake is an open source video transcoding tool thats been made into a docker container, it has both GUI and CLI functionality.
Functions of Handbrake:
- converting media into different formats
- cropping and resizing video
- restoring/fixing bad video quality
- many other features whether it be subtitles, sound settings or other video settings
Sources of what I used to install handbrake:
-https://github.com/jlesage/docker-handbrake -https://handbrake.fr/docs/en/latest/cli/command-line-reference.html
Steps to successfully install and use handbrake on a Ubuntu device
(starting with GUI first then at the end will be the steps to install the Handbrake CLI interface)
- Make sure everything on the docker device is working fine, connections, docker is installed and working how it's supposed to
(run this command, which will gather the handbrake data needed to start) 2. docker pull jlesage/handbrake
-
From your home directory you change directories (cd) into /docker/appdata/handbrake this is where you make the docker-compose.yml file
-
The docker compose file can be found here: https://github.com/ryanm292002/Ryans-Repository/commit/5c271a4216d963f30669e9d4180ffb7f897ec234
-the volumes can be changed so different folders have different functions but I stuck with the defaults which worked great
The /storage is important, this is the directory of which Handbrake can see your files, as its set in the default setup, $HOME allows for all the files in the home directory to be in the scope of handbrakes file selection
/watch directory created is like the input directory, any video put into there will automatically be detected by handbrake and encoded for use
/output - videos after they've been encoded and the video that's actively being changed when you make changes to it in handbrake
Make sure to name the file docker-compose.yml in the handbrake folder
- From directory with .yml Run command:
dockercompose up -d, this will make handbrake run in the background
-
You can check whether or not the handbrake container is running with: docker container ls this shows info such as the container name and what port it is running on
-
You now should be able to access the handbrake GUI as long as you see the container up and running and attached to the "5800" port
You can access the GUI by going to a browser (I used chrome which seemed to work wonders) search up: http://hostip:5800
This is what the GUI looks like from a chrome tab
-
From there you should be all set and be able to transcode and edit media files, any videos you have in the /watch folder created in the docker-compose.yml file will be automatically loaded into handbrake and encoded automatically to prepare it for whatever your needs are
-
installing the handbrake cli interface is quite simple, helpful start guides on how to use the cli can be found in the handbrake.fr link found at the top of this documentation.
run: sudo apt-get install -y handbrake-cli