FFMPEG BENCHMARK ---------------- git clone https://github.com/FFmpeg/FFmpeg cd FFmpeg ./configure make -j8 sudo make install TL;DR ----- ffmpeg-current from git is optimized for riscv64 and encoding a video is roughly 20x slower on DC-ROMA II Pad than on M2 MacBook Air (arm64) Still the best current performance is from the latest git cloned ffmpeg on the riscv64 COMMMAND -------- ffmpeg -benchmark -i input.mp4 output.mp4 SAMPLE VIDEO ------------ input.mp4 Duration: 00:16:10.76, start: 0.000000, bitrate: 2482 kb/s Stream #0:0[0x1](und): Audio: aac (HE-AAC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 126 kb/s (default) Stream #0:1[0x2](und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(progressive), 1280x720, 2350 kb/s, 23.97 fps, 23.98 tbr, 90k tbn (default) TEST BENCHMARKS --------------- riscv64 DC-ROMA II Pad ffmpeg current (https://github.com/ffmpeg/ffmpeg) ffmpeg version N-117854-gf298507323 Copyright (c) 2000-2024 the FFmpeg developers [out#0/mp4 @ 0x2adfe19f70] video:92331KiB audio:15376KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.449674% frame=23274 fps= 55 q=31.0 Lsize= 108191KiB time=00:16:10.75 bitrate= 913.0kbits/s speed=2.28x bench: utime=2404.424s stime=54.572s rtime=425.510s bench: maxrss=120412KiB [aac @ 0x2adff22b50] Qavg: 781.346 riscv64 DC-ROMA II Pad ffmeg-rrv (https://github.com/sifive/ffmpeg-rvv) ffmpeg version git-2023-11-16-5da0f0e Copyright (c) 2000-2023 the FFmpeg developers [out#0/mp4 @ 0x2ad75b7b20] video:92336kB audio:15375kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.449647% frame=23275 fps= 27 q=31.0 Lsize= 108195kB time=00:16:10.73 bitrate= 913.1kbits/s dup=1 drop=0 speed=1.14x bench: utime=3537.390s stime=35.150s rtime=848.808s bench: maxrss=95404kB [aac @ 0x2ad7dfd200] Qavg: 777.476 arm64 M2 MacBook Air ffmpeg version N-117608-gf0e6296dde Copyright (c) 2000-2024 the FFmpeg developers [out#0/mp4 @ 0x6000014b4300] video:92331KiB audio:15380KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.449660% frame=23274 fps=1045 q=31.0 Lsize= 108194KiB time=00:16:10.75 bitrate= 913.0kbits/s speed=43.6x bench: utime=125.916s stime=5.740s rtime=22.268s bench: maxrss=151945216KiB [aac @ 0x15ae57be0] Qavg: 775.455 Multi treaded test --------------------- ./ffmpeg -threads 8 -benchmark -i input.mp4 output.mp4 TEST BENCHMARKS --------------- riscv64 DC-ROMA II Pad ffmpeg current (https://github.com/ffmpeg/ffmpeg) ffmpeg version N-117854-gf298507323 Copyright (c) 2000-2024 the FFmpeg developers [out#0/mp4 @ 0x2ac1b7c0a0] video:92331KiB audio:15376KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.449674% frame=23274 fps= 53 q=31.0 Lsize= 108191KiB time=00:16:10.75 bitrate= 913.0kbits/s speed=2.23x bench: utime=2432.548s stime=55.627s rtime=435.193s bench: maxrss=115296KiB [aac @ 0x2ac1c0b360] Qavg: 781.346 arm64 M2 MacBook Air ffmpeg version N-117608-gf0e6296dde Copyright (c) 2000-2024 the FFmpeg developers [out#0/mp4 @ 0x600000f3c300] video:92331KiB audio:15380KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.449660% frame=23274 fps=1082 q=31.0 Lsize= 108194KiB time=00:16:10.75 bitrate= 913.0kbits/s speed=45.1x bench: utime=125.359s stime=5.651s rtime=21.508s bench: maxrss=146604032KiB [aac @ 0x148e507b0] Qavg: 775.455