tldr/pages/common/handbrakecli.md

21 lines
555 B
Markdown
Raw Normal View History

# handbrakecli
2014-05-30 20:09:29 +01:00
> Command-line interface to the HandBrake video conversion tool.
> More information: <https://handbrake.fr/>.
2014-05-30 20:09:29 +01:00
- Convert a video file to MKV (AAC 160kbit audio and x264 CRF20 video):
2014-05-30 20:09:29 +01:00
`handbrakecli -i {{input.avi}} -o {{output.mkv}} -e x264 -q 20 -B 160`
2014-05-30 20:09:29 +01:00
- Resize a video file to 320x240:
2014-05-30 20:09:29 +01:00
`handbrakecli -i {{input.mp4}} -o {{output.mp4}} -w 320 -l 240`
2014-05-30 20:09:29 +01:00
- List available presets:
2014-05-30 20:09:29 +01:00
`handbrakecli --preset-list`
2014-05-30 20:09:29 +01:00
- Convert an AVI video to MP4 using the Android preset:
2014-05-30 20:09:29 +01:00
`handbrakecli --preset="Android" -i {{input.ext}} -o {{output.mp4}}`