Reputation: 1546
I'm working on software that will create MP4 videos using the MLT Framework. I need to create some unit tests for my processes that will compare a pre-testing creating video with the one that is created. I am using Python for the code. I need to ensure that the content of the videos is the same. What are the ways that I can programmatically compare the two videos?
Upvotes: 4
Views: 4067
Reputation:
One common metric for comparing video files is SSIM (structural similarity) -- videos with a high SSIM are likely to be "equal".
There are a number of tools available for calculating the SSIM of two video files; one such tool is available at: https://github.com/kahkeng/vqats
Upvotes: 4