FFMPEG installed, Audacity cannot import m4a [SOLVED]

Help for Audacity on GNU/Linux.
Forum rules
ImageThis forum is for Audacity on GNU/Linux.
Please state:
  • which version of Linux you are using,
  • the exact three-section version number of Audacity from Help menu > About Audacity,
  • whether you installed your distribution's release, PPA version, 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 (see 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.
Locked
JJ-Midday
Posts: 6
Joined: Mon Nov 30, 2015 11:33 am
Operating System: Please select

FFMPEG installed, Audacity cannot import m4a [SOLVED]

Post by JJ-Midday » Mon Nov 30, 2015 11:41 am

Hi everybody,
I know this is a FAQ but I have got some problems because it should work. I'm using CentOS 7 and I compiled from source code audacity-minsrc-2.1.1 after compiled the ffmpeg library version 2.3.6 (it should be a compatible version) using --enable-shared so i have the libavformat.so file. I have positioned a symbolic link in /usr/share/pkgconfig pointing to /usr/local/lib/pkgconfig for the pc files before install audacity as well. But Audacity still not import m4a files also if i go to preferences and manually set the path for libavformat.so.
What is the problem?

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: FFMPEG library installed but Audacity cannot import m4a

Post by Gale Andrews » Mon Nov 30, 2015 12:53 pm

JJ-Midday wrote:I know this is a FAQ but I have got some problems because it should work. I'm using CentOS 7 and I compiled from source code audacity-minsrc-2.1.1 after compiled the ffmpeg library version 2.3.6 (it should be a compatible version) using --enable-shared so i have the libavformat.so file. I have positioned a symbolic link in /usr/share/pkgconfig pointing to /usr/local/lib/pkgconfig for the pc files before install audacity as well.
What "pc files" are those? There is no need for that step, as far as I know, unless it is something that CentOS requires you to do.
JJ-Midday wrote: But Audacity still not import m4a files also if i go to preferences and manually set the path for libavformat.so.
Do you see the F,C,U numbers in Libraries Preferences? If yes, the problem is with the M4A files - look at Help > Show Log... .

Have you tried configuring Audacity with --disable-dynamic-loading, which removes the Libraries Preferences?


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

JJ-Midday
Posts: 6
Joined: Mon Nov 30, 2015 11:33 am
Operating System: Please select

Re: FFMPEG library installed but Audacity cannot import m4a

Post by JJ-Midday » Mon Nov 30, 2015 1:18 pm

PC files concern pkg-config. I prefer to leave default setting when config make ecc and so pkg-config often does not find installed libraries because it look for them in /usr/share/pkgconfig instead of /usr/local/lib/pkgconfig where often are installed. Making a symbolic link it works.

I cannot see F, C, U numbers.. i've got "FFMpeg library not found".. Here's the log (it's in italian but definitely there's written Error: impossible to open compatible FFMpeg libraries"

"14:15:55: Loading avformat from 'libavformat.so.55'.
14:15:55: Errore: libavformat.so.55: impossibile aprire il file oggetto condiviso: File o directory non esistente
14:15:55: Errore: Failed to load FFmpeg libraries.
14:15:55: Errore: Impossibile trovare librerie FFmpeg compatibili."

I'll try to configure it with --disable-dynamic-loading!

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: FFMPEG library installed but Audacity cannot import m4a

Post by Gale Andrews » Mon Nov 30, 2015 1:43 pm

JJ-Midday wrote:PC files concern pkg-config. I prefer to leave default setting when config make ecc and so pkg-config often does not find installed libraries because it look for them in /usr/share/pkgconfig instead of /usr/local/lib/pkgconfig where often are installed. Making a symbolic link it works.
As a double-check,

Code: Select all

pkg-config --libs libavcodec
should confirm what FFmpeg libs pkg-config will find.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

JJ-Midday
Posts: 6
Joined: Mon Nov 30, 2015 11:33 am
Operating System: Please select

Re: FFMPEG installed, Audacity cannot import m4a [SOLVED]

Post by JJ-Midday » Tue Dec 01, 2015 7:55 am

I'm sorry yesterday i thought i had answered.. Now It Works! Many many many thanks! I configured audacity with --disable-dynamic-loading and then it worked.. (I had to create symbolic link for library because they were in /usr/local/... instead of /usr/lib and audacity could not find them but it's normal..) Thanks!

Locked