HandBrake CLIHandBrake is an open source video transcoder. Homepage: https://handbrake.fr/ You find the HandBrake source code and build script in the 99-optional/handbrake/ directory or download the package handbrake.tar.gz. I created a build script for the stable version and the Git version. The Git version supports more presets. The HandBrake GUI needs GTK3, but GTK3 is currently not part of Plop Linux. So, you can compile only the command line version. Using the command line version is quite simple. How to use HandBrakeYou can use presets for various devices to transcode your videos. To list the presets use 'HandBrakeCLI -z'. The presets of the stable and Git version are different. Transcode parameter:
Example: Git version of HandBrake - Transcode for Xbox One HandBrakeCLI --preset "Xbox 1080p30 Surround" -i "original-movie.mp4" -o "new.avi" Example: Git version of HandBrake - Transcode for Playstation 3 and 4 HandBrakeCLI --preset "Playstation 1080p30 Surround" -i "original-movie.mp4" -o "new.avi" Example: Stable version of HandBrake - Transcode for Xbox HandBrakeCLI --preset "Xbox 1080p Full HD Surround" -i "original-movie.mp4" -o "new.avi" Script for HandBrakeCreate simple scripts to avoid adding the preset every time. Base script: Download handbrake-base #!/bin/sh PRESET=Set your preset here if [ "$1" == "" ] then echo You have to specify an input file! exit 1 fi if [ "$2" == "" ] then echo You have to specify an output file! exit 1 fi HandBrakeCLI --preset "$PRESET" -i "$1" -o "$2" Script for Xbox One:
Script for Playstation 3 and 4:
Backup your DVD with HandBrakeList titles of the DVD in the drive /dev/sr0 HandBrakeCLI -i /dev/sr0 -t 0 Example: Backup title 2 with language audio track 3 (-t ... title number, -a ... language audio track) HandBrakeCLI -i /dev/sr0 -t 2 -f mp4 -e x264 -b 1500 --two-pass -a 3 -E lame -B 128 --decomb -m -o backup.mp4 Build/install the Git version of HandBrakeHandBrake needs additional libraries. All libraries are in the package. Just run 'sh 000_all' to compile and install the required libraries and HandBrake. Build/install the stable version of HandBrakeThe stable version of HandBrake is disabled. You have to rename 2 scripts.
HandBrake needs additional libraries. All libraries are in the package. Run 'sh 000_all' to compile and install the required libraries and HandBrake.
© 2024 by
Elmar Hanlhofer |