Difference between revisions of "HandBrakeCLI"

From ArchWiki
Jump to: navigation, search
m
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{stub}}
+
[[Category:Audio/Video]]
[[Category:Audio/Video (English)]]
+
{{i18n|HandBrakeCLI}}
+
 
+
 
{{Article summary start}}
 
{{Article summary start}}
 
{{Article summary text|This article attempts to walk users through the installation and basic usage and configuration of HandBrakeCLI.}}
 
{{Article summary text|This article attempts to walk users through the installation and basic usage and configuration of HandBrakeCLI.}}
 
{{Article summary end}}
 
{{Article summary end}}
  
== Introduction ==
 
 
[http://handbrake.fr/ HandBrakeCLI] is command-line driven interface to a collection of built-in libraries which enables the decoding, encoding and conversion of audio and video streams to [[Wikipedia:MPEG-4_Part_14|MP4]] (M4V) and [[Wikipedia:Matroska|MKV]] container formats with an emphasis on [[Wikipedia:H.264/MPEG-4_AVC|H.264/MPEG-4 AVC]] encoding through [http://www.videolan.org/developers/x264.html x264].
 
[http://handbrake.fr/ HandBrakeCLI] is command-line driven interface to a collection of built-in libraries which enables the decoding, encoding and conversion of audio and video streams to [[Wikipedia:MPEG-4_Part_14|MP4]] (M4V) and [[Wikipedia:Matroska|MKV]] container formats with an emphasis on [[Wikipedia:H.264/MPEG-4_AVC|H.264/MPEG-4 AVC]] encoding through [http://www.videolan.org/developers/x264.html x264].
  
 
== Package installation ==
 
== Package installation ==
{{Package Official|HandBrakeCLI}} is part of the [[Official_repositories#.5Bcommunity.5D|official Arch Linux [community] repository]].
+
[[pacman|Install]] {{Pkg|handbrake-cli}} from the [[Official Repositories]].
 
+
{{Cli|# pacman -S handbrake-cli}}
+
  
 
== Encoding examples ==
 
== Encoding examples ==
 +
{{Accuracy|Single-pass and Two-pass sections are the same?}}
  
<pre style='overflow:auto'>
+
=== Single-pass x264 (very high-quality) ===
 +
{{bc|1=
 
HandBrakeCLI -i X-Men.First.Class.2011.vob -o X-Men.First.Class.2011.mkv -E lame -B 160k -6 stereo -R 48000 -e x264 -x b_adapt=2:bframes=8:direct=auto:fast_pskip=0:deblock=-1,-1:psy-rd=1,0.15:me=umh:me_range=24:partitions=all:ref=16:subq=10:trellis=2:rc_lookahead=60:frameref=15:threads=auto -s1 -S 2250 -2 -v2
 
HandBrakeCLI -i X-Men.First.Class.2011.vob -o X-Men.First.Class.2011.mkv -E lame -B 160k -6 stereo -R 48000 -e x264 -x b_adapt=2:bframes=8:direct=auto:fast_pskip=0:deblock=-1,-1:psy-rd=1,0.15:me=umh:me_range=24:partitions=all:ref=16:subq=10:trellis=2:rc_lookahead=60:frameref=15:threads=auto -s1 -S 2250 -2 -v2
</pre>
+
}}
 +
 
 +
=== Two-pass x264 (very high-quality) ===
 +
{{bc|1=
 +
HandBrakeCLI -i X-Men.First.Class.2011.vob -o X-Men.First.Class.2011.mkv -E lame -B 160k -6 stereo -R 48000 -e x264 -x b_adapt=2:bframes=8:direct=auto:fast_pskip=0:deblock=-1,-1:psy-rd=1,0.15:me=umh:me_range=24:partitions=all:ref=16:subq=10:trellis=2:rc_lookahead=60:frameref=15:threads=auto -s1 -S 2250 -2 -v2
 +
}}
  
 
ULTRAFAST TESTING
 
ULTRAFAST TESTING
  
<pre style='overflow:auto'>
+
{{bc|1=
 
HandBrakeCLI -i Hostel.II.vob -o Hostel.II.mkv -E lame -B 128k -6 dpl2 -R 48000 -e x264 -x ref=1:bframes=0:cabac=0:8x8dct=0:weightp=0:me=dia:subq=0:rc-lookahead=0:mbtree=0:analyse=none:trellis=0:aq-mode=0:scenecut=0:no-deblock=1:threads=auto -s1 -S 750 -v
 
HandBrakeCLI -i Hostel.II.vob -o Hostel.II.mkv -E lame -B 128k -6 dpl2 -R 48000 -e x264 -x ref=1:bframes=0:cabac=0:8x8dct=0:weightp=0:me=dia:subq=0:rc-lookahead=0:mbtree=0:analyse=none:trellis=0:aq-mode=0:scenecut=0:no-deblock=1:threads=auto -s1 -S 750 -v
</pre>
+
}}
 +
 
 +
== Adding subtitles ==
 +
{{Expansion|TODO.}}

Revision as of 15:25, 13 June 2012

Summary help replacing me
This article attempts to walk users through the installation and basic usage and configuration of HandBrakeCLI.

HandBrakeCLI is command-line driven interface to a collection of built-in libraries which enables the decoding, encoding and conversion of audio and video streams to MP4 (M4V) and MKV container formats with an emphasis on H.264/MPEG-4 AVC encoding through x264.

Package installation

Install handbrake-cli from the Official Repositories.

Encoding examples

Tango-inaccurate.pngThe factual accuracy of this article or section is disputed.Tango-inaccurate.png

Reason: Single-pass and Two-pass sections are the same? (Discuss in Talk:HandBrakeCLI#)

Single-pass x264 (very high-quality)

HandBrakeCLI -i X-Men.First.Class.2011.vob -o X-Men.First.Class.2011.mkv -E lame -B 160k -6 stereo -R 48000 -e x264 -x b_adapt=2:bframes=8:direct=auto:fast_pskip=0:deblock=-1,-1:psy-rd=1,0.15:me=umh:me_range=24:partitions=all:ref=16:subq=10:trellis=2:rc_lookahead=60:frameref=15:threads=auto -s1 -S 2250 -2 -v2

Two-pass x264 (very high-quality)

HandBrakeCLI -i X-Men.First.Class.2011.vob -o X-Men.First.Class.2011.mkv -E lame -B 160k -6 stereo -R 48000 -e x264 -x b_adapt=2:bframes=8:direct=auto:fast_pskip=0:deblock=-1,-1:psy-rd=1,0.15:me=umh:me_range=24:partitions=all:ref=16:subq=10:trellis=2:rc_lookahead=60:frameref=15:threads=auto -s1 -S 2250 -2 -v2

ULTRAFAST TESTING

HandBrakeCLI -i Hostel.II.vob -o Hostel.II.mkv -E lame -B 128k -6 dpl2 -R 48000 -e x264 -x ref=1:bframes=0:cabac=0:8x8dct=0:weightp=0:me=dia:subq=0:rc-lookahead=0:mbtree=0:analyse=none:trellis=0:aq-mode=0:scenecut=0:no-deblock=1:threads=auto -s1 -S 750 -v

Adding subtitles

Tango-view-fullscreen.pngThis article or section needs expansion.Tango-view-fullscreen.png

Reason: TODO. (Discuss in Talk:HandBrakeCLI#)