FFMpeg DLL not being recognized (not a n00b)

I’m using Audacity 2.10 on Win7 SP1 x64, and it’s refusing to recognize the DLL for FFMpeg 2.2.2.

I’ve followed the instructions on the FAQ page (http://manual.audacityteam.org/o/man/faq_installation_and_plug_ins.html#locate) and the program just doesn’t recognize the included avformat-55.dll file.

Here’s the log dump:

00:51:39: Audacity 2.1.0
00:51:39: Trying to load FFmpeg libraries...
00:51:39: mLibAVFormatPath ('C:\Program Files (x86)\Lame For Audacity\avformat-55.dll') is not empty. Loading from it.
00:51:39: Looking up PATH environment variable...
00:51:39: PATH = 'C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\GNU\GnuPG\pub;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common'
00:51:39: Checking that 'C:\Program Files (x86)\Lame For Audacity' is in PATH...
00:51:39: Warning: FFmpeg directory 'C:\Program Files (x86)\Lame For Audacity' is not in PATH.
00:51:39: Temporarily prepending ';C:\Program Files (x86)\Lame For Audacity' to PATH...
00:51:39: Checking for monolithic avformat from 'C:\Program Files (x86)\Lame For Audacity\avformat-55.dll'.
00:51:39: Error: Failed to load shared library 'C:\Program Files (x86)\Lame For Audacity\avformat-55.dll' (error 126: the specified module could not be found.)
00:51:39: Loading avutil from ''.
00:51:39: Error: Failed to load shared library '.dll' (error 126: the specified module could not be found.)
00:51:39: Loading avcodec from ''.
00:51:39: Error: Failed to load shared library '.dll' (error 126: the specified module could not be found.)
00:51:39: Loading avformat from 'C:\Program Files (x86)\Lame For Audacity\avformat-55.dll'.
00:51:39: Error: Failed to load shared library 'C:\Program Files (x86)\Lame For Audacity\avformat-55.dll' (error 126: the specified module could not be found.)
00:51:39: Returning PATH to previous setting...
00:51:39: Error: Failed to load FFmpeg libraries.
00:51:39: Trying to load FFmpeg libraries from system paths. File name is 'avformat-55.dll'.
00:51:39: Looking up PATH environment variable...
00:51:39: PATH = 'C:\Program Files (x86)\Lame For Audacity;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\GNU\GnuPG\pub'
00:51:39: Checking that '' is in PATH...
00:51:39: FFmpeg directory is in PATH.
00:51:39: Checking for monolithic avformat from 'avformat-55.dll'.
00:51:39: Error: Failed to load shared library 'avformat-55.dll' (error 126: the specified module could not be found.)
00:51:39: Loading avutil from ''.
00:51:39: Error: Failed to load shared library '.dll' (error 126: the specified module could not be found.)
00:51:39: Loading avcodec from ''.
00:51:39: Error: Failed to load shared library '.dll' (error 126: the specified module could not be found.)
00:51:39: Loading avformat from 'avformat-55.dll'.
00:51:39: Error: Failed to load shared library 'avformat-55.dll' (error 126: the specified module could not be found.)
00:51:39: Error: Failed to load FFmpeg libraries.
00:51:39: Error: Failed to find compatible FFmpeg libraries.
00:52:19: Attempting to load LAME from previously defined path
00:52:19: Loading LAME from C:\Program Files (x86)\Lame For Audacity\lame_enc.dll
00:52:19: Actual LAME path C:\Program Files (x86)\Lame For Audacity\lame_enc.dll
00:52:19: LAME library successfully loaded

Any thoughts?

I can actually get FFmpeg to load if I tip its files into C:\Program Files (x86)\Lame For Audacity, but why do that? Just follow http://manual.audacityteam.org/o/man/faq_installation_and_plug_ins.html#ffdown.

So quit Audacity. Run the FFmpeg uninstaller if it exists. Run the LAME uninstaller then delete the folder C:\Program Files (x86)\Lame For Audacity. Delete any folder still existing that you installed FFmpeg into.

Then run the LAME installer and install to the default folder C:\Program Files (x86)\Lame For Audacity and run the FFmpeg installer and install to the default folder C:\Program Files (x86)\FFmpeg for Audacity.

Then it should work.



Gale

Thanks, but I’m not really inclined to rip out and replace all the wiring in my house when a single light bulb doesn’t work.

As an IT guy, I’m much more curious to know why the program isn’t able to recognize or load the modules that it needs from the DLL when it’s pointed directly at it.

Is there a more detailed trace logging facility in Audacity?

Unfortunately we can’t see your computer to know your system. For example what other DLL’s are in the LAME for Audacity folder besides LAME and FFmpeg?

As I said, I can select FFmpeg in the installation folder for LAME, but if you had installed FFmpeg using the installer and not changed the path you would not have needed to browse for FFmpeg - it should just have been detected by means of a registry key from its FFmpeg for Audacity folder.

2.1.0 includes a fix for a previous issue that if there were invalid FFmpeg libs in system PATH this could prevent Audacity recognising the installed FFmpeg or the FFmpeg specified in audacity.cfg. So that should rule out one possibility.

What you could do is quit Audacity then delete the [FFmpeg] lines in the file Users<user name>\AppData\Roaming\Audacity\audacity.cfg, then restart Audacity and try to select avformat-55.dll again in Libraries Preferences.

There is no more detailed FFmpeg logging for release builds but you could try the SysInternals tools which I am sure you are aware of.

Gale

I know this is an old thread, but came across when I was facing this issue myself. I found another application that uses its own FFmpeg plugin was conflicting. It put in an entry in the Environment Variables (Computer > System Properties > Environment Variables)

The application is called AudioText Manager for Cisco Unity Connection.

After uninstalling, I was able to use the FFmpeg plugin.

Errors in Audacity Log:

12:02:28 PM: Checking that ‘C:\Program Files (x86)\Cisco Systems\Unity Connection\ATM\ffmpeg’ is in PATH…
12:02:28 PM: Warning: FFmpeg directory ‘C:\Program Files (x86)\Cisco Systems\Unity Connection\ATM\ffmpeg’ is not in PATH.
12:02:28 PM: Temporarily appending ‘;C:\Program Files (x86)\Cisco Systems\Unity Connection\ATM\ffmpeg’ to PATH…
12:02:28 PM: Checking for monolithic avformat from ‘C:\Program Files (x86)\Cisco Systems\Unity Connection\ATM\ffmpeg\avformat-55.dll’.
12:02:28 PM: Error: Failed to load shared library ‘C:\Program Files (x86)\Cisco Systems\Unity Connection\ATM\ffmpeg\avformat-55.dll’ (error 126: the specified module could not be found.)

@ciscovoiceguy: As this appears to be a bug report, please tell us what version of Audacity you are using (see the pink panel at the top of the page). A complete log is preferred.

The current Audacity 2.1.2 release “should” prepend FFmpeg path (meaning it should look first in the location where you installed FFmpeg recommended by our FFmpeg FAQ).


Gale