commands.sh

handbrakecli

all

Command-line interface to the HandBrake video conversion and DVD ripping tool.

More info →

Options (14)

-i, --inputboolean

Convert a video file to MKV (AAC 160kbit audio and x264 CRF20 video)

Example: handbrakecli {{[-i|--input]}} {{input.avi}} {{[-o|--output]}} {{output.mkv}} {{[-e|--encoder]}} x264 {{[-q|--quality]}} 20 {{[-B|--ab]}} 160
-o, --outputboolean

Convert a video file to MKV (AAC 160kbit audio and x264 CRF20 video)

Example: handbrakecli {{[-i|--input]}} {{input.avi}} {{[-o|--output]}} {{output.mkv}} {{[-e|--encoder]}} x264 {{[-q|--quality]}} 20 {{[-B|--ab]}} 160
-e, --encoderboolean

Convert a video file to MKV (AAC 160kbit audio and x264 CRF20 video)

Example: handbrakecli {{[-i|--input]}} {{input.avi}} {{[-o|--output]}} {{output.mkv}} {{[-e|--encoder]}} x264 {{[-q|--quality]}} 20 {{[-B|--ab]}} 160
-q, --qualityboolean

Convert a video file to MKV (AAC 160kbit audio and x264 CRF20 video)

Example: handbrakecli {{[-i|--input]}} {{input.avi}} {{[-o|--output]}} {{output.mkv}} {{[-e|--encoder]}} x264 {{[-q|--quality]}} 20 {{[-B|--ab]}} 160
-B, --abboolean

Convert a video file to MKV (AAC 160kbit audio and x264 CRF20 video)

Example: handbrakecli {{[-i|--input]}} {{input.avi}} {{[-o|--output]}} {{output.mkv}} {{[-e|--encoder]}} x264 {{[-q|--quality]}} 20 {{[-B|--ab]}} 160
-w, --widthboolean

Resize a video file to 320x240

Example: handbrakecli {{[-i|--input]}} {{input.mp4}} {{[-o|--output]}} {{output.mp4}} {{[-w|--width]}} 320 {{[-l|--height]}} 240
-l, --heightboolean

Resize a video file to 320x240

Example: handbrakecli {{[-i|--input]}} {{input.mp4}} {{[-o|--output]}} {{output.mp4}} {{[-w|--width]}} 320 {{[-l|--height]}} 240
-z, --preset-listboolean

List available presets

Example: handbrakecli {{[-z|--preset-list]}}
-Z, --presetboolean

Convert an AVI video to MP4 using the Android preset

Example: handbrakecli {{[-Z|--preset]}} "Android" {{[-i|--input]}} {{input.ext}} {{[-o|--output]}} {{output.mp4}}
-t, --titleboolean

Print the content of a DVD, getting the CSS keys in the process

Example: handbrakecli {{[-i|--input]}} {{/dev/sr0}} {{[-t|--title]}} 0
-f, --formatboolean

Rip the first track of a DVD in the specified device. Audiotracks and subtitle languages are specified as lists

Example: handbrakecli {{[-i|--input]}} {{/dev/sr0}} {{[-t|--title]}} 1 {{[-o|--output]}} {{out.mkv}} {{[-f|--format]}} av_mkv {{[-e|--encoder]}} x264 {{[-s|--subtitle]}} {{1,4,5}} {{[-a|--audio]}} {{1,2}} {{[-E|--aencoder]}} copy {{[-q|--quality]}} {{23}}
-s, --subtitleboolean

Rip the first track of a DVD in the specified device. Audiotracks and subtitle languages are specified as lists

Example: handbrakecli {{[-i|--input]}} {{/dev/sr0}} {{[-t|--title]}} 1 {{[-o|--output]}} {{out.mkv}} {{[-f|--format]}} av_mkv {{[-e|--encoder]}} x264 {{[-s|--subtitle]}} {{1,4,5}} {{[-a|--audio]}} {{1,2}} {{[-E|--aencoder]}} copy {{[-q|--quality]}} {{23}}
-a, --audioboolean

Rip the first track of a DVD in the specified device. Audiotracks and subtitle languages are specified as lists

Example: handbrakecli {{[-i|--input]}} {{/dev/sr0}} {{[-t|--title]}} 1 {{[-o|--output]}} {{out.mkv}} {{[-f|--format]}} av_mkv {{[-e|--encoder]}} x264 {{[-s|--subtitle]}} {{1,4,5}} {{[-a|--audio]}} {{1,2}} {{[-E|--aencoder]}} copy {{[-q|--quality]}} {{23}}
-E, --aencoderboolean

Rip the first track of a DVD in the specified device. Audiotracks and subtitle languages are specified as lists

Example: handbrakecli {{[-i|--input]}} {{/dev/sr0}} {{[-t|--title]}} 1 {{[-o|--output]}} {{out.mkv}} {{[-f|--format]}} av_mkv {{[-e|--encoder]}} x264 {{[-s|--subtitle]}} {{1,4,5}} {{[-a|--audio]}} {{1,2}} {{[-E|--aencoder]}} copy {{[-q|--quality]}} {{23}}

Examples (6)

Convert a video file to MKV (AAC 160kbit audio and x264 CRF20 video)

handbrakecli [-i|--input] input.avi [-o|--output] output.mkv [-e|--encoder] x264 [-q|--quality] 20 [-B|--ab] 160

Resize a video file to 320x240

handbrakecli [-i|--input] input.mp4 [-o|--output] output.mp4 [-w|--width] 320 [-l|--height] 240

List available presets

handbrakecli [-z|--preset-list]

Convert an AVI video to MP4 using the Android preset

handbrakecli [-Z|--preset] "Android" [-i|--input] input.ext [-o|--output] output.mp4

Print the content of a DVD, getting the CSS keys in the process

handbrakecli [-i|--input] /dev/sr0 [-t|--title] 0

Rip the first track of a DVD in the specified device. Audiotracks and subtitle languages are specified as lists

handbrakecli [-i|--input] /dev/sr0 [-t|--title] 1 [-o|--output] out.mkv [-f|--format] av_mkv [-e|--encoder] x264 [-s|--subtitle] 1,4,5 [-a|--audio] 1,2 [-E|--aencoder] copy [-q|--quality] 23
made by @shridhargupta | data from tldr-pages