{"id":1037,"date":"2014-02-04T17:23:13","date_gmt":"2014-02-04T17:23:13","guid":{"rendered":"http:\/\/rglinuxtech.com\/?p=1037"},"modified":"2014-02-04T17:23:13","modified_gmt":"2014-02-04T17:23:13","slug":"audacity-simple-ffmpeg-compile-fix","status":"publish","type":"post","link":"https:\/\/rglinuxtech.com\/?p=1037","title":{"rendered":"Audacity &#8211; Simple ffmpeg Compile Fix.."},"content":{"rendered":"<p>The &#8216;binary&#8217; version of <strong>audacity<\/strong> supplied by certain distros lacks functionality, due to patent issues, so the best option is to compile it yourself..<\/p>\n<p>For some time, there have been compatibility issues at compile time between the latest released versions of <strong>audacity<\/strong> and <strong>ffmpeg<\/strong>, on many systems..<\/p>\n<p>For <strong>audacity<\/strong> version 2.0.5, on my systems (<strong><em>Fedora 20<\/em><\/strong>) the compile fails with the current <strong>ffmpeg<\/strong> code and headers, but <span style=\"text-decoration: underline;\">will<\/span> work with the &#8216;legacy&#8217; <strong>ffmpeg-compat<\/strong> ..<\/p>\n<p>A simple method of forcing the audacity compile to find the <span style=\"text-decoration: underline;\">legacy<\/span> headers etc. is to simply edit <em><strong>~\/src\/FFmpeg.h<\/strong><\/em>, as follows, around line 39:<\/p>\n<pre>From:\r\n   <strong>#include &lt;libavcodec\/avcodec.h&gt;<\/strong>\r\n<strong>\u00a0\u00a0 #include &lt;libavformat\/avformat.h&gt;<\/strong>\r\n<strong>\u00a0\u00a0 #include &lt;libavutil\/fifo.h&gt;<\/strong>\r\n<strong>\u00a0\u00a0 #include &lt;libavutil\/mathematics.h&gt;\r\n<\/strong>To:<strong>\r\n   #include &lt;ffmpeg-compat\/libavcodec\/avcodec.h&gt;<\/strong>\r\n<strong>\u00a0\u00a0 #include &lt;ffmpeg-compat\/libavformat\/avformat.h&gt;<\/strong>\r\n<strong>\u00a0\u00a0 #include &lt;ffmpeg-compat\/libavutil\/fifo.h&gt;<\/strong>\r\n<strong>\u00a0\u00a0 #include &lt;ffmpeg-compat\/libavutil\/mathematics.h&gt;<\/strong><\/pre>\n<p>The compile should then complete OK, but on my system the <strong><em># make install<\/em> <\/strong>still fails, so just copy the <strong>audacity<\/strong> executable to <em><strong>\/usr\/bin<\/strong><\/em> (or the equivalent on your particular system)<\/p>\n<p>With ffmpeg support included, I can use <strong>audacity<\/strong> to edit the sound tracks on AVCHD (MTS) video clips, amongst others..<\/p>\n<p><em>Robert Gadsdon.\u00a0\u00a0 February 4, 2014.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The &#8216;binary&#8217; version of audacity supplied by certain distros lacks functionality, due to patent issues, so the best option is to compile it yourself.. For some time, there have been compatibility issues at compile time between the latest released versions of audacity and ffmpeg, on many systems.. For audacity version 2.0.5, on my systems (Fedora 20) the <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/rglinuxtech.com\/?p=1037\"><span class=\"more-msg\">Continue reading &rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5,6,11,15,19,20],"tags":[787,790,121,788,242,789,1175],"class_list":["post-1037","post","type-post","status-publish","format-standard","hentry","category-compilation","category-crash-and-burn","category-hacks","category-linux-2","category-opinion","category-performance-2","tag-audacity-2-0-5","tag-avchd","tag-compile-fix","tag-ffmpeg","tag-linux","tag-sound-editor","tag-success"],"_links":{"self":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1037","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1037"}],"version-history":[{"count":1,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1037\/revisions"}],"predecessor-version":[{"id":1038,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1037\/revisions\/1038"}],"wp:attachment":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1037"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1037"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1037"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}