1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 13:46:00 +02:00

handbrakecli: Add commands to rip DVD; update options to long form (#7279)

This commit is contained in:
Mat 2021-11-01 23:35:21 +01:00 committed by GitHub
parent 5c5042a6c4
commit 54803a0023
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,15 +1,15 @@
# handbrakecli
> Command-line interface to the HandBrake video conversion tool.
> Command-line interface to the HandBrake video conversion and DVD ripping tool.
> More information: <https://handbrake.fr/>.
- Convert a video file to MKV (AAC 160kbit audio and x264 CRF20 video):
`handbrakecli -i {{input.avi}} -o {{output.mkv}} -e x264 -q 20 -B 160`
`handbrakecli --input {{input.avi}} --output {{output.mkv}} --encoder x264 --quality 20 --ab 160`
- Resize a video file to 320x240:
`handbrakecli -i {{input.mp4}} -o {{output.mp4}} -w 320 -l 240`
`handbrakecli --input {{input.mp4}} --output {{output.mp4}} --width 320 --height 240`
- List available presets:
@ -17,4 +17,12 @@
- Convert an AVI video to MP4 using the Android preset:
`handbrakecli --preset="Android" -i {{input.ext}} -o {{output.mp4}}`
`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}}`