{"id":1063,"date":"2013-10-16T23:19:43","date_gmt":"2013-10-17T03:19:43","guid":{"rendered":"http:\/\/www.pressleypress.com\/blog\/?p=1063"},"modified":"2013-10-16T23:19:43","modified_gmt":"2013-10-17T03:19:43","slug":"simple-handbrake-cli-batch-file","status":"publish","type":"post","link":"https:\/\/www.pressleypress.com\/blog\/?p=1063","title":{"rendered":"Simple Handbrake CLI Batch File"},"content":{"rendered":"<p>I was looking for a simple bat file for HandBrake CLI to fascilitate the transcoding all my videos in a specific directory, but didn&#8217;t really find one online. So I wrote this one. Hopefully, someone will find a use for it.<\/p>\n<p>For those not familiar with batch scripts, this particular script changes to the F: drive, changes to the directory &#8220;Movies&#8221;, and then for each file with the extension &#8220;.vob&#8221; it runs Handbrake, transcodes the video using the &#8220;AppleTV 3&#8221; preset, and then deletes the old video file.<\/p>\n<p>@echo off<br \/>\nf:<br \/>\ncd \\Movies<br \/>\nFOR %%! IN (&#8220;*.vob&#8221;) DO (<br \/>\nc:\\handbrake\\HandbrakeCLI.exe -i %%! -o %%!.mp4 &#8211;preset=^&#8221;AppleTV 3^&#8221;<br \/>\ndel \/Q %%!<br \/>\n)<br \/>\nc:<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was looking for a simple bat file for HandBrake CLI to fascilitate the transcoding all my videos in a specific directory, but didn&#8217;t really find one online. So I wrote this one. Hopefully, someone &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[3],"tags":[],"class_list":["post-1063","post","type-post","status-publish","format-standard","hentry","category-computers"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p32FB4-h9","jetpack-related-posts":[{"id":1149,"url":"https:\/\/www.pressleypress.com\/blog\/?p=1149","url_meta":{"origin":1063,"position":0},"title":"Stop your Macbook from sleeping when lid closed (CLI)","author":"Matt","date":"October 7, 2014","format":false,"excerpt":"The\u00a0caffeinate\u00a0command is used to prevent a Mac from going to sleep. The simplest way to use this command is to run the following command in the terminal. Full Article","rel":"","context":"In &quot;Computers&quot;","block_context":{"text":"Computers","link":"https:\/\/www.pressleypress.com\/blog\/?cat=3"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":190,"url":"https:\/\/www.pressleypress.com\/blog\/?p=190","url_meta":{"origin":1063,"position":1},"title":"Changing a Domain Name Out From Under WordPress","author":"Matt","date":"September 24, 2008","format":false,"excerpt":"We recently changed Chrissy's shop's domain name, and it wreaked ravok on their website's WordPress installation. I pointed the domain to the right path on the web server, but the blog's settings were wrong in the MySQL database. (All the dynamic links were pointing to the old domain name, including\u2026","rel":"","context":"In &quot;Computers&quot;","block_context":{"text":"Computers","link":"https:\/\/www.pressleypress.com\/blog\/?cat=3"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":36,"url":"https:\/\/www.pressleypress.com\/blog\/?p=36","url_meta":{"origin":1063,"position":2},"title":"Safari and Downloading Embedded Video","author":"Matt","date":"July 25, 2006","format":false,"excerpt":"Here's an example of how brilliant Safari can be with the use of it's activity monitor. Do you have a video on YouTube that you like and wish you could save to your computer without using a screen capture utility? Here's an easy way to get what you're looking for.\u2026","rel":"","context":"In &quot;Computers&quot;","block_context":{"text":"Computers","link":"https:\/\/www.pressleypress.com\/blog\/?cat=3"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1147,"url":"https:\/\/www.pressleypress.com\/blog\/?p=1147","url_meta":{"origin":1063,"position":3},"title":"XCode File Comparison Tool (FileMerge.app)","author":"Matt","date":"October 2, 2014","format":false,"excerpt":"XCode comes with a file comparison tool. It's pretty basic, but gets the job done. Run the following from a command line to run it : open \/Applications\/Xcode.app\/Contents\/Applications\/FileMerge.app","rel":"","context":"In &quot;Computers&quot;","block_context":{"text":"Computers","link":"https:\/\/www.pressleypress.com\/blog\/?cat=3"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":547,"url":"https:\/\/www.pressleypress.com\/blog\/?p=547","url_meta":{"origin":1063,"position":4},"title":"OpenNMS &#8211; Configuring RRD Graph for SNMP Informant","author":"Matt","date":"February 19, 2010","format":false,"excerpt":"I struggled to create a report in the snmp-graph.properties file to show Logical Disk Percent Idle, but after some tinkering I got it to work. Here's how the report looks in the file... report.sinf.peridletm.name=Logical Disk Percent Idle (SNMP-Inf) report.sinf.peridletm.columns=sinfLDskPctIdleTm report.sinf.peridletm.type=sinfLDskInstance report.sinf.peridletm.propertiesValues=sinfLDskInstance report.sinf.peridletm.command=--title=\"Logical Disk {sinfLDskInstance} Percent Idle (SNMP-Informant)\" \\ DEF:utilization={rrd1}:sinfLDskPctIdleTm:AVERAGE \\\u2026","rel":"","context":"In &quot;Computers&quot;","block_context":{"text":"Computers","link":"https:\/\/www.pressleypress.com\/blog\/?cat=3"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1114,"url":"https:\/\/www.pressleypress.com\/blog\/?p=1114","url_meta":{"origin":1063,"position":5},"title":"Importing Your iPhoto Library Into Lightroom","author":"Matt","date":"May 19, 2014","format":false,"excerpt":"I've been using iPhoto almost since its creation, so naturally I've got a metric buttload of photos in its library. Now that I'm getting more serious about my photography, iPhoto just isn't going to cut it anymore, especially since it anti-aliases your photos when displayed on an LCD screen. I'm\u2026","rel":"","context":"In &quot;Computers&quot;","block_context":{"text":"Computers","link":"https:\/\/www.pressleypress.com\/blog\/?cat=3"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.pressleypress.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1063","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pressleypress.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pressleypress.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pressleypress.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pressleypress.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1063"}],"version-history":[{"count":1,"href":"https:\/\/www.pressleypress.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1063\/revisions"}],"predecessor-version":[{"id":1064,"href":"https:\/\/www.pressleypress.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1063\/revisions\/1064"}],"wp:attachment":[{"href":"https:\/\/www.pressleypress.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1063"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pressleypress.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1063"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pressleypress.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1063"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}