{"id":500,"date":"2013-08-14T14:13:11","date_gmt":"2013-08-14T12:13:11","guid":{"rendered":"http:\/\/www.zerfallskonstante.de\/?p=500"},"modified":"2015-03-09T14:02:58","modified_gmt":"2015-03-09T13:02:58","slug":"handbrakecli","status":"publish","type":"post","link":"https:\/\/www.zerfallskonstante.de\/?p=500","title":{"rendered":"HandBrakeCLI"},"content":{"rendered":"<p>BDMV_2_MKV:<\/p>\n<p>[bash]<br \/>\nHandBrakeCLI -i .\/&lt;INPUT_DIR&gt; -f mkv -o \/&lt;OUTPUT.mkv&gt; &#8211;no-dvdnav -4 -e x264 &#8211;x264-preset medium &#8211;x264-tune film -x &#8211;x264-profile high -m -q 20 -vfr -a 7 -E ffac3 -B 320 -6 dpl1 -w 1920 -l 1080 &#8211;strict-anamorphic &#8211;main-feature<br \/>\n[\/bash]<\/p>\n<p>DVD_2_MKV:<\/p>\n<p>[bash]<br \/>\nHandBrakeCLI -i &quot;.\/&lt;INPUT&gt;&quot;\/ -f mkv -o \/&lt;OUTPUT&gt;.mkv &#8211;no-dvdnav -4 -e x264 &#8211;x264-preset ultrafast &#8211;x264-tune film -x &#8211;x264-profile high -m -q 20 -vfr -a 1 -E ffac3 -B 320 -6 dpl1 &#8211;strict-anamorphic &#8211;main-feature<br \/>\n[\/bash]<\/p>\n<p><!--more--><\/p>\n<p><a href=\"https:\/\/trac.handbrake.fr\/wiki\/AnamorphicGuide\" target=\"_blank\">Guide to Anamorphic Encoding in HandBrake<\/a><br \/>\n<a href=\"https:\/\/trac.handbrake.fr\/wiki\/CLIGuide\" target=\"_blank\">Using HandBrakeCLI<\/a><\/p>\n<p>### Video Options&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>-e, &#8211;encoder Set video library encoder<br \/>\nOptions: x264\/ffmpeg4\/ffmpeg2\/theora<br \/>\n(default: ffmpeg4)<br \/>\n&#8211;x264-preset When using x264, selects the x264 preset:<br \/>\nultrafast\/superfast\/veryfast\/faster\/fast\/<br \/>\nmedium\/slow\/slower\/veryslow\/placebo<br \/>\n&#8211;x264-tune When using x264, selects the x264 tuning:<br \/>\nfilm\/animation\/grain\/stillimage\/psnr\/ssim\/<br \/>\nfastdecode\/zerolatency<br \/>\n-q, &#8211;quality Set video quality<\/p>\n<p>### Audio Options&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p style=\"padding-left: 30px;\">-a, &#8211;audio Select audio track(s), separated by commas<br \/>\n(&#8222;none&#8220; for no audio, &#8222;1,2,3&#8220; for multiple<br \/>\ntracks, default: first one).<br \/>\nMultiple output tracks can be used for one input.<br \/>\n-E, &#8211;aencoder Audio encoder(s):<br \/>\nfaac<br \/>\nffaac<br \/>\ncopy:aac<br \/>\nffac3<br \/>\ncopy:ac3<br \/>\ncopy:dts<br \/>\ncopy:dtshd<br \/>\nlame<br \/>\ncopy:mp3<br \/>\nvorbis<br \/>\nffflac<br \/>\ncopy<br \/>\ncopy:* will passthrough the corresponding<br \/>\naudio unmodified to the muxer if it is a<br \/>\nsupported passthrough audio type.<br \/>\nSeparated by commas for more than one audio track.<br \/>\n(default: faac for mp4, lame for mkv)<br \/>\n&#8211;audio-copy-mask Set audio codecs that are permitted when the<br \/>\n&#8222;copy&#8220; audio encoder option is specified<br \/>\n(aac\/ac3\/dts\/dtshd\/mp3, default: all).<br \/>\nSeparated by commas for multiple allowed options.<br \/>\n&#8211;audio-fallback Set audio codec to use when it is not possible<br \/>\nto copy an audio track without re-encoding.<br \/>\n-B, &#8211;ab &lt;kb\/s&gt; Set audio bitrate(s) (default: depends on the<br \/>\nselected codec, mixdown and samplerate)<br \/>\nSeparated by commas for more than one audio track.<br \/>\n-6, &#8211;mixdown Format(s) for surround sound downmixing<br \/>\nSeparated by commas for more than one audio track.<br \/>\n(mono\/stereo\/dpl1\/dpl2\/6ch, default: up to 6ch for ac3,<br \/>\nup to dpl2 for other encoders)<br \/>\n-R, &#8211;arate Set audio samplerate(s) (22.05\/24\/32\/44.1\/48 kHz)<br \/>\nSeparated by commas for more than one audio track.<br \/>\n-D, &#8211;drc Apply extra dynamic range compression to the audio,<br \/>\nmaking soft sounds louder. Range is 1.0 to 4.0<br \/>\n(too loud), with 1.5 &#8211; 2.5 being a useful range.<br \/>\nSeparated by commas for more than one audio track.<\/p>\n<p>### Filters&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p style=\"padding-left: 30px;\">-d, &#8211;deinterlace Deinterlace video with yadif\/mcdeint filter<br \/>\n(default 0:-1:-1:1)<br \/>\nor<br \/>\n&lt;fast\/slow\/slower&gt;<br \/>\n-5, &#8211;decomb Selectively deinterlaces when it detects combing<\/p>\n<p>(default: 7:2:6:9:80:16:16:10:20:20:4:2:50:24:1:-1)<\/p>\n<p>### Picture Settings&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p style=\"padding-left: 30px;\">-w, &#8211;width Set picture width<br \/>\n-l, &#8211;height Set picture height<br \/>\n&#8211;crop Set cropping values (default: autocrop)<br \/>\n&#8211;loose-crop Always crop to a multiple of the modulus<br \/>\n&lt;#&gt; Specifies the maximum number of extra pixels<br \/>\nwhich may be cropped (default: 15)<br \/>\n-Y, &#8211;maxHeight &lt;#&gt; Set maximum height<br \/>\n-X, &#8211;maxWidth &lt;#&gt; Set maximum width<br \/>\n&#8211;strict-anamorphic Store pixel aspect ratio in video stream<br \/>\n&#8211;loose-anamorphic Store pixel aspect ratio with specified width<br \/>\n&#8211;custom-anamorphic Store pixel aspect ratio in video stream and<br \/>\ndirectly control all parameters.<br \/>\n&#8211;modulus Set the number you want the scaled pixel dimensions<br \/>\nto divide cleanly by. Does not affect strict<br \/>\nanamorphic mode, which is always mod 2 (default: 16)<\/p>\n<p>### Source Options&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p style=\"padding-left: 30px;\">-i, &#8211;input Set input device<\/p>\n<p>### Destination Options&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p style=\"padding-left: 30px;\">-o, &#8211;output Set output file name<br \/>\n-f, &#8211;format Set output format (mp4\/mkv, default:<br \/>\nautodetected from file name)<br \/>\n-m, &#8211;markers Add chapter markers (mp4 and mkv output formats only)<br \/>\n-4, &#8211;large-file Use 64-bit mp4 files that can hold more than<br \/>\n4 GB. Note: Breaks iPod, PS3 compatibility.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>BDMV_2_MKV: [bash] HandBrakeCLI -i .\/&lt;INPUT_DIR&gt; -f mkv -o \/&lt;OUTPUT.mkv&gt; &#8211;no-dvdnav -4 -e x264 &#8211;x264-preset medium &#8211;x264-tune film -x &#8211;x264-profile high -m -q 20 -vfr -a 7 -E ffac3 -B 320 -6 dpl1 -w 1920 -l 1080 &#8211;strict-anamorphic &#8211;main-feature [\/bash] DVD_2_MKV: &hellip; <a href=\"https:\/\/www.zerfallskonstante.de\/?p=500\">Weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,12],"tags":[],"class_list":["post-500","post","type-post","status-publish","format-standard","hentry","category-allgemein","category-bash"],"_links":{"self":[{"href":"https:\/\/www.zerfallskonstante.de\/index.php?rest_route=\/wp\/v2\/posts\/500","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zerfallskonstante.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zerfallskonstante.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zerfallskonstante.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zerfallskonstante.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=500"}],"version-history":[{"count":15,"href":"https:\/\/www.zerfallskonstante.de\/index.php?rest_route=\/wp\/v2\/posts\/500\/revisions"}],"predecessor-version":[{"id":634,"href":"https:\/\/www.zerfallskonstante.de\/index.php?rest_route=\/wp\/v2\/posts\/500\/revisions\/634"}],"wp:attachment":[{"href":"https:\/\/www.zerfallskonstante.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=500"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zerfallskonstante.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=500"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zerfallskonstante.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}