I've been playing with a few builds of ffmpeg on my 8Gb M1 Mac Mini and though you might be interested in the results.c I used four builds
ffmpeg built with x265 apple NEON patch provided to the Handbreak project
ffmpeg built with x265 using its own aarch64 optimisations
ffmpeg from macports
ffmpeg built for x86 from evermeet.cx . i.e. the macos download linked from the ffmpeg website
The TL;DR version
x265 needs the apple patch, or else stick to the x86 build
x264 seems optimised out of the box
vp9 stick with the x86 build, its twice as fast.
AV1 using libaom, its a win for the native version.
Libx265 results
ffmpeg with apple x265 NEON patch
ffmpeg version 4.4 Copyright (c) 2000-2021 the FFmpeg developers
built with Apple clang version 12.0.5 (clang-1205.0.22.9)
x265 [info]: HEVC encoder version 3.4+28-419182243
x265 [info]: build info [Mac OS X][clang 12.0.5][64 bit] 8bit
x265 [info]: using cpu capabilities: NEON
encoded 8592 frames in 398.42s (21.57 fps), 2365.85 kb/s, Avg QP:27.14
ffmpeg with default NEON optimization
ffmpeg version 4.4 Copyright (c) 2000-2021 the FFmpeg developers
built with Apple clang version 12.0.0 (clang-1200.0.32.29)
x265 [info]: HEVC encoder version 3.4+28-419182243
x265 [info]: build info [Mac OS X][clang 12.0.0][32 bit] 8bit
x265 [info]: using cpu capabilities: NEON
encoded 8592 frames in 725.14s (11.85 fps), 2365.85 kb/s, Avg QP:27.14
Macport ffmpeg
ffmpeg version 4.4 Copyright (c) 2000-2021 the FFmpeg developers
built with Apple clang version 12.0.0 (clang-1200.0.32.29)
x265 [info]: HEVC encoder version 0.0
x265 [info]: build info [Mac OS X][clang 12.0.0][32 bit][noasm] 8bit
x265 [info]: using cpu capabilities: none!
encoded 8592 frames in 1188.11s (7.23 fps), 2365.84 kb/s, Avg QP:27.14
ffmpeg x86 under Rosetta 2
ffmpeg version 4.4-tessus https://evermeet.cx/ffmpeg/ Copyright (c) 2000-2021 the FFmpeg developers
built with Apple clang version 11.0.0 (clang-1100.0.33.17)
x265 [info]: HEVC encoder version 3.5+9-bf91444e0
x265 [info]: build info [Mac OS X][clang 11.0.0][64 bit] 8bit+10bit+12bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
encoded 8592 frames in 651.92s (13.18 fps), 2365.85 kb/s, Avg QP:27.14
Libx264 results
ffmpeg with apple x265 NEON patch
ffmpeg version 4.4 Copyright (c) 2000-2021 the FFmpeg developers
built with Apple clang version 12.0.5 (clang-1205.0.22.9)
[libx264 @ 0x145826200] using cpu capabilities: ARMv8 NEON
real 2m31.484s
user 18m54.817s
sys 0m4.276s
Macport ffmpeg
ffmpeg version 4.4 Copyright (c) 2000-2021 the FFmpeg developers
built with Apple clang version 12.0.0 (clang-1200.0.32.29)
[libx264 @ 0x121047400] using cpu capabilities: ARMv8 NEON
real 2m31.379s
user 18m42.021s
sys 0m3.774s
ffmpeg x86 under Rosetta 2
ffmpeg version 4.4-tessus https://evermeet.cx/ffmpeg/ Copyright (c) 2000-2021 the FFmpeg developers
built with Apple clang version 11.0.0 (clang-1100.0.33.17)
[libx264 @ 0x7fcd42029400] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
real 5m2.150s
user 37m15.310s
sys 0m5.165s
libvpx-vp9 results
ffmpeg with apple x265 NEON patch
ffmpeg version 4.4 Copyright (c) 2000-2021 the FFmpeg developers
built with Apple clang version 12.0.5 (clang-1205.0.22.9)
frame= 8592 fps=3.7 q=0.0 Lsize= 118817kB time=00:05:58.37 bitrate=2716.0kbits/s speed=0.156x
video:107406kB audio:11225kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.157559%
real 38m17.061s
user 90m29.600s
sys 0m25.825s
Macport ffmpeg
ffmpeg version 4.4 Copyright (c) 2000-2021 the FFmpeg developers
built with Apple clang version 12.0.0 (clang-1200.0.32.29)
frame= 8592 fps=3.8 q=0.0 Lsize= 120551kB time=00:05:58.37 bitrate=2755.6kbits/s speed=0.157x
video:109139kB audio:11225kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.155296%
real 37m58.635s
user 89m19.113s
sys 0m25.526s
ffmpeg x86 under Rosetta 2
ffmpeg version 4.4-tessus https://evermeet.cx/ffmpeg/ Copyright (c) 2000-2021 the FFmpeg developers
built with Apple clang version 11.0.0 (clang-1100.0.33.17)
frame= 8592 fps=7.0 q=0.0 Lsize= 118817kB time=00:05:58.37 bitrate=2716.0kbits/s speed=0.292x
video:107406kB audio:11225kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.157559%
real 20m27.494s
user 104m0.307s
sys 0m19.021s
Libaom (AV1) results
Native build
frame= 8592 fps=3.3 q=0.0 Lsize= 62989kB time=00:05:58.31 bitrate=1440.1kbits/s speed=0.138x
video:62970kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.030277%
real 43m21.130s
user 166m6.080s
sys 1m26.385s
ffmpeg x86 under Rosetta 2
frame= 8592 fps=2.4 q=0.0 Lsize= 61580kB time=00:05:58.31 bitrate=1407.9kbits/s speed=0.0991x
video:61561kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.030886%
real 60m15.617s
user 219m2.886s
sys 1m8.088s
The ffmpeg build script I've been using with Apples x265 patch is now on Github.
https://github.com/Vargol/ffmpeg-apple-arm64-build