0

If I have both reference and test videos and I want to play the test video while also observing a plot of SSIM or PSNR, can this be done using FFmpeg's filter?

4

1 回答 1

0

基本模板是

ffplay -f lavfi "movie='source.mp4'[s];movie='encode.mp4',split[p][e];[e][s]psnr,drawgraph=m1='lavfi.psnr.psnr_avg':min=0:max=60:slide=scroll,scale=640:-1,drawgrid=h=ih/10[g];[p][g]vstack"

该图应重新调整为与编码视频相同的宽度(640在这种情况下)。

对于 SSIM,使用ssim过滤器代替psnr. 更改m1lavfi.ssim.All和最小值,最大值为01resp。

在http://ffmpeg.org/ffmpeg-filters.html查看这些过滤器的文档

于 2018-11-02T06:47:22.170 回答