2016-09-22 08:03:38 +01:00
|
|
|
# handbrakecli
|
2014-05-30 20:09:29 +01:00
|
|
|
|
2021-11-01 22:35:21 +00:00
|
|
|
> Command-line interface to the HandBrake video conversion and DVD ripping tool.
|
2019-06-03 01:06:36 +01:00
|
|
|
> More information: <https://handbrake.fr/>.
|
2014-05-30 20:09:29 +01:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Convert a video file to MKV (AAC 160kbit audio and x264 CRF20 video):
|
2014-05-30 20:09:29 +01:00
|
|
|
|
2021-11-01 22:35:21 +00:00
|
|
|
`handbrakecli --input {{input.avi}} --output {{output.mkv}} --encoder x264 --quality 20 --ab 160`
|
2014-05-30 20:09:29 +01:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Resize a video file to 320x240:
|
2014-05-30 20:09:29 +01:00
|
|
|
|
2021-11-01 22:35:21 +00:00
|
|
|
`handbrakecli --input {{input.mp4}} --output {{output.mp4}} --width 320 --height 240`
|
2014-05-30 20:09:29 +01:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- List available presets:
|
2014-05-30 20:09:29 +01:00
|
|
|
|
2016-09-22 08:03:38 +01:00
|
|
|
`handbrakecli --preset-list`
|
2014-05-30 20:09:29 +01:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Convert an AVI video to MP4 using the Android preset:
|
2014-05-30 20:09:29 +01:00
|
|
|
|
2021-11-01 22:35:21 +00:00
|
|
|
`handbrakecli --preset="Android" --input {{input.ext}} --output {{output.mp4}}`
|
|
|
|
|
|
|
|
- Print the content of a DVD, getting the CSS keys in the process:
|
|
|
|
|
|
|
|
`handbrakecli --input {{/dev/sr0}} --title 0`
|
|
|
|
|
|
|
|
- Rip the first track of a DVD in the specified device. Audiotracks and subtitle languages are specified as lists:
|
|
|
|
|
|
|
|
`handbrakecli --input {{/dev/sr0}} --title 1 --output {{out.mkv}} --format av_mkv --encoder x264 --subtitle {{1,4,5}} --audio {{1,2}} --aencoder copy --quality {{23}}`
|