tenacityteam / tenacity-legacy

THIS REPO IS NOT MAINTAINED ANYMORE. Please see https://codeberg.org/tenacityteam/tenacity for Tenacity, which is maintained.
https://tenacityaudio.org
Other
6.75k stars 255 forks source link

Will not locate FFmpeg DLL despite it being present #16

Open Revenimus opened 3 years ago

Revenimus commented 3 years ago

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:

  1. Go to the Edit toolbar and select 'Preferences'
  2. Click on 'Libraries'
  3. Select the 'Locate' button, and when/if prompted find and select avformat-55.dll
  4. 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 ffmpeg 1 ffmpeg 2 ffmpeg 3

Additional information (please complete the following information):

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;
JPcode05 commented 3 years ago

Have you checked to see if Audacity is looking for the correct DLL?

Be-ing commented 3 years ago

Is this still an issue since #228 was merged?

SlyCooperReloadCoded commented 3 years ago

I'm currently using the latest nightly and it asks me to locate a different file - it asks me to find "avformat-58.dll" which is not in the ffmpeg pack.

CTJansson commented 3 years ago

I'm currently using the latest nightly and it asks me to locate a different file - it asks me to find "avformat-58.dll" which is not in the ffmpeg pack.

I have the same problem, been looking for a "new" version of ffmpeg which contains avformat-58.dll but I can't find any, the help online button points to the old which contains avformat-55.dll so it doesn't really help. Going back to an older version of Audacity should work tho.