Will not locate FFmpeg DLL despite it being present
#16 ouverte le 5 juil. 2021
Métriques du dépôt
- Stars
- (6 921 stars)
- Métriques de merge PR
- (Aucune PR mergée en 30 j)
Description
Describe the bug To confirm, FFmpeg was functional when I was using vanilla Audacity. I have gotten this fork to run and it seems to be more or less functional (I am also experiencing the disabled plugin bug another user reported). However, it refuses to locate the avformat-55.dll file despite it being present in C:/Program Files (x86)/FFmpeg for Audacity. I am getting errors in the logs, notably "Error 193: 1% is not a valid Win32 application". I will post the logs below; this very well could be a simple case of my own incompetence but for the sake of posterity I figured it would be worth posting.
To Reproduce Steps to reproduce the behavior:
- Go to the Edit toolbar and select 'Preferences'
- Click on 'Libraries'
- Select the 'Locate' button, and when/if prompted find and select avformat-55.dll
- See error
Expected behavior I was expecting things to more or less proceed normally as the FFmpeg files are in a seperate folder that I believe Audacity should be checking for.
Screenshots

Additional information (please complete the following information):
- OS: Windows 10 Build 19041.vb_release.191206-1406
- Version Audacity 3.0.4-alpha-20210705 (cookiengineer/audacity)
- Realtek Audio v 6.0.9091.1
Additional context
I have tried running as an administrator, messing around with environment variables, system reboot, etc, all to no avail.
Audacity Log
10:10:17: Audacity 3.0.4-alpha-20210705
10:10:17: Trying to load FFmpeg libraries...
10:10:17: mLibAVFormatPath ('C:\Program Files (x86)\FFmpeg for Audacity\avformat-55.dll') is not empty. Loading from it.
10:10:17: Looking up PATH environment variable...
10:10:17: PATH = 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\libnvvp;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Git\cmd;C:\Program Files\dotnet\;C:\Program Files\NVIDIA Corporation\Nsight Compute 2020.3.1\;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\bin;C:\Program Files\CMake\bin;C:\Users\EXPUNGED\AppData\Local\Programs\Python\Python39\Scripts\;C:\Users\EXPUNGED\AppData\Local\Programs\Python\Python39\;C:\Users\EXPUNGED\AppData\Local\Microsoft\WindowsApps;C:\Users\EXPUNGED\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\EXPUNGED\.dotnet\tools;C:\Program Files (x86)\FFmpeg for Audacity;'
10:10:17: Temporarily prepending ';C:\Program Files (x86)\FFmpeg for Audacity' to PATH...
10:10:17: Checking for monolithic avformat from 'C:\Program Files (x86)\FFmpeg for Audacity\avformat-55.dll'.
10:10:17: Error: Failed to load shared library 'C:\Program Files (x86)\FFmpeg for Audacity\avformat-55.dll' (error 193: %1 is not a valid Win32 application.)
10:10:17: Loading avutil from ''.
10:10:17: Error: Failed to load shared library '.dll' (error 126: The specified module could not be found.)
10:10:17: Loading avcodec from ''.
10:10:17: Error: Failed to load shared library '.dll' (error 126: The specified module could not be found.)
10:10:17: Loading avformat from 'C:\Program Files (x86)\FFmpeg for Audacity\avformat-55.dll'.
10:10:17: Error: Failed to load shared library 'C:\Program Files (x86)\FFmpeg for Audacity\avformat-55.dll' (error 193: %1 is not a valid Win32 application.)
10:10:17: Error: Failed to load FFmpeg libraries.
10:10:17: Returning PATH to previous setting: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\libnvvp;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Git\cmd;C:\Program Files\dotnet\;C:\Program Files\NVIDIA Corporation\Nsight Compute 2020.3.1\;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\bin;C:\Program Files\CMake\bin;C:\Users\EXPUNGED\AppData\Local\Programs\Python\Python39\Scripts\;C:\Users\EXPUNGED\AppData\Local\Programs\Python\Python39\;C:\Users\EXPUNGED\AppData\Local\Microsoft\WindowsApps;C:\Users\EXPUNGED\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\EXPUNGED\.dotnet\tools;C:\Program Files (x86)\FFmpeg for Audacity;