{"id":43,"date":"2006-10-21T00:13:55","date_gmt":"2006-10-20T22:13:55","guid":{"rendered":"http:\/\/katastrophos.net\/andre\/blog\/software\/itunes-encoder-scripts\/"},"modified":"2008-01-16T13:26:40","modified_gmt":"2008-01-16T11:26:40","slug":"itunes-encoder-scripts","status":"publish","type":"page","link":"https:\/\/katastrophos.net\/andre\/blog\/software\/itunes-encoder-scripts\/","title":{"rendered":"iTunes Alternative Encoders"},"content":{"rendered":"<h4>What is it?<\/h4>\n<p>The iTunes Alternative Encoders pack includes two AppleScripts for iTunes that allow to (re-)encode almost any audio file to either Ogg Vorbis using oggenc or MP3 using LAME.<br \/>\nSo, why is it different from similar scripts? It offers support for all audio filetypes supported by iTunes and Quicktime due to the use of &#8220;mov123&#8221; by the <a target=\"_blank\" href=\"http:\/\/www.slimdevices.com\/su_downloads.html\">slimserver<\/a> project. This includes Apple Lossless, AAC, Audio-CDs and standard MP3! Even audio tracks in video files can be re-encoded to Ogg Vorbis\/MP3.<\/p>\n<p>It also adds support for structured and flat storage. The &#8220;flat&#8221; mode writes the output files directly to the destination directory, whereas the &#8220;structured&#8221; mode writes those encoded files ordered in subdirectories similar to the way iTunes does when it is managing music files. All this can be customized by means of editing some simple options in the scripts.<br \/>\nSince version 1.2 compilations are correctly handled too.<br \/>\nVersion 1.4 introduced a feature to split up the encoding process into simultaneously running parts, which essentially is a form of multithreading. This means you can take advantage of your dual-core \/ quad-core \/ multi-CPU system when encoding large amounts of files. Read below how to configure this.<\/p>\n<h4>Screenshots<\/h4>\n<p><a href=\"http:\/\/katastrophos.net\/andre\/blog\/wp-content\/photos\/iTunesAlternativeEncoders\/iTunesEncoders-iTunesScriptMenu.png\" target=\"_blank\" title=\"{iTunesAlternativeEncoders} New items in the iTunes Script menu\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/katastrophos.net\/andre\/blog\/wp-content\/photos\/iTunesAlternativeEncoders\/thumb_iTunesEncoders-iTunesScriptMenu.png\" alt=\"{iTunesAlternativeEncoders} New items in the iTunes Script menu\" width=\"130\" height=\"32\" \/><\/a><a href=\"http:\/\/katastrophos.net\/andre\/blog\/wp-content\/photos\/iTunesAlternativeEncoders\/iTunesEncoders-Dialog.png\" target=\"_blank\" title=\"{iTunesAlternativeEncoders} Settings dialog of the Ogg Vorbis Encoder script\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/katastrophos.net\/andre\/blog\/wp-content\/photos\/iTunesAlternativeEncoders\/thumb_iTunesEncoders-Dialog.png\" alt=\"{iTunesAlternativeEncoders} Settings dialog of the Ogg Vorbis Encoder script\" width=\"130\" height=\"71\" \/><\/a><a href=\"http:\/\/katastrophos.net\/andre\/blog\/wp-content\/photos\/iTunesAlternativeEncoders\/iTunesEncoders-TermOutput1.png\" target=\"_blank\" title=\"{iTunesAlternativeEncoders} Ogg Vorbis encoder just started\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/katastrophos.net\/andre\/blog\/wp-content\/photos\/iTunesAlternativeEncoders\/thumb_iTunesEncoders-TermOutput1.png\" alt=\"{iTunesAlternativeEncoders} Ogg Vorbis encoder just started\" width=\"130\" height=\"76\" \/><\/a><a href=\"http:\/\/katastrophos.net\/andre\/blog\/wp-content\/photos\/iTunesAlternativeEncoders\/iTunesEncoders-TermOutput2.png\" target=\"_blank\" title=\"{iTunesAlternativeEncoders} Ogg Vorbis encoder finished encoding the first track\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/katastrophos.net\/andre\/blog\/wp-content\/photos\/iTunesAlternativeEncoders\/thumb_iTunesEncoders-TermOutput2.png\" alt=\"{iTunesAlternativeEncoders} Ogg Vorbis encoder finished encoding the first track\" width=\"130\" height=\"75\" \/><\/a><\/p>\n<h4>Download<\/h4>\n<p><a class=\"downloadlink\" href=\"http:\/\/katastrophos.net\/downloads\/iTunesAlternativeEncoders1.5.zip\">iTunesAlternativeEncoders1.5.zip (OS X Universal)<\/a><\/p>\n<p>This file includes statically compiled Universal binaries of the <a href=\"http:\/\/www.geocities.jp\/aoyoume\/aotuv\/\" target=\"_blank\">aoTuV (beta 5) enhanced version<\/a> of oggenc and mov123. Both are optimized for G4 and Intel Core. The sourcecodes are available <a href=\"http:\/\/svn.slimdevices.com\/repos\/slim\/trunk\/tools\/mov123\/\" target=\"_blank\">here<\/a>, <a href=\"http:\/\/www.xiph.org\/downloads\/\" target=\"_blank\">here<\/a> and <a href=\"http:\/\/www.geocities.jp\/aoyoume\/aotuv\/\" target=\"_blank\">here<\/a>.<br \/>\nDue to legal and patent restrictions I can&#8217;t supply a compiled universal binary of LAME.<br \/>\nYou&#8217;ll need to get it from the usual sources: <a href=\"http:\/\/www.rarewares.org\/files\/mp3\/Lame-3.97.dmg\">RareWares<\/a> or <a href=\"http:\/\/fink.sf.net\" target=\"_blank\">Fink<\/a><\/p>\n<h4>Installation<\/h4>\n<p>Unzip the zip file via the Finder. Open the extracted folder. Copy the &#8220;Utilities&#8221; directory along with both scripts to your <strong>\/Users\/{YOU}\/Library\/iTunes\/Scripts<\/strong> directory, where {YOU} is your account name. You may have to create the &#8220;Scripts&#8221; folder if you don&#8217;t have any other iTunes scripts installed.<br \/>\nThe universal binaries are located in the subdirectory &#8220;Utilities&#8221;. By default the scripts will automatically use the binaries in that directory.<br \/>\nIf you want to use your own binaries in a different location, make sure to delete the files in the Utilities directory. Alternative you may want to edit the scripts and change the properties <em>oggencCheck<\/em>, <em>lameCheck<\/em>, <em>mov123Check<\/em> to <em>false<\/em> and specify the real locations of the binaries by setting the properties <em>oggencBase<\/em>, <em>lameBase<\/em>, <em>mov123Base<\/em>.<\/p>\n<h4>Configuration &#038; customization<\/h4>\n<p>Both scripts are without frills. There isn&#8217;t any UI to configure the various options (and there probably will never be).<br \/>\nIn order to customize the settings you&#8217;ll need to use the AppleScript editor included with OS X. Normally, if you double-click one of the scripts, the system will open it in the script editor.<br \/>\nYou should see various properties. Most of them are self-explanatory or carry a short description.<br \/>\nProbably the most important properties are:<\/p>\n<p><strong>property (lame|oggenc)Options = &#8220;&#8230;&#8221;<\/strong><\/p>\n<p>This property contains the command line options for the encoder.<br \/>\nThe following links will show some possible settings:<br \/>\n<em>oggencOptions<\/em> : <a href=\"http:\/\/www.die.net\/doc\/linux\/man\/man1\/oggenc.1.html\" target=\"_blank\"><strong>oggenc manpage<\/strong><\/a> (recommended setting: use -q n ; don&#8217;t force a bitrate as this will probably degrade quality.)<br \/>\n<em>lameOptions<\/em> : <a href=\"http:\/\/www.die.net\/doc\/linux\/man\/man1\/lame.1.html\" target=\"_blank\"><strong>LAME manpage<\/strong><\/a> | <a href=\"http:\/\/www.hydrogenaudio.org\/forums\/index.php?showtopic=28124\" target=\"_blank\"><strong>List of recommended LAME settings<\/strong><\/a><\/p>\n<p>&#8230;<br \/>\n<strong>property baseDestination : &#8220;Volumes:Data:Music:sorted:MobileMP3:&#8221;<\/strong><em> &#8212; Encoding Destination<\/em><\/p>\n<p>Change this to whereever you want to save your encoded files by default.<br \/>\nFor instance if you wanted to save the encoded files somewhere in your home directory, you may use something like this: &#8220;Users:{YOU}:Music:Encoded Files:&#8221;, where {YOU} is your account name.<br \/>\n&#8230;<br \/>\n<strong>property threadCount : 1<\/strong><em> &#8212; number of &#8220;threads&#8221; to split the encoding into, use this to take advantage of multiple CPUs \/ cores<\/em><\/p>\n<p>The thread count is set to 1 by default, which will spawn only one encoding process. While this is optimal on single-core single-CPU systems, this doesn&#8217;t make perfect use of that multi-core\/multi-CPU beast on or under your desk. ;)<br \/>\nFor instance change this to 2 if you want to stress your dual-core or dual-CPU system.<br \/>\n<strong>Rule of thumb is threadCount = number of CPUs \/ cores<\/strong>.<\/p>\n<p>Once you&#8217;ve changed the properties, save the script.<\/p>\n<h4>Changes<\/h4>\n<p><strong>Version 1.5 (2007-09-22)<\/strong>:<br \/>\n+ Fixed some tag encoding issues in the Ogg Vorbis script:<br \/>\n  All tags will now be encoded in UTF-8, so Umlauts and other special characters will work okay.<br \/>\n<a class=\"downloadlink\" href=\"http:\/\/katastrophos.net\/downloads\/iTunesAlternativeEncoders1.5.zip\">iTunesAlternativeEncoders1.5.zip (OS X Universal)<\/a><\/p>\n<p><strong>Version 1.4 (2007-03-08)<\/strong>:<br \/>\n+ support for splitting encoding up into multiple &#8220;threads&#8221; to take advantage of multiple CPUs \/ cores<br \/>\n  Adjust property threadCount to a value higher than 1 to enable support. Ideally set this to the number of CPUs or cores in your system.<br \/>\n+ faster startup<br \/>\n<a class=\"downloadlink\" href=\"http:\/\/katastrophos.net\/downloads\/iTunesAlternativeEncoders1.4.zip\">iTunesAlternativeEncoders1.4.zip (OS X Universal)<\/a><\/p>\n<p><strong>Version 1.3 (2006-11-30)<\/strong>:<br \/>\n+ Universal binary of Ogg Vorbis Encoder updated to aoTuV beta 5<br \/>\n<a class=\"downloadlink\" href=\"http:\/\/katastrophos.net\/downloads\/iTunesAlternativeEncoders1.3.zip\">iTunesAlternativeEncoders1.3.zip (OS X Universal)<\/a><\/p>\n<p><strong>Version 1.2 (2006-10-21)<\/strong>:<br \/>\n+ made compatible with iTunes 7<br \/>\n+ support for compilations added<br \/>\n+ modified LAME script included<br \/>\n+ optimized universal binaries of mov123 and aoTuV (beta 4.51 \/ Release 1) enhanced Ogg Vorbis Encoder bundled<br \/>\n<a class=\"downloadlink\" href=\"http:\/\/katastrophos.net\/downloads\/iTunesAlternativeEncoders1.2.zip\">iTunesAlternativeEncoders1.2.zip (OS X Universal)<\/a><\/p>\n<p><strong>Version 1.1 (2006-05-15)<\/strong>:<br \/>\n+ merged several changes from the original iTunes-LAME script 1.0.4b<br \/>\n+ automatically determines location of oggenc and mov123 (at least it tries to)<br \/>\n+ supports reencoding every media type supported by Quicktime and iTunes<br \/>\n  (even audio in video files, Apple Lossless Files and direct ripping from Audio CD)<br \/>\n+ supports flat and structured storage modes:<br \/>\n  * flat structure is enabled by default for all playlists except &#8220;Library&#8221; and &#8220;Bibliothek&#8221; (Library in german version of iTunes)<br \/>\n    &#8211; flat structure will directly write encoded output files into the destination directory<br \/>\n  * structured storage will write encoded output files into a directory structure defined by the &#8220;outdirTemplate&#8221; property below.<\/p>\n<form action=\"https:\/\/www.paypal.com\/cgi-bin\/webscr\" method=\"post\">\n<input type=\"hidden\" name=\"cmd\" value=\"_xclick\"\/><br \/>\n<input type=\"hidden\" name=\"business\" value=\"Andre@Beckedorf.net\"\/><br \/>\n<input type=\"hidden\" name=\"item_name\" value=\"Katastrophos.net Open Source Project (iTunes Alternative Encoders)\"\/><br \/>\n<input type=\"hidden\" name=\"no_shipping\" value=\"1\"\/><br \/>\n<input type=\"hidden\" name=\"cn\" value=\"Comments\"\/><br \/>\n<input type=\"hidden\" name=\"currency_code\" value=\"USD\"\/><br \/>\n<input type=\"hidden\" name=\"tax\" value=\"0\"\/><br \/>\n<input type=\"hidden\" name=\"lc\" value=\"EN\"\/><br \/>\n<input type=\"hidden\" name=\"bn\" value=\"PP-DonationsBF\"\/><br \/>\n<input type=\"image\" src=\"https:\/\/www.paypal.com\/en_US\/i\/btn\/x-click-butcc-donate.gif\" border=\"0\" name=\"submit\" alt=\"Make payments with PayPal - it's fast, free and secure!\"\/><\/form>\n","protected":false},"excerpt":{"rendered":"<p>What is it? The iTunes Alternative Encoders pack includes two AppleScripts for iTunes that allow to (re-)encode almost any audio file to either Ogg Vorbis using oggenc or MP3 using LAME. So, why is it different from similar scripts? It offers support for all audio filetypes supported by iTunes and Quicktime due to the use [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":42,"menu_order":0,"comment_status":"open","ping_status":"open","template":"page-comments.php","meta":{"footnotes":""},"class_list":["post-43","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/pages\/43"}],"collection":[{"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/comments?post=43"}],"version-history":[{"count":0,"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/pages\/43\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/pages\/42"}],"wp:attachment":[{"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/media?parent=43"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}