{"id":30,"date":"2006-05-15T01:22:38","date_gmt":"2006-05-14T23:22:38","guid":{"rendered":"http:\/\/katastrophos.net\/andre\/blog\/?p=30"},"modified":"2006-10-26T03:45:48","modified_gmt":"2006-10-26T01:45:48","slug":"itunes-ogg-vorbis-encoding-script","status":"publish","type":"post","link":"https:\/\/katastrophos.net\/andre\/blog\/2006\/05\/15\/itunes-ogg-vorbis-encoding-script\/","title":{"rendered":"Ogg Vorbis Encoding Script for iTunes"},"content":{"rendered":"<p><strong>Update:<\/strong> This has been renamed to <strong>iTunes Alternative Encoders<\/strong>. Get the new version <a href=\"http:\/\/katastrophos.net\/andre\/blog\/software\/itunes-encoder-scripts\/\"><strong>here<\/strong><\/a>.<\/p>\n<p>Lately I&#8217;ve been looking for a good way to re-encode my iTunes music files for use in my Zaurus. Since I don&#8217;t need to have 256 kbit\/s MP3s or Apple Lossless files with those el cheapo headphones, the best way to go is with Vorbis and its excellent properties at 96 kbit\/s. Compared with other formats, the quality is pretty nice.<br \/>\nThere are already several attempts at creating iTunes scripts to re-encode to Ogg Vorbis or Lame. One of them is <a target=\"_blank\" href=\"http:\/\/ramsay.webhop.org\/\">Lincoln Ramsay&#8217;s<\/a> &#8220;<a target=\"_blank\" href=\"http:\/\/members.optusnet.com.au\/lbramsay\/misc\/itunes-ogg.html\">Encode with oggenc<\/a>&#8221; iTunes script. It&#8217;s pretty neat already. However, it didn&#8217;t fully satisfy my special requirements. ;)<\/p>\n<p><!--more--> So, here is my modified version of his script:<\/p>\n<p>It adds 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.<br \/>\nIt 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 customised by means of editing some simple options.<\/p>\n<p>Download my script here: <a class=\"downloadlink\" href=\"http:\/\/www.katastrophos.net\/downloads\/iTunesOggVorbisEncoder1.0.zip\">iTunesOggVorbisEncoder1.0.zip<\/a><br \/>\nAlso, you&#8217;ll need to install oggenc and mov123:<\/p>\n<p>If you have <a target=\"_blank\" href=\"http:\/\/fink.sf.net\">Fink<\/a>, just install the package &#8220;vorbis-tools&#8221; and you&#8217;ll get oggenc. Alternatively you can download an older version right here: <a target=\"_blank\" href=\"http:\/\/www.illadvised.com\/~jordy\/\">http:\/\/www.illadvised.com\/~jordy\/<\/a> (Note: this is a PPC-only binary)<br \/>\nAs for mov123, I have compiled a universal binary (Sourcecode is <a href=\"http:\/\/svn.slimdevices.com\/repos\/slim\/trunk\/tools\/mov123\/\">here<\/a>). You can download it <a href=\"http:\/\/www.katastrophos.net\/downloads\/mov123.zip\">here<\/a>. Just copy this binary to \/usr\/local\/bin.<\/p>\n<p>Make sure to edit the options in my script file to point to the right locations of oggenc and mov123.<br \/>\nNow, save the script to your homedirectory ~\/Library\/iTunes\/Scripts and restart your iTunes. The script should now appear in the script menu.<\/p>\n<p>In order to re-encode, just select some files and execute the script. If you select files from your library, these will be encoded and saved in &#8220;structured&#8221; mode as described above. Files selected in playlists are saved in &#8220;flat&#8221; mode by default. You can always change the behavior be editing the option &#8220;structuredPlaylists&#8221; within the script file.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Update: This has been renamed to iTunes Alternative Encoders. Get the new version here. Lately I&#8217;ve been looking for a good way to re-encode my iTunes music files for use in my Zaurus. Since I don&#8217;t need to have 256 kbit\/s MP3s or Apple Lossless files with those el cheapo headphones, the best way to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[18,8,6],"class_list":["post-30","post","type-post","status-publish","format-standard","hentry","tag-itunes","tag-os-x","tag-zaurus"],"_links":{"self":[{"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/posts\/30"}],"collection":[{"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/types\/post"}],"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=30"}],"version-history":[{"count":0,"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/posts\/30\/revisions"}],"wp:attachment":[{"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/media?parent=30"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/categories?post=30"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/tags?post=30"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}