FFmpeg: Difference between revisions

476 bytes added ,  31 October 2019
Line 39: Line 39:
done
done
</syntaxhighlight>
</syntaxhighlight>
===PSNR/SSIM===
[https://github.com/stoyanovgeorge/ffmpeg/wiki/How-to-Compare-Video Reference]<br>
FFmpeg can compare two videos and output the psnr or ssim numbers for each of the y, u, and v channels.<br>
<syntaxhighlight lang="bash">
ffmpeg -i distorted.mp4 -i reference.mp4 \
      -lavfi "ssim;[0:v][1:v]psnr" -f null –
ffmpeg -i distorted.mp4 -i reference.mp4 -lavfi  psnr -f null -
ffmpeg -i distorted.mp4 -i reference.mp4 -lavfi  ssim -f null -
</syntaxhighlight


==C API==
==C API==