homebridge / ffmpeg-for-homebridge

Static FFmpeg binaries for Homebridge with support for audio (libfdk-aac) and hardware-accelerated decoding and encoding (h264_qsv, h264_v4l2m2m, videotoolbox).
109 stars 13 forks source link

Add support for Apple Silicon #30

Closed jonlonergan closed 2 years ago

jonlonergan commented 3 years ago

Is your feature request related to a problem? Please describe: I'm running homebridge on an Apple silicon Mac mini. Its architecture is arm64. The package works when homebridge is running in Rosetta on Node.js 14, but doesn't work in Node.js 16 running natively on Apple silicon because that architecture is not supported.

Describe the solution you'd like: Build a package for Mac arm64 and add arm64 to the supported architecture list.

Describe alternatives you've considered: I tried building ffmpeg-for-homebridge from a recent pull request that adds Apple silicon support but ran into errors compiling. Though I must admit, I'm new to compiling and could be missing something.

donavanbecker commented 3 years ago

currently this is the only possible way till #29 is merged.

donavanbecker commented 3 years ago

@jonlonergan for the time being if you want to manually download the ffmpeg-darwin-arm64 and move it to the /usr/local/bin folder. That will work on Apple Silicon. Just tested on Mac mini m1 myself.

jonlonergan commented 3 years ago

@jonlonergan for the time being if you want to manually download the ffmpeg-darwin-arm64 and move it to the /usr/local/bin folder. That will work on Apple Silicon. Just tested on Mac mini m1 myself.

Thank you very much - this helped fix the problem I was experiencing.

donavanbecker commented 3 years ago

@jonlonergan was it a specific plugin?

jonlonergan commented 3 years ago

@jonlonergan was it a specific plugin?

@donavanbecker Yes - https://github.com/samemory/homebridge-eufy-security

donavanbecker commented 2 years ago

Hey @jonlonergan

I would download this ffmpeg file and would replace it, since the other one is intel based and uses rosetta 2 where this is built for apple silicon. Trying to get this implemented into the repo.

ffmpeg.zip

simplytoast1 commented 2 years ago

currently this is the only possible way till #29 is merged.

It seems #29 was merged in? Is that true?

donavanbecker commented 2 years ago

v0.0.10 has been release with support for Apple Silicon.