{"id":140,"date":"2005-04-26T19:02:22","date_gmt":"2005-04-27T00:02:22","guid":{"rendered":"http:\/\/lee.org\/blog\/archives\/2005\/04\/19\/how-to-use-cdex-and-flac-together\/"},"modified":"2007-06-16T18:49:41","modified_gmt":"2007-06-17T02:49:41","slug":"how-to-use-cdex-and-flac-together","status":"publish","type":"post","link":"https:\/\/www.lee.org\/blog\/2005\/04\/26\/how-to-use-cdex-and-flac-together\/","title":{"rendered":"How to use CDex and FLAC together"},"content":{"rendered":"<p>Trav started using FLAC a while ago to archive his music. At the time, I called him silly names because I knew that MP3 would do the same job in 1\/5 the space. But now when it comes time to archive my music, I instantly recognize that the choice is obvious. Gigabytes are cheap and getting cheaper, and I don&#8217;t know what format I&#8217;m going to want my music in the future; recompressing a lossy format like MP3 or even OGG can sometimes work out very poorly.<\/p>\n<p>I&#8217;m convinced that OGG is a better lossy compression format than MP3 because it gets a higher quality sound for the bits it uses. 192 kbit OGG uses less space and has possibly higher sound quality than 256 kbit MP3. (I say &#8220;possibly&#8221; because I can&#8217;t discern an acoustic difference between them. They are both &#8220;near perfect&#8221;)<\/p>\n<p>There are some non-obvious switches you have to set to use CDex and FLAC together. Here&#8217;s how:<\/p>\n<p><a href=\"http:\/\/cdexos.sourceforge.net\/\">CDex ripper<\/a>1.5.1, <a href=\"http:\/\/flac.sourceforge.net\/\">FLAC compression<\/a>1.1.2a<\/p>\n<p>From DarkRyder on <a href=\"http:\/\/cdexos.sourceforge.net\/boards\/index.php?showtopic=2127\">CDexos.sourceforge.net<\/a><\/p>\n<blockquote><p> Actually, ripping to FLAC is very easy in CDex, can be done on the fly, and doesn&#8217;t, thankfully, involve the CLI:<\/p>\n<p>1. Install the FLAC encoder from http:\/\/flac.sourceforge.net\/<br \/>\n2. In CDex, set the Encoder to &#8220;External Encoder&#8221;<br \/>\n3. Do not check &#8220;Don&#8217;t delete ripped WAV&#8230;&#8221;<br \/>\n4. Point the Encoder Path to flac.exe (mine is &#8220;C:\\Program Files\\FLAC\\flac.exe&#8221;, which is probably the default)<br \/>\n5. Set the Parameter String to <code>\"-8 -o %2 -T \"artist=%a\" -T \"title=%t\" -T \"album=%b\" -T \"date=%y\" -T \"tracknumber=%tn\/%tt\" -T \"genre=%g\" -\"<\/code> (this is where the magic happens; see below)<br \/>\n6. Bitrate is irrelevant (I left mine at 128)<br \/>\n7. File Extension is &#8220;flac&#8221;<br \/>\n8. You can check &#8220;Hide DOS box&#8230;&#8221; if you want (I don&#8217;t because it show progress, but you might not care)<br \/>\n9. Check both &#8220;Send WAV header&#8230;&#8221; and &#8220;On-the-fly&#8230;&#8221;<\/p>\n<p>Now ripping to FLAC will work just the same as ripping to any of the internally supported formats.<\/p>\n<p>If you&#8217;re interested in that giganto parameter string, here&#8217;s the breakdown:<br \/>\n-8: Compression level &#8212; higher numbers mean more CPU usage but smaller files, lower ones mean less CPU and larger files. Can be 0-8<br \/>\n-o: Output file name. This is how CDex &#8220;tells&#8221; FLAC to follow the Filename Format from the Filename tab.<br \/>\n%%: These are CDex replacement tags. You can find the full list in the CDex help file under &#8220;External Encoder&#8221;. The only real drawback to this external encoders is that the track number always has leading zeroes. Doesn&#8217;t bother me, but it may bother some people.<br \/>\n-T: These set the &#8220;tags&#8221; in the compressed file for Artist, Album, etc. You can find the list of supported tags on the FLAC website.<br \/>\n-: The trailing dash tells FLAC to expect the WAV on stdin, which is what makes on-the-fly encoding possible.<\/p><\/blockquote>\n<p>And from some other folks:<\/p>\n<blockquote><p>It is also CRITICAL that you set the ID3 Tag version [in the Generic section] to NONE, as if you don&#8217;t, you&#8217;ll make an ogg that can&#8217;t be read by all the *nix folks, and that will piss us all off.<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Trav started using FLAC a while ago to archive his music. At the time, I called him silly names because I knew that MP3 would do the same job in 1\/5 the space. But now when it comes time to archive my music, I instantly recognize that the choice is obvious. Gigabytes are cheap and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-140","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/posts\/140","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/comments?post=140"}],"version-history":[{"count":0,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/posts\/140\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/media?parent=140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/categories?post=140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/tags?post=140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}