Okay.. I got this software from here.
Build instructions: (build instructions)
svn co svn://svn.code.sf.net/p/gpac/code/trunk/gpac gpac
Thoughts of Digitalw00t
Okay.. I got this software from here.
Build instructions: (build instructions)
svn co svn://svn.code.sf.net/p/gpac/code/trunk/gpac gpac
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
-z, –preset-list See a list of available built-in presets
–dvdnav Use dvdnav (Experimental)
### Source Options———————————————————–
-i, –input
-t, –title
-L, –longest Select the longest title
-c, –chapters
–angle
–previews <#:B> Select how many preview images are generated (max 30), and whether or not they’re stored to disk (0 or 1). (default: 10:0)
–start-at-preview <#> Start encoding at a given preview.
–stop-at
### Destination Options——————————————————
-o, –output
-f, –format
-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
-x, –x264opts
option1=value1:option2=value2
-q, –quality
-Q, –cqp Use with -q for CQP instead of CRF
-S, –size
-b, –vb
-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
–vfr, –cfr, –pfr Select variable, constant or peak-limited frame rate control. VFR preserves the source timing. CFR makes the output constant rate at the rate given by the -r flag (or the source’s
average rate if no -r is given). PFR doesn’t allow the rate to go over the rate specified with the -r flag but won’t change the source timing if it’s below that rate. If none of these flags are given, the default is –cfr when -r is given and -vfr otherwise
### Audio Options———————————————————–
-a, –audio
input. (“none” for no audio, “1,2,3” for multiple tracks, default: first one)
-E, –aencoder
-B, –ab
-6, –mixdown
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
-A, –aname
### Picture Settings———————————————————
-w, –width
-l, –height
–crop
-Y, –maxHeight <#> Set maximum height
-X, –maxWidth <#> Set maximum width
–strict-anamorphic Store pixel aspect ratio in video stream
–loose-anamorphic Store pixel aspect ratio with specified width
–custom-anamorphic Store pixel aspect ratio in video stream and directly control all parameters.
–display-width Set the width to scale the actual pixels to
–keep-display-aspect Preserve the source’s display aspect ratio when using custom anamorphic
–pixel-aspect Set a custom pixel aspect for custom anamorphic
(–display-width and –pixel-aspect are mutually exclusive and the former will override the latter)
–itu-par Use wider, ITU pixel aspect values for loose and custom anamorphic, useful with underscanned sources
–modulus Set the number you want the scaled pixel dimensions
-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
or
-5, –decomb Selectively deinterlaces when it detects combing
-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)
-8, –denoise Denoise video with hqdn3d filter
or
-7, –deblock Deblock video with pp7 filter
-g, –grayscale Grayscale encoding
### Subtitle Options————————————————————
-s, –subtitle
More than one output track can be used for one
input.
(“1,2,3” for multiple tracks.
A special track name “scan” adds an extra 1st pass.
This extra pass scans subtitles matching the
language of the first audio or the language
selected by –native-language.
The one that’s only used 10 percent of the time
or less is selected. 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
conjunction with “scan” track to auto-select
a stream if it contains forced subtitles.
Separated by commas for more than one audio track.
(“1,2,3” for multiple tracks.
If “string” is omitted, the first trac is forced.
–subtitle-burn “Burn” the selected subtitle into the video track
–subtitle-default Flag the selected subtitle as the default subtitle
means no subtitle will be automatically displayed
If “number” is omitted, the first trac is default.
-N, –native-language Specifiy the your language preference. When the first
select the first subtitle that does. When used in
conjunction with –native-dub the audio track is
changed in preference to subtitles. Provide the
language’s iso639-2 code (fre, eng, spa, dut, et cetera)
–native-dub Used in conjunction with –native-language
requests that if no audio tracks are selected the
default selected audio track will be the first one
that matches the –native-language. If there are no
matching audio tracks then the first matching
subtitle track is used instead.
–srt-file
–srt-codeset Character codeset(s) that the SRT file(s) are
Use ‘iconv -l’ for a list of valid
codesets. If not specified latin1 is assumed
–srt-offset Offset in milli-seconds to apply to the SRT file(s)
Offsets may be negative.
–srt-lang
for the SRT file(s) separated by commas. If not specified
then ‘und’ is used.
–srt-default Flag the selected srt as the default subtitle
means no subtitle will be automatically displayed
If “number” is omitted, the first srt is default.
“number” is an 1 based index into the srt-file list
Investigating linux media servers