ffmpeg library loading logic needs to be updated

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


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.
Post Reply
cazorla
Posts: 80
Joined: Fri Aug 28, 2009 9:26 pm
Operating System: Please select

ffmpeg library loading logic needs to be updated

Post by cazorla » Sun Feb 01, 2015 10:15 pm

Using Audacity 2.0.6 on Windows 7 SP1 x64. Wasted a lot of time trying to get it to accept ffmpeg-2.5.2-win32-shared package containing avformat-56.dll. I could browse to the DLL, select it, and click OK, but the message in the window remained "FFmpeg not found".

Finally I tried an older version, 2.2.3 which apparently has avformat-55.dll and that worked. It appears someone hardcoded library version 55 into the logic which I believe is a mistake. Typically when a version of ffmpeg is specified by dependent software, it should be a minimum version, not the only acceptable version, because libraries such as these normally have API backware compatibility, at least within major versions.

Even if a decision was made not to allow this newer version, we should be presented with an error dialog like, "Found ffmpeg library too new. Ignoring" or something.

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

Re: ffmpeg library loading logic needs to be updated

Post by Gale Andrews » Sun Feb 01, 2015 11:31 pm

If you read http://manual.audacityteam.org/o/man/fa ... tml#ffdown you can see that the supported FFmpeg version is 2.2.2.

I know that 2.2.3 should also work and the Manual for the next release of Audacity (2.1.0) will say that.

Any version of FFmpeg is accepted for export if you choose (external program) for command-line export. Dynamic library loading of FFmpeg in Audacity is constrained by changes in FFmpeg, which routinely break such loading.

If you compile Audacity from source code then you can try the attached patch which I understand allows Audacity to accept dynamic loading of FFmpeg 2.4 and may allow FFmpeg 2.5. Please let us know if you try it. As the patch refers to avutil53 I assume it could break compatibility with earlier FFmpeg if applied as is.


Gale
Attachments
FFmpeg 2.4 for Audacity.patch
(886 Bytes) Downloaded 39 times
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Post Reply