Obtain the correlation between two input videos.
This filter takes two input videos.
Both input videos must have the same resolution and pixel format for this filter to work correctly. Also it assumes that both inputs have the same number of frames, which are compared one by one.
The obtained per component, average, min and max correlation is printed through the logging system.
The filter stores the calculated correlation of each frame in frame metadata.
This filter also supports the framesync options.
In the below example the input file main.mpg being processed is compared with the reference file ref.mpg.
ffmpeg -i main.mpg -i ref.mpg -lavfi corr -f null -