image-processing - 裁剪后的ffmpeg psnr

标签 image-processing ffmpeg

我正在尝试计算两个宽度/高度略有不同的图像的 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/

相关文章:

node.js - 将 ffmpeg 添加到 heroku buildpack nodejs

ffmpeg - 如何使用 ffmpeg 将 2 个视频与音频连接起来?

video - RTP 的 H264 关键帧问题

python - 检测图像中的多个矩形

java - Java 中的对象检测/跟踪

opencv - 在拥挤区域进行强大的人体检测和跟踪

machine-learning - 如何将边界框 (x1, y1, x2, y2) 转换为 YOLO 样式 (X, Y, W, H)

c++ - 在 OpenCv 中扩展轮廓

video - 修复 mpeg2video 静止帧中的运动模糊

python - FFmpeg concat demuxer 不工作 : No error, 并且没有输出