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

Support Apple Silicon M1 #642

Closed
4 of 6 tasks
mifi opened this issue Feb 5, 2021 · 14 comments
Closed
4 of 6 tasks

Support Apple Silicon M1 #642

mifi opened this issue Feb 5, 2021 · 14 comments

Comments

@mifi
Copy link
Owner

mifi commented Feb 5, 2021

Need support from Electron, m1 ffmpeg static binaries and possibly Github Actions. Maybe the greatest benefit will come from being able to run m1 ffmpeg, because ffmpeg is doing all the hard work.

ffmpeg

electron

@dia3olik
Copy link

dia3olik commented May 1, 2021

Apple Silicon support would be AMAZING!!!!

M1 is very power efficient and with GREAT performance especially on all media related tasks!

ffmpeg m1 is possible with homebrew btw ;-)

@sparanoid
Copy link
Contributor

sparanoid commented Jan 21, 2022

+1 for native Apple Silicon support.

JFY ffmpeg is available in arm64 from homebrew install:

file (which ffmpeg)
/opt/homebrew/bin/ffmpeg: Mach-O 64-bit executable arm64

@mifi
Copy link
Owner Author

mifi commented Jan 21, 2022

That's cool! Still waiting for github actions to support m1 so i can build ffmpeg for m1 too https://github.com/mifi/ffmpeg-build-script
May be possible to build it otherwise but I don't have the apple silicon hardware yet

@DaveFlashNL
Copy link

ok, now we got linux arm64/aarch64 build, so what is the state and progress of of this software for M1 Silicon support?

@mifi
Copy link
Owner Author

mifi commented Apr 16, 2022

See above list, still waiting for github actions to support m1 to be able to build our custom ffmpeg version: actions/runner-images#2187

@DaveFlashNL
Copy link

See above list, still waiting for github actions to support m1

wait what? github' builder tool doesn't support it yet? how come?

@AntiVirtual
Copy link

if we just need ffmpeg for M1, can we use this one?
http://www.osxexperts.net
or
https://ffmpeg.martin-riedl.de

@lijutsang

This comment was marked as off-topic.

@mifi
Copy link
Owner Author

mifi commented Jul 2, 2022

Need to build a custom stripped-down ffmpeg for MacOS because Apple is quite strict with their notarization/validation of apps https://github.com/mifi/ffmpeg-build-script

Looks like github actions might support M1 in september according to some rumors in their issue

@mcp73
Copy link

mcp73 commented Nov 5, 2022

Great software, thanks for your work! Has there been any update on Silicon support?

@mifi
Copy link
Owner Author

mifi commented Nov 5, 2022

Github doesnt yet have apple silicon runners, and I’m a bit hesitant to set up my own servers for this, so ffmpeg silicon support will depend on that. However losslesscut itself will support silicon when i upgrade electron, which is the highest priority now.

@mcp73
Copy link

mcp73 commented Nov 6, 2022

Github doesnt yet have apple silicon runners

Maybe the correct question to ask is if lossless-cut can be compiled to run natively on Silicon?

As an example, there is a project by dbrookman (see link below) that has a simple script to build the video player mpv, which is also based on ffmpeg. Would a similar build method work for lossless-cut?

How to build mpv & mpv.app on an Apple silicon (M1 / M2) Mac:
https://gist.github.com/dbrookman/74b8bcfb37a23452f7137b83bca9580f

Edit: I just saw above where you said, "cannot release these builds on the mac app store", so i'm sure a lot more to it than i'm aware of. If you look through the comments of the project by dbrookman, he does show how to do a static build of an .app bundle free of any dynamically-linked dependencies from Homebrew and ffmpeg. If I could build it myself on Silicon via a script, that would suffice.

@mifi
Copy link
Owner Author

mifi commented Nov 8, 2022

I think currently it cannot be compiled to run natively on Silicon, but after upgrading Electron, losslesscut itself can be compiled natively for silicon.

As for "cannot release these builds on the mac app store", I'm referring to losslesscut's ffmpeg builds. I cannot use other people's silicon ffmpeg builds, I need to compile them myself due to certain flags needed for Mac App Store.

You can see here how I build ffmpeg: https://github.com/mifi/ffmpeg-build-script however as said github doesn't support Silicon yet so i cannot build ffmpeg for silicon yet.

@mifi
Copy link
Owner Author

mifi commented Nov 23, 2022

I've now got an m2 macbook and have now built a custom ffmpeg using https://github.com/mifi/ffmpeg-build-script, so I'm trying to build for silicon in the next release!

@mifi mifi closed this as completed Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants