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

Mac M2 Pro - multiple issues #82

Closed
neonsatire opened this issue Sep 13, 2024 · 13 comments
Closed

Mac M2 Pro - multiple issues #82

neonsatire opened this issue Sep 13, 2024 · 13 comments

Comments

@neonsatire
Copy link

Hi,

I recently tried to install noscribe (version 0.5.0) several times on my Mac (M2 Pro Sonoma 14.1.1), and have been running into a series of issues: the first of which was an ffmpeg error (like described here: #78).

I used the solution @BabyFnord offered up, but after that ran into an error in step 2 (identifying the speakers). Turning off speaker detection, I ran into Error in step 3 ([Errno 2] No such file or directory:).

What can I do?

Thanks for any help!
noscribelog.pdf

@gernophil
Copy link
Collaborator

I recently tried to install noscribe (version 0.5.0) several times on my Mac (M2 Pro Sonoma 14.1.1), and have been running into a series of issues: the first of which was an ffmpeg error (like described here: #78).

The first one can be solved by installing Rosetta (which is an official intel to arm translator from Apple). Maybe we will include an arm64 specific version off ffmpeg in to next release. You can install Rosetta2 manually follwing this:
https://apple.stackexchange.com/questions/457472/how-to-install-rosetta-2-manually

I used the solution @BabyFnord offered up, but after that ran into an error in step 2 (identifying the speakers). Turning off speaker detection, I ran into Error in step 3 ([Errno 2] No such file or directory:).

I guess the second issue comes from the solution of the first. Try to redownload noScribe, install Rosetta2 and run it without changing any internal files. I looks like the ffmpeg version you manually introduced is missing some libraries.

@neonsatire
Copy link
Author

Thanks for the quick reply, this worked for me!

(In case someone else is having this issue, I wasn't asked to install rosetta 2 for the program, and spent a stupid amount of time googling installing rosetta 2 - since most pages talk about installing it 'manually' via software update. Just follow the link above and do it in Terminal.)

@gernophil
Copy link
Collaborator

gernophil commented Sep 13, 2024

Yes, I also don't know, why it doesn't ask for being installed when running noScribe. It should be triggered by x86_64 executables, but maybe, because the app itself is an arm64 and the x86_64 ffmpeg is just hidden somewhere in the app.

Maybe we should mention this in the README.md, @kaixxx?

@gernophil
Copy link
Collaborator

And great to hear it worked :).

@kaixxx
Copy link
Owner

kaixxx commented Sep 13, 2024

Maybe we should mention this in the README.md

Yes, this would be very useful. Go ahead if you want 😃

@BabyFnord
Copy link

While it's perfectly debatable and somewhat easier to rely on Rosetta to emulate x86_64 on Apple Silicon for the audio conversion part, I'd rather install ffmpeg via Homebrew and exchange ffmpeg and ffplay for proper arm64 versions (as per #78 (comment)). At least for the time being … 🤷‍♂️

@gernophil
Copy link
Collaborator

gernophil commented Sep 13, 2024

I tend to disagree :). Actually, I believe the majority of Apple silicon's has installed Rosetta2 anyway, since you need it for a lot of stuff. Since it's perfectly integrated into macOS's environment, the only reason not to use it is due to performance issues. And for ffmpeg that's not an issue. Exchanging packages in an .app is more error prone. And the ffmpeg from homebrew does not seem to be a standalone executable. If you exchange, you should at least use one of the standalone builds from osxexperts.net or similar.

@gernophil
Copy link
Collaborator

gernophil commented Sep 13, 2024

More is described here:

Homebrew is an easy way to compile FFmpeg files but sadly they are not static.
Static means you can copy the FFmpeg file anywere you want. It has no dependencies compared to a dynamically build like Homebrew does.

One widely used static build of ffmpeg besides that from osxexperts.net can be found at ffmpeg.martin-riedl.de. I guess we'll either use one of those or build it ourselves in the next release, but this might be a little overkill.

@gernophil
Copy link
Collaborator

osxexperts.net state that "[t]he provided FFmpeg files are for educational purposes only". Not sure, if we can use them. Martin Riedl does not have such a disclaimer. Maybe we could ask him. What are your thoughts on that @kaixxx?

@kaixxx
Copy link
Owner

kaixxx commented Sep 13, 2024

The builds from Martin Riedl look good. The are also signed, which might be a bonus.
I'm open for both solutions: rosetta or special builds.

@BabyFnord
Copy link

BabyFnord commented Sep 14, 2024

One widely used static build of ffmpeg […] can be found at ffmpeg.martin-riedl.de.

Pretty neat find 👍. I wasn't aware of FFmpeg's reliance on libraries, doh. FWIW I've adapted #78 (comment) to use https://ffmpeg.martin-riedl.de/ binaries, as a Rosetta-independent fix for the time being 😺.

@gernophil
Copy link
Collaborator

I wasn't aware of FFmpeg's reliance on libraries, doh.

Me neither since the error report of @neonsatire :). Thanks for updating your solution. (And sorry for editing your comment, I wanted to answer. Didn't even know, I could edit your comments :D.)

@neonsatire
Copy link
Author

I'm very glad I got to learn something. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants