Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audacity 3.2 for Mac Silicon does not find homebrew-installed ffmpeg #3747

Closed
M-D-M opened this issue Oct 3, 2022 · 7 comments · Fixed by #3755
Closed

Audacity 3.2 for Mac Silicon does not find homebrew-installed ffmpeg #3747

M-D-M opened this issue Oct 3, 2022 · 7 comments · Fixed by #3755
Assignees
Labels
bug An error, undesired behaviour, or missed functionality

Comments

@M-D-M
Copy link

M-D-M commented Oct 3, 2022

Bug description

Summary:

Wanted to use the new version of Audacity for Mac Silicon (thanks for making it!), but unfortunately it does not find the version of ffmpeg I have installed through homebrew.

Further Description:

Installed Mac Silicon version of Audacity via .dmg file. Selected "do not replace previous version" when prompted via MacOS, because I wanted to keep the previous x86 version handy.

When loading Audacity, it says that ffmpeg libraries aren't loaded, and when trying to direct it to the folder with ffmpeg libraries installed via Homebrew (/opt/homebrew/Cellar/ffmpeg/*/lib), it does not find the right library.

Steps to reproduce

Download Mac Silicon version of Audacity.

Install using dmg file, and select "do not replace previous version" when prompted via MacOS.

Open Audacity, and get the popup about ffmpeg libraries not found.

Expected behavior

Audacity finds the ffmpeg libraries.

Actual behavior

Audacity is saying that "ffmpeg library not found."

Audacity Version

current master / alpha / nightly build

Operating system

macOS

Additional context

I have ffmpeg installed and in my path via Homebrew -- confirmed with "ffmpeg -version" from a cli.

It looks like audacity is wanting a file named "ffmpeg.64bit.dylib", but the files in the ffmpeg folder have names like the following:

libavcodec.59.37.100.dylib
libavdevice.59.7.100.dylib
libavfilter.8.44.100.dylib
libavformat.59.27.100.dylib

@M-D-M M-D-M added the bug An error, undesired behaviour, or missed functionality label Oct 3, 2022
@LWinterberg LWinterberg changed the title Audacity 3.2 for Mac Silicon does not find ffmpeg Audacity 3.2 for Mac Silicon does not find homebrew-installed ffmpeg Oct 3, 2022
@dozzzzer
Copy link
Contributor

dozzzzer commented Oct 3, 2022

@M-D-M we will look into it, but for now please download and install the FFmpeg package for OS X from Buanzo's website. Once it's installed, Audacity should recognize it automatically.

@crsib crsib self-assigned this Oct 4, 2022
@crsib crsib linked a pull request Oct 4, 2022 that will close this issue
6 tasks
@dozzzzer
Copy link
Contributor

dozzzzer commented Oct 4, 2022

Verified. I don't see the original issue anymore. Now Audacity recognizes FFmpeg installed by Homebrew.

image

@M-D-M
Copy link
Author

M-D-M commented Oct 5, 2022

Thank you for looking into this so quickly!

Following up on the ffmpeg package from Buanzo's website -- I already had the x86 libs installed, but could not find any arm libs.

@M-D-M
Copy link
Author

M-D-M commented Oct 5, 2022

Was this the key line that solves the issue?

paths.emplace_back(wxT("/opt/homebrew/lib"));

FYI: I tried opening up Audacity for Mac Silicon again, and manually entered this location ("/opt/homebrew/lib") into the preferences, and now the ffmpeg libs are correctly found:

Screen Shot 2022-10-04 at 9 59 02 PM

@dozzzzer
Copy link
Contributor

dozzzzer commented Oct 5, 2022

I already had the x86 libs installed, but could not find any arm libs.

AFAIK, there's one .dmg package for both architectures.

@LWinterberg
Copy link
Member

LWinterberg commented Oct 5, 2022

(I think the buanzo website was updated after this issue was made)

@dozzzzer dozzzzer closed this as completed Oct 5, 2022
@dozzzzer dozzzzer self-assigned this Oct 5, 2022
@LWinterberg LWinterberg added this to the Audacity 3.2.1 milestone Oct 5, 2022
@crsib
Copy link
Member

crsib commented Oct 5, 2022

The pull request for this issue is not merged. Why is it closed?

@crsib crsib reopened this Oct 5, 2022
@crsib crsib closed this as completed Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error, undesired behaviour, or missed functionality
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants