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?
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
. 更改m1
为lavfi.ssim.All
和最小值,最大值为0
和1
resp。
在http://ffmpeg.org/ffmpeg-filters.html查看这些过滤器的文档
于 2018-11-02T06:47:22.170 回答