-
Notifications
You must be signed in to change notification settings - Fork 109
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
Sluggishness in Apple Silicon #124
Comments
Mh, I guess the M1 does not have the SSE extensions, so the optimized machine code is not used. If this is the reason the slow speed is expected. |
I'm trying to understand the issue here, so do you have bits of straight asm code in your codebase? Or would it be possible to tweak the Makefile to use specific compiler options to mitigate this problem in Apple Silicon (or other non-Mac Arm machines)? |
As a follow up (so I can try to investigate this further). Is there anything I can read about how you use those instructions for the speedup? |
As an update, I found that there are some solutions to this problem of the SSE API: The first one seems to be the easiest to use. If I got some time, I aim to try compiling this locally and do a pull request. |
@meneguzzi |
Hi, I tried for an hour or so to make |
Done, I pushed changes I tried to do as a workaround. I did not have time to test compiling ffmpeg with that, so if somebody (or @juanctecdam) has time to do it, I'd appreciate it. |
I've compiled ffmpeg from source:
But running:
Is extremely slow:
0.9fps on an M3 Max, making it not practical to run. I appreciate it's not Apples to Apples but this clip takes about 13 seconds to process in Final Cut stabe vs over an 1 hour using this. Anything I am missing that is causing performance to be so poor? |
I have tried to use ffmpeg to stabilise a video I took with my cellphone. I had done this before in an Intel Mac, and the speed of the passes were slow but not sluggish. I recently tried doing the same in my Apple Silicon Mac (a quite beefy spec: Apple M1 Max, 32GB RAM), and the frame rate was extremely slow (best speed so far was
speed=0.0339x
. I checked that I am using the versions of all software (ffmpeg and libvidstab) from homebrew compiled for Apple Silicon, so this is definitely not an emulation problem.This might be my own recollection of what to expect being wrong, but is this speed normal?
The text was updated successfully, but these errors were encountered: