HandBrakeCLI command line options
Sep 12, 2009 Linux
Syntax: HandBrakeCLI [options] -i
### General Handbrake Options------------------------------------------------
-h, --help Print help
-u, --update Check for updates and exit
-v, --verbose <#> Be verbose (optional argument: logging level)
-C, --cpu Set CPU count (default: autodetected)
-Z. --preset Use a built-in preset. Capitalization matters, and
if the preset name has spaces, surround it with
double quotation marks
-z, --preset-list See a list of available built-in presets
### Source Options-----------------------------------------------------------
-i, --input Set input device
-t, --title Select a title to encode (0 to scan only,
default: 1)
-L, --longest Select the longest title
-c, --chapters Select chapters (e.g. "1-3" for chapters
1 to 3, or "3" for chapter 3 only,
default: all chapters)
### Destination Options------------------------------------------------------
-o, --output Set output file name
-f, --format Set output format (avi/mp4/ogm/mkv, default:
autodetected from file name)
-m, --markers Add chapter markers (mp4 and mkv output formats only)
-4, --large-file Use 64-bit mp4 files that can hold more than
4 GB. Note: Breaks iPod, PS3 compatibility.
-O, --optimize Optimize mp4 files for HTTP streaming
-I, --ipod-atom Mark mp4 files so 5.5G iPods will accept them
### Video Options------------------------------------------------------------
-e, --encoder Set video library encoder (ffmpeg,xvid,
x264,theora default: ffmpeg)
-x, --x264opts Specify advanced x264 options in the
same style as mencoder:
option1=value1:option2=value2
-q, --quality Set video quality (0.0..1.0)
-Q, --cqp Use with -q for CQP instead of CRF
-S, --size Set target size
-b, --vb Set video bitrate (default: 1000)
-2, --two-pass Use two-pass mode
-T, --turbo When using 2-pass use the turbo options
on the first pass to improve speed
(only works with x264, affects PSNR by about 0.05dB,
and increases first pass speed two to four times)
-r, --rate Set video framerate (5/10/12/15/23.976/24/25/29.97)
Be aware that not specifying a framerate lets
HandBrake preserve a source's time stamps,
potentially creating variable framerate video
### Audio Options-----------------------------------------------------------
-a, --audio Select audio track(s), separated by commas
More than one output track can be used for one
input.
("none" for no audio, "1,2,3" for multiple
tracks, default: first one)
-E, --aencoder Audio encoder(s) (faac/lame/vorbis/ac3)
ac3 meaning passthrough
Separated by commas for more than one audio track.
(default: guessed)
-B, --ab Set audio bitrate(s) (default: 160)
Separated by commas for more than one audio track.
-6, --mixdown Format(s) for surround sound downmixing
Separated by commas for more than one audio track.
(mono/stereo/dpl1/dpl2/6ch, default: dpl2)
-R, --arate Set audio samplerate(s) (22.05/24/32/44.1/48 kHz)
Separated by commas for more than one audio track.
-D, --drc Apply extra dynamic range compression to the audio,
making soft sounds louder. Range is 1.0 to 4.0
(too loud), with 1.5 - 2.5 being a useful range.
Separated by commas for more than one audio track.
-A, --aname Audio track name(s),
Separated by commas for more than one audio track.
### Picture Settings---------------------------------------------------------
-w, --width Set picture width
-l, --height Set picture height
--crop Set cropping values (default: autocrop)
-Y, --maxHeight <#> Set maximum height
-X, --maxWidth <#> Set maximum width
-p, --pixelratio Store pixel aspect ratio in video stream
-P, --loosePixelratio Store pixel aspect ratio with specified width
Takes as optional arguments what number you want
the dimensions to divide cleanly by (default 16)
and the pixel ratio to use (default autodetected)
-M --color-matrix Set the color space signaled by the output
<601 or 709> (Bt.601 is mostly for SD content, Bt.709 for HD,
default: set by resolution)
### Filters---------------------------------------------------------
-d, --deinterlace Deinterlace video with yadif/mcdeint filter
(default 0:-1:-1:1)
or
-5, --decomb Selectively deinterlaces when it detects combing
(default: 1:2:6:9:80:16:16)
-9, --detelecine Detelecine (ivtc) video with pullup filter
Note: this filter drops duplicate frames to
restore the pre-telecine framerate, unless you
specify a constant framerate (--rate 29.97)
(default 1:1:4:4:0:0)
-8, --denoise Denoise video with hqdn3d filter
(default 4:3:6:4.5)
or
-7, --deblock Deblock video with pp7 filter
(default 5:2)
-g, --grayscale Grayscale encoding
### Subtitle Options------------------------------------------------------------
-s, --subtitle Select subtitle (default: none)
-U, --subtitle-scan Scan for subtitles in an extra 1st pass, and choose
the one that's only used 10 percent of the time
or less. This should locate subtitles for short
foreign language segments. Best used in conjunction
with --subtitle-forced.
-F, --subtitle-forced Only display subtitles from the selected stream if
the subtitle has the forced flag set. May be used in
conjunction with --subtitle-scan to auto-select
a stream if it contains forced subtitles.
-N, --native-language Select subtitles with this language if it does not
match the Audio language. Provide the language's
iso639-2 code (fre, eng, spa, dut, et cetera)
Related posts:




Leave a Reply