我正在尝试计算两个宽度/高度略有不同的图像的 PSNR:
ffmpeg -y -i /tmp/ff-021407597-sn-1029-516-C-0-956542137
-i /tmp/ff-021407597-ff-1029-516-C-0-362227908
-filter_complex "[0:v]crop=1028:514;[1:v]crop=1028:514"
-filter_complex "psnr" %03d.png
这不起作用,我收到此错误:Input #0, png_pipe, from
'/tmp/ff-021407597-sn-1029-516-C-0-956542137': Duration: N/A,
bitrate: N/A
Stream #0:0: Video: png, rgb24(pc), 1029x515, 25 tbr, 25 tbn, 25 tbc Input #1, png_pipe, from
'/tmp/ff-021407597-ff-1029-516-C-0-362227908': Duration: N/A,
bitrate: N/A
Stream #1:0: Video: png, rgb24(pc), 1029x516, 25 tbr, 25 tbn, 25 tbc Cannot find a matching stream for unlabeled input pad 0 on filter
Parsed_psnr_0
有没有办法映射裁剪过滤器的输出,以便将其传递到 psnr 过滤器?
最佳答案
利用
ffmpeg -y -i /tmp/ff-021407597-sn-1029-516-C-0-956542137
-i /tmp/ff-021407597-ff-1029-516-C-0-362227908
-filter_complex "[0:v]crop=1028:514[a];[1:v]crop=1028:514[b];[a][b]psnr" -f null -
关于image-processing - 裁剪后的ffmpeg psnr,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51053213/