2016-09-22 08:03:38 +01:00
|
|
|
# handbrakecli
|
2014-05-30 20:09:29 +01:00
|
|
|
|
2016-09-22 08:03:38 +01:00
|
|
|
> Command-line interface to the HandBrake video conversion tool.
|
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
|
|
|
|
2016-09-22 08:03:38 +01:00
|
|
|
`handbrakecli -i {{input.avi}} -o {{output.mkv}} -e x264 -q 20 -B 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
|
|
|
|
2016-09-22 08:03:38 +01:00
|
|
|
`handbrakecli -i {{input.mp4}} -o {{output.mp4} -w 320 -l 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
|
|
|
|
2016-09-22 08:03:38 +01:00
|
|
|
`handbrakecli --preset="Android" -i {{input.ext}} -o {{output.mp4}}`
|