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

Native Apple Silicon support #970

Closed
sungkhum opened this issue Jan 7, 2021 · 9 comments · Fixed by #1051
Closed

Native Apple Silicon support #970

sungkhum opened this issue Jan 7, 2021 · 9 comments · Fixed by #1051

Comments

@sungkhum
Copy link

sungkhum commented Jan 7, 2021

On my new Mac mini with the M1 processor, encoding videos is super slow with Kap. I was wondering if there were any plans to support the new M1 processor. If there are, I would be happy to beta test and give feedback. Thanks!

@sindresorhus sindresorhus changed the title Any plan to support the M1 Processor? Native Apple Silicon support Jan 7, 2021
@sindresorhus
Copy link
Contributor

sindresorhus commented Jan 7, 2021

Yes, but it's probably not happening soon. Some pieces need to fall into place first:


All the other binaries we use don't need an Apple Silicon build yet as they wouldn't benefit from it.

@sungkhum
Copy link
Author

sungkhum commented Jan 7, 2021

Thanks for the update @sindresorhus - totally makes sense. But glad that it could be possible! Kap is a great tool!

@raulrpearson
Copy link

It does seem like it could become a long wait. node-ffmpeg-installer seems to be relying on evermeet.cx for macOS binaries, but they in turn seem to have no intention of supporting those binaries in the foreseeable future. There is that cypress-io fork, though.

@sindresorhus, in the meantime, is there a workaround that we could use? Building our own ffmpeg and inserting into the Kap.app folder? Saving the un-encoded video capture and converting it ourselves? A 2-minute capture took 40 minutes of encoding and a reasonable amount of heat on my M1 which is a bit disappointing 😅.

I'm happy to help fix this, but I'm not sure how to.

@tortuetorche
Copy link

tortuetorche commented Jun 21, 2021

Hi folks,

@sindresorhus, in the meantime, is there a workaround that we could use? Building our own ffmpeg and inserting into the Kap.app folder?

Great idea @raulrpearson💡! Here what I did to work around the encoding issue:

Firstly you need to install Homebrew on your Mac, then run these commands in a terminal:

brew install ffmpeg
mv /Applications/Kap.app/Contents/Resources/app.asar.unpacked/node_modules/@ffmpeg-installer/darwin-x64/ffmpeg /Applications/Kap.app/Contents/Resources/app.asar.unpacked/node_modules/@ffmpeg-installer/darwin-x64/ffmpeg-x64
ln -s $(which ffmpeg) /Applications/Kap.app/Contents/Resources/app.asar.unpacked/node_modules/@ffmpeg-installer/darwin-x64

brew install gifsicle
mv /Applications/Kap.app/Contents/Resources/app.asar.unpacked/node_modules/gifsicle/vendor/gifsicle /Applications/Kap.app/Contents/Resources/app.asar.unpacked/node_modules/gifsicle/vendor/gifsicle-x64
ln -s $(which gifsicle) /Applications/Kap.app/Contents/Resources/app.asar.unpacked/node_modules/gifsicle/vendor

Try again to record a video, now Kap works like a charm with Apple Silicon M1, encoding videos is fast ⚡ as it should, without heat 🌡️ 🤩

Have a good day,
Tortue Torche

@fyoosh
Copy link

fyoosh commented Sep 9, 2021

Hi folks,

@sindresorhus, in the meantime, is there a workaround that we could use? Building our own ffmpeg and inserting into the Kap.app folder?

Great idea @raulrpearson💡! Here what I did to work around the encoding issue:

Firstly you need to install Homebrew on your Mac, then run these commands in a terminal:

brew install ffmpeg
mv /Applications/Kap.app/Contents/Resources/app.asar.unpacked/node_modules/@ffmpeg-installer/darwin-x64/ffmpeg /Applications/Kap.app/Contents/Resources/app.asar.unpacked/node_modules/@ffmpeg-installer/darwin-x64/ffmpeg-x64
ln -s $(which ffmpeg) /Applications/Kap.app/Contents/Resources/app.asar.unpacked/node_modules/@ffmpeg-installer/darwin-x64

brew install gifsicle
mv /Applications/Kap.app/Contents/Resources/app.asar.unpacked/node_modules/gifsicle/vendor/gifsicle /Applications/Kap.app/Contents/Resources/app.asar.unpacked/node_modules/gifsicle/vendor/gifsicle-x64
ln -s $(which gifsicle) /Applications/Kap.app/Contents/Resources/app.asar.unpacked/node_modules/gifsicle/vendor

Try again to record a video, now Kap works like a charm with Apple Silicon M1, encoding videos is fast ⚡ as it should, without heat 🌡️ 🤩

Have a good day,
Tortue Torche

Hey @tortuetorche just wondering, is there anyway to do this without installing/using Homebrew?

@tortuetorche
Copy link

Hi @fokusferit,

Hey @tortuetorche just wondering, is there anyway to do this without installing/using Homebrew?

🤷‍♂️

Maybe you can download a ffmpeg and gifsicle build for macOS M1 somewhere...

@jackblk
Copy link

jackblk commented Nov 16, 2021

Seems like the path to /node_modules/@ffmpeg-installer/darwin-x64/ffmpeg is not correct anymore (I'm using Kap 3.4.2). It has changed because of #1021

I changed it to /node_modules/ffmpeg-static/ffmpeg, ffmpeg is showed as Apple kind in Activity Monitor and it converts
pretty fast now.

Here's my commands

brew install ffmpeg
mv /Applications/Kap.app/Contents/Resources/app.asar.unpacked/node_modules/ffmpeg-static/ffmpeg /Applications/Kap.app/Contents/Resources/app.asar.unpacked/node_modules/ffmpeg-static/ffmpeg-x64
ln -s $(which ffmpeg) /Applications/Kap.app/Contents/Resources/app.asar.unpacked/node_modules/ffmpeg-static

brew install gifsicle
mv /Applications/Kap.app/Contents/Resources/app.asar.unpacked/node_modules/gifsicle/vendor/gifsicle /Applications/Kap.app/Contents/Resources/app.asar.unpacked/node_modules/gifsicle/vendor/gifsicle-x64
ln -s $(which gifsicle) /Applications/Kap.app/Contents/Resources/app.asar.unpacked/node_modules/gifsicle/vendor

@rakleed
Copy link

rakleed commented Dec 1, 2021

@sindresorhus why didn't you release the new version on GitHub, but only added it to Homebrew?

@jackblk
Copy link

jackblk commented Dec 7, 2021

@sindresorhus why didn't you release the new version on GitHub, but only added it to Homebrew?

The commands to install ffmpeg and gifsicle is not Kap itself, they are dependencies for Kap. Kap needs its dependencies to be updated for Apple Silicon, aside from these, we will need Electron v12 (done in #1051 ) and further testing.

New version for Kap to support native Apple Silicon is not there yet, it will be released soon™. Be patient 😄

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

Successfully merging a pull request may close this issue.

7 participants