mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-11 11:58:34 +00:00
Update cheatsheets
This commit is contained in:
@@ -6,28 +6,28 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# handbrakecli
|
||||
|
||||
> Command-line interface to the HandBrake video conversion and DVD ripping tool.
|
||||
> More information: <https://handbrake.fr/>.
|
||||
> More information: <https://handbrake.fr/docs/en/latest/cli/command-line-reference.html>.
|
||||
|
||||
- Convert a video file to MKV (AAC 160kbit audio and x264 CRF20 video):
|
||||
|
||||
`handbrakecli --input {{input.avi}} --output {{output.mkv}} --encoder x264 --quality 20 --ab 160`
|
||||
`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 --input {{input.mp4}} --output {{output.mp4}} --width 320 --height 240`
|
||||
`handbrakecli {{[-i|--input]}} {{input.mp4}} {{[-o|--output]}} {{output.mp4}} {{[-w|--width]}} 320 {{[-l|--height]}} 240`
|
||||
|
||||
- List available presets:
|
||||
|
||||
`handbrakecli --preset-list`
|
||||
`handbrakecli {{[-z|--preset-list]}}`
|
||||
|
||||
- Convert an AVI video to MP4 using the Android preset:
|
||||
|
||||
`handbrakecli --preset="Android" --input {{input.ext}} --output {{output.mp4}}`
|
||||
`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 --input {{/dev/sr0}} --title 0`
|
||||
`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 --input {{/dev/sr0}} --title 1 --output {{out.mkv}} --format av_mkv --encoder x264 --subtitle {{1,4,5}} --audio {{1,2}} --aencoder copy --quality {{23}}`
|
||||
`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}}`
|
||||
|
||||
Reference in New Issue
Block a user