------------------------------------------
A fix for this problem is available in the development version of Audacity and a patched version of Audacity will arrive in Trusty soon enough. So this guide is now of historical interest only and will close soon.....
------------------------------------------
This 'mini-guide' is aimed at giving Trusty Tahr users access to the import/export function of Audacity via FFmpeg, a functionality not available with the Repository version of Audacity. Only a couple of easy steps involved:
Build tools...
The following build tools are required and we also create a working area for the source code. Copy the entire code block and paste into Terminal window:
Code:
sudo apt-get -y install build-essential checkinstall yasm && \
mkdir -pv $HOME/audacity_build
Development Files...
The following development files will be used by both Audacity and by a special local installation of FFmpeg. Copy the entire code block and paste into Terminal window:
Code:
sudo apt-get -y install libwxgtk2.8-0 libwxgtk2.8-dev libsndfile1-dev \
libsoxr-dev libexpat1-dev libgtk2.0-dev libasound2-dev libmad0-dev \
libportaudio-dev libflac++-dev libid3tag0-dev libsbsms-dev libsoundtouch-dev \
libtwolame-dev libportaudio-dev libmp3lame-dev libid3tag0-dev libfaac-dev \
libopencore-amrnb-dev libopencore-amrwb-dev
FFmpeg...
This is the piece that is missing from Trusty and for this we will build a specially customised local version that will not interfere with any system FFmpeg libraries. (If you are building for a shared computer with multiple users another option would be to install to /opt, ask in the thread below). Copy the entire code block and paste into Terminal window:
Code:
cd $HOME/audacity_build && \
wget http://www.ffmpeg.org/releases/ffmpeg-0.10.12.tar.bz2 && \
tar xvf ffmpeg-0.10.12.tar.bz2 && cd ffmpeg-0.10.12 && \
./configure --prefix=$HOME/audacity_build/audacity_deps/usr \
--enable-libfaac \
--enable-libopencore-amrnb \
--enable-libopencore-amrwb \
--enable-libvorbis \
--enable-libmp3lame \
--enable-shared \
--disable-static \
--disable-doc \
--disable-ffmpeg \
--disable-ffplay \
--disable-ffprobe \
--disable-ffserver \
--disable-filters \
--disable-bsfs \
--disable-protocols \
--disable-debug \
--disable-hwaccels \
--disable-encoder=aac \
--disable-encoder=vorbis \
--enable-nonfree \
--enable-version3 && \
make -j 2 && make install-libs install-headers && make distclean
After installing Audacity I will give instructions so Audacity can find this local installation, this will be done manually.
Compile Audacity...
Here we download the Audacity source code, compile it, package and install it. Copy the entire code block and paste into Terminal window:
Code:
cd $HOME/audacity_build && \
wget http://audacity.googlecode.com/files/audacity-minsrc-2.0.5.tar.xz && \
tar xvf audacity-minsrc-2.0.5.tar.xz && cd audacity-src-2.0.5 && \
PKG_CONFIG_PATH="$HOME/audacity_build/audacity_deps/usr/lib/pkgconfig" \
./configure --prefix=/usr/local --with-ffmpeg && \
make -j 2 && \
mkdir -vp doc-pak && cp -v LICENSE.txt README.txt doc-pak && \
sudo checkinstall --pakdir "$HOME/audacity_build" --backup=no --deldoc=yes \
--pkgname audacity --pkgversion "3.2.0.5" \
--fstrans=no --deldesc=yes --delspec=yes --default && \
make distclean && sudo ldconfig
Using the FFmpeg libraries...
To access the FFmpeg libraries from within Audacity you must show Audacity location of the libraries. Look for Edit --> Preferences --> Libraries -> FFmpeg Libraries --> Locate --> Browse and select the file:
Code:
$HOME/audacity_build/audacity_deps/usr/lib/libavformat.so
Of course you will not see '$HOME' in the 'Browse' box this must be replaced with your $HOME details, if you are not sure what your details are run the following in a Terminal:
and this will give you the information you need. You can check if you have been successful by looking in $HOME/.audacity-data/audacity.cfg and look for a line similar to this:
Code:
[FFmpeg]
Enabled=1
FFmpegLibPath=/home/andrew/audacity_build/audacity_deps/usr/lib/libavformat.so
And now you will have access to the Import/Export functions of Audacity through FFmpeg!
In conclusion...
I am hoping that this 'mini-guide' will be useful to Audacity users under Trusty, let me know if I have missed something and I will do my best to fill in the details. And in the meantime: 'Have fun!!.
Bookmarks