{"id":125,"date":"2012-05-15T18:42:31","date_gmt":"2012-05-15T17:42:31","guid":{"rendered":"http:\/\/tech.moosaico.com\/blog\/?p=125"},"modified":"2015-09-29T13:22:15","modified_gmt":"2015-09-29T12:22:15","slug":"audio-conversion-between-flac-and-alac-in-ubuntu","status":"publish","type":"post","link":"https:\/\/thejoyofstick.com\/blog\/2012\/05\/15\/audio-conversion-between-flac-and-alac-in-ubuntu\/","title":{"rendered":"Audio conversion between FLAC and ALAC in Ubuntu"},"content":{"rendered":"<h2>The short answer<\/h2>\n<p>If you want to converte audio between <a title=\"FLAC\" href=\"http:\/\/en.wikipedia.org\/wiki\/FLAC\" target=\"_blank\" rel=\"nofollow\">Free Lossless Audio Codec<\/a> and <a title=\"ALAC\" href=\"http:\/\/en.wikipedia.org\/wiki\/Apple_Lossless\" target=\"_blank\" rel=\"nofollow\">Apple Lossless Audio Codec<\/a> it&#8217;s straightforward as<\/p>\n<pre lang=\"linux\">avconv -i audio.flac -acodec alac audio.m4a\r\navconv -i audio.m4a -acodec flac audio.flac<\/pre>\n<h2>Where did this come from<\/h2>\n<p>This is the application from\u00a0<a title=\"Libav\" href=\"http:\/\/libav.org\/\" target=\"_blank\" rel=\"nofollow\">Libav<\/a>\u00a0which is\u00a0a complete, cross-platform solution to record, convert and stream audio and video. It includes libavcodec &#8211; the leading audio\/video codec library.<\/p>\n<p>So, you are in good hands!<\/p>\n<h2>How to install <code>avconv<\/code> in Ubuntu 12.04 LTS<\/h2>\n<p>You already know how to do it right ? Just use <code>apt-get install avconv<\/code><\/p>\n<pre lang=\"linux\">$ sudo apt-get install avconv\r\n[sudo] password for biafra:\r\nReading package lists... Done\r\nBuilding dependency tree\r\nReading state information... Done\r\nE: Unable to locate package avconv\r\n$<\/pre>\n<p>What ? This can&#8217;t be true!<br \/>\nBut it is because <code>avconv<\/code> is just the new name of&#8230; <code>ffmpeg<\/code>.<\/p>\n<p>At this time you still have to install it using the <code>ffmpeg<\/code> name<\/p>\n<pre lang=\"linux\">$ sudo apt-get install ffmpeg\r\n\r\n$ ffmpeg\r\nffmpeg version 0.8.1-4:0.8.1-0ubuntu1, Copyright (c) 2000-2011 the Libav developers\r\nbuilt on Mar 22 2012 05:09:06 with gcc 4.6.3\r\n<span style=\"color: #ff6600;\">This program is not developed anymore and is only provided for compatibility. Use avconv instead (see Changelog for the list of incompatible changes).<\/span>\r\nHyper fast Audio and Video encoder\r\nusage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...\r\n\r\nUse -h to get full help or, even better, run 'man ffmpeg'\r\n\r\nThe warning is just to tell you to start to use avconv<\/pre>\n<pre lang=\"linux\">$ avconv\r\navconv version 0.8.1-4:0.8.1-0ubuntu1, Copyright (c) 2000-2011 the Libav developers\r\n  built on Mar 22 2012 05:09:06 with gcc 4.6.3\r\nHyper fast Audio and Video encoder\r\nusage: avconv [options] [[infile options] -i infile]... {[outfile options] outfile}...\r\n\r\nUse -h to get full help or, even better, run 'man avconv'<\/pre>\n<p><b>Update:<\/b> In Ubuntu 14.04 LTS just <code>sudo apt-get install libav-tools<\/code><\/p>\n<h2>Conclusion<\/h2>\n<p>The simplicity of <code>avconv<\/code> is a must. Just use it to convert FLAC, ALAC and other codecs. Just a warning: mp3 is not supported. Check the available codecs with <code>avconv -codecs<\/code>.<\/p>\n<div><\/div>\n<div><\/div>\n<div><\/div>\n<div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>The short answer If you want to converte audio between Free Lossless Audio Codec and Apple Lossless Audio Codec it&#8217;s straightforward as avconv -i audio.flac -acodec alac audio.m4a avconv -i audio.m4a -acodec flac audio.flac Where did this come from This&hellip; <a href=\"https:\/\/thejoyofstick.com\/blog\/2012\/05\/15\/audio-conversion-between-flac-and-alac-in-ubuntu\/\" class=\"more-link\">Continue Reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_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":""},"categories":[7,3,4],"tags":[29,30,31,32,33,28],"class_list":["post-125","post","type-post","status-publish","format-standard","hentry","category-apps","category-linux","category-ubuntu","tag-alac","tag-apple","tag-audio","tag-codec","tag-ffmpeg","tag-flac"],"jetpack_shortlink":"https:\/\/wp.me\/pcmwlL-21","jetpack_sharing_enabled":true,"jetpack_likes_enabled":false,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/thejoyofstick.com\/blog\/wp-json\/wp\/v2\/posts\/125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thejoyofstick.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thejoyofstick.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thejoyofstick.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thejoyofstick.com\/blog\/wp-json\/wp\/v2\/comments?post=125"}],"version-history":[{"count":30,"href":"https:\/\/thejoyofstick.com\/blog\/wp-json\/wp\/v2\/posts\/125\/revisions"}],"predecessor-version":[{"id":688,"href":"https:\/\/thejoyofstick.com\/blog\/wp-json\/wp\/v2\/posts\/125\/revisions\/688"}],"wp:attachment":[{"href":"https:\/\/thejoyofstick.com\/blog\/wp-json\/wp\/v2\/media?parent=125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thejoyofstick.com\/blog\/wp-json\/wp\/v2\/categories?post=125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thejoyofstick.com\/blog\/wp-json\/wp\/v2\/tags?post=125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}