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:
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:
sudo apt-get -y install build-essential checkinstall yasm && \
mkdir -pv $HOME/audacity_build
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:
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 \
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:
After installing Audacity I will give instructions so Audacity can find this local installation, this will be done manually.
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-version3 && \
make -j 2 && make install-libs install-headers && make distclean
Here we download the Audacity source code, compile it, package and install it. Copy the entire code block and paste into Terminal window:
Using the FFmpeg libraries...
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 && \
./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 "220.127.116.11" \
--fstrans=no --deldesc=yes --delspec=yes --default && \
make distclean && sudo ldconfig
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:
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:
And now you will have access to the Import/Export functions of Audacity through FFmpeg!
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!!.