FFmpeg decode video to frames

cd /dev/shm
ffmpeg -benchmark -r 10 -i 'e512.mp4' -f null -
ffmpeg -benchmark -r 10 -i 'e512.mp4' 'frames/%03d.jpg'

bench: utime=2.172s stime=0.344s rtime=2.112s
real  2.112s
user  2.172s
sys   0.344s

./ffmpeg -y -benchmark -r 10 -f image2 -s 672x672 -start_number 0 -i images\\%03d.png -vframes 448 -vcodec libx264 -crf 25 -pix_fmt yuv444p video.mp4

psnr
ffmpeg -i src.mp4  -i dst.mp4  -lavfi psnr="stats_file=psnr.log" -f null -
ssim
ffmpeg -i src.mp4  -i dst.mp4  -lavfi ssim="stats_file=ssim.log" -f null -


-profile:v main -preset:v fast -level 3.1 -x264opts crf=18 -tune fastdecode