2016-09-22 08:03:38 +01:00
|
|
|
# handbrakecli
|
2014-05-30 12:09:29 -07:00
|
|
|
|
2021-11-01 23:35:21 +01:00
|
|
|
> Command-line interface to the HandBrake video conversion and DVD ripping tool.
|
2025-05-09 20:39:26 +03:00
|
|
|
> More information: <https://handbrake.fr/docs/en/latest/cli/command-line-reference.html>.
|
2014-05-30 12:09:29 -07:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Convert a video file to MKV (AAC 160kbit audio and x264 CRF20 video):
|
2014-05-30 12:09:29 -07:00
|
|
|
|
2025-05-09 20:39:26 +03:00
|
|
|
`handbrakecli {{[-i|--input]}} {{input.avi}} {{[-o|--output]}} {{output.mkv}} {{[-e|--encoder]}} x264 {{[-q|--quality]}} 20 {{[-B|--ab]}} 160`
|
2014-05-30 12:09:29 -07:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Resize a video file to 320x240:
|
2014-05-30 12:09:29 -07:00
|
|
|
|
2025-05-09 20:39:26 +03:00
|
|
|
`handbrakecli {{[-i|--input]}} {{input.mp4}} {{[-o|--output]}} {{output.mp4}} {{[-w|--width]}} 320 {{[-l|--height]}} 240`
|
2014-05-30 12:09:29 -07:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- List available presets:
|
2014-05-30 12:09:29 -07:00
|
|
|
|
2025-05-09 20:39:26 +03:00
|
|
|
`handbrakecli {{[-z|--preset-list]}}`
|
2014-05-30 12:09:29 -07:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Convert an AVI video to MP4 using the Android preset:
|
2014-05-30 12:09:29 -07:00
|
|
|
|
2025-05-09 20:39:26 +03:00
|
|
|
`handbrakecli {{[-Z|--preset]}} "Android" {{[-i|--input]}} {{input.ext}} {{[-o|--output]}} {{output.mp4}}`
|
2021-11-01 23:35:21 +01:00
|
|
|
|
|
|
|
- Print the content of a DVD, getting the CSS keys in the process:
|
|
|
|
|
2025-05-09 20:39:26 +03:00
|
|
|
`handbrakecli {{[-i|--input]}} {{/dev/sr0}} {{[-t|--title]}} 0`
|
2021-11-01 23:35:21 +01:00
|
|
|
|
|
|
|
- Rip the first track of a DVD in the specified device. Audiotracks and subtitle languages are specified as lists:
|
|
|
|
|
2025-05-09 20:39:26 +03:00
|
|
|
`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}}`
|