Linux command
handbrake 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Convert video to MP4
HandBrakeCLI -i [input.mkv] -o [output.mp4]
Use preset
HandBrakeCLI -i [input.mkv] -o [output.mp4] --preset="Fast 1080p30"
Specify quality
HandBrakeCLI -i [input.mkv] -o [output.mp4] -q [20]
Convert DVD
HandBrakeCLI -i [/dev/dvd] -o [output.mp4]
List presets
HandBrakeCLI --preset-list
Extract specific title
HandBrakeCLI -i [input.mkv] -o [output.mp4] -t [2]
说明
HandBrake is an open-source video transcoder. HandBrakeCLI is the command-line interface for batch processing, scripting, and headless operation. It supports various input formats including DVDs, Blu-rays, and common video files, outputting to MP4, MKV, and WebM containers.
参数
- -i _source_
- Input file or device.
- -o _file_
- Output file.
- -t _title_
- Title number to encode.
- --preset _name_
- Use preset configuration.
- -q _quality_
- Quality (0-51, lower is better).
- -e _encoder_
- Video encoder (x264, x265, nvenc).
- -E _encoder_
- Audio encoder (aac, mp3, flac).
- -B _bitrate_
- Audio bitrate.
- -r _fps_
- Framerate.
- --width _pixels_
- Output width.
- --height _pixels_
- Output height.
FAQ
What is the handbrake command used for?
HandBrake is an open-source video transcoder. HandBrakeCLI is the command-line interface for batch processing, scripting, and headless operation. It supports various input formats including DVDs, Blu-rays, and common video files, outputting to MP4, MKV, and WebM containers.
How do I run a basic handbrake example?
Run `HandBrakeCLI -i [input.mkv] -o [output.mp4]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -i _source_ do in handbrake?
Input file or device.