Audacity 2.2.0 cannot load ffmpeg libs [SOLVED]

Help for Audacity 2.x.x on GNU/Linux.

ImageThis forum is for Audacity 2.x.x on GNU/Linux and Unix-like operating systems.
Please state which version of Linux you are using, the exact three-section version number of Audacity from Help > About Audacity... and whether you installed your distribution's release or daily version of Audacity or compiled Audacity from source code.

Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.

Audacity 2.2.0 cannot load ffmpeg libs [SOLVED]

Permanent link to this post Posted by dynup » Sun Nov 05, 2017 9:56 am

Hi all,

I compiled Audacity on my Linux Mint Debian Edition 2, it runs but it cannot load the ffmpeg libraries:

Code: Select all
10:51:36: Audacity 2.2.0
10:51:39: Trying to load FFmpeg libraries...
10:51:39: mLibAVFormatPath ('/usr/lib/x86_64-linux-gnu/libavformat.so.56') is not empty. Loading from it.
10:51:39: Checking for monolithic avformat from '/usr/lib/x86_64-linux-gnu/libavformat.so.56'.
10:51:39: avformat not monolithic
10:51:39: Loading avutil from '/usr/lib/x86_64-linux-gnu/libavutil.so.54.20.100'.
10:51:39: Loading avcodec from '/usr/lib/x86_64-linux-gnu/libavcodec.so.56.26.100'.
10:51:39: Loading avformat from '/usr/lib/x86_64-linux-gnu/libavformat.so.56'.
10:51:39: Actual avutil path /usr/lib/x86_64-linux-gnu/libavutil.so.54.20.100
10:51:39: Actual avcodec path /usr/lib/x86_64-linux-gnu/libavcodec.so.56.26.100
10:51:39: Actual avformat path /usr/lib/x86_64-linux-gnu/libavformat.so.56.25.101
10:51:39: Importing symbols...
10:51:39: All symbols loaded successfully. Initializing the library.
10:51:39: Retrieving FFmpeg library version numbers:
10:51:39:    AVCodec version 0x381a64 - 56.26.100 (built against 0x373466 - 55.52.102)
10:51:39:    AVFormat version 0x381965 - 56.25.101 (built against 0x372164 - 55.33.100)
10:51:39:    AVUtil version 0x361464 - 54.20.100 (built against 0x344264 - 52.66.100)
10:51:39: Error: AVCodec version mismatch = 1
10:51:39: Error: AVFormat version mismatch = 1
10:51:39: Error: AVUtil version mismatch = 2
10:51:39: Error: Version mismatch. FFmpeg libraries are unusable.
10:51:39: Trying to load FFmpeg libraries from system paths. File name is 'libavformat.so.55'.
10:51:39: Checking for monolithic avformat from 'libavformat.so.55'.
10:51:39: Error: libavformat.so.55: cannot open shared object file: No such file or directory
10:51:39: Loading avutil from ''.
10:51:39: Error: .so: cannot open shared object file: No such file or directory
10:51:39: Loading avcodec from ''.
10:51:39: Error: .so: cannot open shared object file: No such file or directory
10:51:39: Loading avformat from 'libavformat.so.55'.
10:51:39: Error: libavformat.so.55: cannot open shared object file: No such file or directory
10:51:39: Error: Failed to load FFmpeg libraries.
10:51:39: Error: Failed to find compatible FFmpeg libraries.


Does anyone have an idea why this may be? Any hints?

Thanks
Chris
dynup
 
Posts: 3
Joined: Sun Nov 05, 2017 9:47 am
Operating System: Linux Mint

Re: Audacity 2.2.0 cannot load ffmpeg libs

Permanent link to this post Posted by steve » Sun Nov 05, 2017 12:15 pm

Try disabling dynamic loading. To do that, add the following option to your ./configure command:
Code: Select all
--disable-dynamic-loading


Hint: to perform a "clean" rebuild, clean the previous build with:
Code: Select all
make distclean
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 45396
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Audacity 2.2.0 cannot load ffmpeg libs

Permanent link to this post Posted by dynup » Sun Nov 05, 2017 12:34 pm

Thanks Steve for your hint but it doesn't work, same errors.
dynup
 
Posts: 3
Joined: Sun Nov 05, 2017 9:47 am
Operating System: Linux Mint

Re: Audacity 2.2.0 cannot load ffmpeg libs

Permanent link to this post Posted by steve » Sun Nov 05, 2017 12:48 pm

You may still be compiling against the local headers.

Try:
Code: Select all
--with-ffmpeg="system" --disable-dynamic-loading


Before running "make", check the output from ./configure to ensure that configure found the necessary headers for FFmpeg (you need to have the FFmpeg development headers installed).
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 45396
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Audacity 2.2.0 cannot load ffmpeg libs [SOLVED]

Permanent link to this post Posted by dynup » Sun Nov 05, 2017 5:53 pm

It works, thanks for your help! :)
dynup
 
Posts: 3
Joined: Sun Nov 05, 2017 9:47 am
Operating System: Linux Mint


Return to GNU/Linux and Unix-like



Who is online

Users browsing this forum: No registered users and 8 guests