以下仅供参考...
x264无损编码:
ffmpeg -r 1/10 -i index.png -pix_fmt bgr24 -c:v libx264rgb -qp 0 x264.qp0.mp4
截图:
ffmpeg -i x264.qp0.mp4 -f image2 -vf "fps='fps=1/10'" img%%04d.png
计算PSNR:
ffmpeg -i index.png -i img0001.png -filter_complex [0:v][1:v]psnr[out] -map [out] -f null NUL
结果(PSNR):
[Parsed_psnr_0 @ 00d36280] PSNR average:inf min:inf max:inf
http://s3.postimg.org/8xx4yv7tt/image.png