Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 44

Thread: Audacity under Trusty Tahr: Building it with FFmpeg

  1. #11
    Join Date
    Dec 2006
    Beans
    7,349

    Re: Audacity under Trusty Tahr: Building it with FFmpeg

    Quote Originally Posted by livewirebt2 View Post
    I assume it's releated to ffmpeg being dropped from the repositories and package maintainers threw out the baby with the bathwater by removing the build flag from the package, which couldn't be any more wrong, because the actual ffmpeg package was replaced by a transitional(!) package from libav sources long ago (see also: AU - Is FFmpeg missing from the official repositories in 14.04?).
    I suspect that this issue has little to do with the FFmpeg / Libav situation as neither modern version will work with Audacity. The situation is more that Audacity developers have not had the time to dedicate to keeping up with continuing changes from both camps. The emphasis of Audacity developers is doubtless on building and developing Audacity itself rather than trying to keep pace with the rapid changes in what is essentially a very sophisticated import and export plugin. Nice to have but not essential...

    This guide attempts to give the FFmpeg functionality back to Audacity, at least for Trusty, until changes in Audacity will eventually render the guide redundant; could be a while though .
    You think that's air you're breathing now?

  2. #12
    Join Date
    Jan 2014
    Location
    UK
    Beans
    78
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Audacity under Trusty Tahr: Building it with FFmpeg

    Quote Originally Posted by andrew.46 View Post
    ... The situation is more that Audacity developers have not had the time to dedicate to keeping up with continuing changes....
    Hi
    They had this trouble with SoX, said FFmpeg was a moving target, so they dropped it.
    Now they advise to use FFmpeg to import/export to SoX through a pipe.
    Not easy/convenient/possible to do this with Audacity, 'cause it's not a command line program.

    Also I think this is why 'imageshack-uploader' program is difficult (or impossible) to compile now, 'twas designed to be compiled/used with an earlier FFmpeg library.
    Last edited by ron998; April 27th, 2014 at 01:22 AM.

  3. #13
    Join Date
    Dec 2006
    Beans
    7,349

    Re: Audacity under Trusty Tahr: Building it with FFmpeg

    A good case for some developers to ship their source with a custom FFmpeg perhaps, although this increases workload for people who for the most part have much to do In Real Life...
    You think that's air you're breathing now?

  4. #14
    Join Date
    Jan 2014
    Location
    UK
    Beans
    78
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Audacity under Trusty Tahr: Building it with FFmpeg

    Quote Originally Posted by ron998 View Post
    ... Maybe this is the way to go...
    For imports use FFmpeg-0.10.12 libary with --enable-whatever to add extra decoders.
    (Also disable some encoders, as in the mini-guide --disable-encoder=whatever)...
    Hi
    These are the config options that I used with FFmpeg-0.10.12 to build a library for imports only.
    Code:
    ./configure \
    --prefix=$HOME/audacity_build/audacity_deps/usr \
    --enable-libspeex \
    --enable-shared \
    --disable-avdevice \
    --disable-avfilter \
    --disable-bsfs \
    --disable-debug \
    --disable-doc \
    --disable-encoders \
    --disable-ffmpeg \
    --disable-ffplay \
    --disable-ffprobe \
    --disable-ffserver \
    --disable-filters \
    --disable-hwaccels \
    --disable-indevs \
    --disable-muxers \
    --disable-outdevs \
    --disable-postproc \
    --disable-protocols \
    --disable-static \
    --disable-swresample \
    --disable-swscale
    Last edited by ron998; April 29th, 2014 at 03:42 AM. Reason: Added "--disable-debug". Andrew's suggestion, probably builds quicker.

  5. #15
    Join Date
    Dec 2006
    Beans
    7,349

    Re: Audacity under Trusty Tahr: Building it with FFmpeg

    In a weekend update I have added the following options to the FFmpeg installation (thanks Ron for showing some of the possibilities!):

    Code:
    --disable-filters \
    --disable-bsfs \
    --disable-protocols \
    --disable-debug \
    --disable-hwaccels
    All seems to be working well, just a little more fine-tuning required to the FFmpeg options at some stage, certainly libpostproc and libswscale should go...

    Edit: Interestingly enough I also tried --enable-libvo-amrwbenc for FFmpeg but this would not produce a usable exported file with Audacity.
    Last edited by andrew.46; April 29th, 2014 at 02:34 AM.
    You think that's air you're breathing now?

  6. #16
    Join Date
    Jan 2014
    Location
    UK
    Beans
    78
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Audacity under Trusty Tahr: Building it with FFmpeg

    Quote Originally Posted by andrew.46 View Post
    ... tried --enable-libvo-amrwbenc for FFmpeg but this would not produce a usable exported file...
    Hi
    Maybe vo_amrwbenc is very picky about bitrate/samplerate and mono only.

    It tested OK with Export Audio --> (external program).
    Using gusari.org static build.
    Code:
    ffmpeg -i - -c:a libvo_amrwbenc -b:a 12.65k -ar 16k -ac 1 "%f"
    ffmpeg -i - -c:a libvo_amrwbenc -b:a 23.85k -ar 16k -ac 1 "%f"

  7. #17
    Join Date
    Dec 2006
    Beans
    7,349

    Re: Audacity under Trusty Tahr: Building it with FFmpeg

    Quote Originally Posted by ron998 View Post
    It tested OK with Export Audio --> (external program).
    OIC, I was testing from File --> Export --> Custom FFmpeg Export --> Options. Seems to be a little twitchy there...
    You think that's air you're breathing now?

  8. #18
    Join Date
    Dec 2007
    Beans
    12,521

    Re: Audacity under Trusty Tahr: Building it with FFmpeg

    @andrew.46, I successfully followed the procedure you provided in the first post but I have a question regarding "cleaning up". What can be removed from the ~/audacity_build folder? Could you please explain?

  9. #19
    Join Date
    Jan 2014
    Location
    UK
    Beans
    78
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Audacity under Trusty Tahr: Building it with FFmpeg

    Quote Originally Posted by vasa1 View Post
    ... What can be removed from the ~/audacity_build folder? Could you please explain?
    @vasa1
    Hi
    When Audacity has been built and installed, it needs these 9 6 files:-

    libavcodec.so
    libavcodec.so.53
    libavcodec.so.53.61.100
    libavformat.so
    libavformat.so.53
    libavformat.so.53.32.100
    libavutil.so
    libavutil.so.51
    libavutil.so.51.35.100


    They are in the folder ~/audacity_build/usr/lib

    Here is a suggestion...
    Create a new folder, name it audacity_library or similar.
    Copy those 9 6 files into it.
    Then put your audacity_library folder somewhere safe/convenient.
    (I have put mine in /usr/local/share/audacity)

    After that, tell Audacity where the new libavformat.so is now located.
    Edit --> Preferences --> Libraries -> FFmpeg Libraries --> Locate --> Browse and select the file...

    When you're sure that Audacity has found the new library and it works OK, you can delete the whole ~/audacity_build folder.

    PS
    (Keep the audacity_3.2.0.5_i386.deb package too if you like.)
    Last edited by ron998; May 1st, 2014 at 01:32 AM. Reason: Reminder to keep the deb file. + Only 6 files are needed, not 9.

  10. #20
    Join Date
    Dec 2006
    Beans
    7,349

    Re: Audacity under Trusty Tahr: Building it with FFmpeg

    Hey Ron, you might be interested in testing out a hacked Makefile.in that installs the FFmpeg libraries to /usr/local. This might be the way to go I suspect and if it works well enough for you I will work it into the guide. Pity I don't have my own webspace any more, this would make hosting a patch much easier ...

    Just unzip it in the Audacity source and allow it to overwrite the original. I have attached a screenshot showing the FFmpeg libraries as part of the Audacious package
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by andrew.46; April 30th, 2014 at 05:43 AM.
    You think that's air you're breathing now?

Page 2 of 5 FirstFirst 1234 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •