I hit the above problem just last week when I tried to use the ffmpeg library on my M1 Macs (experimentation with Wiener whitening of the MTF of AVI files of Jupiter from a small OTA, that is created by ASIAIR). I eventually just compiled against the ARM64 architecture, since the program is for my own consumption only.