View Single Post
Old 6th September 2011, 19:08   #1  |  Link
lovelove
Registered User
 
Join Date: Mar 2010
Posts: 106
How to compare video content?

Hi. Does anyone have good ideas for comparing videos?

For scenario 1 I have a working but probably improvable solution, suggestions welcome
For scenario 2 I don't really have a good solution. Help appreciated.

Quote:
Scenario 1: The objective is to check whether a given clip A and clip B have identical content, i.e. whether all scenes are the same (same length, same order, etc.). Different encoding parameters don't matter (i.e. the clips can have different X*Y resolution, different framerate, different quality, image enhancements, etc.)

The only solution I have found so far is to create a thumbnail sheet for each clip and then check if both images are identical.

» Solution 1a: MPC or MPC-HC (file > save thumbnails)
(nothing can be adjusted)

» Solution 1b: Movie Thumbnailer
mtn.exe -z -c 10 -s 60 -b 2 -B 0,0 -E 0,0 -w 1280 -g 6 -j 100 -L 4:2 -D 0 -h 50 -k FFFFFF -f cour.ttf -F 000000:10:TAHOMABD.TTF:FFFF00:000000:10 -o _thumbs.jpg -n -p inputfile.avi
(begin time, end time can be adjusted via -B -E, frame rate via -s)

» Solution 1c: FFmpeg
ffmpeg.exe -i inputfile.avi -r 0.1 -s 400x300 -ss hh:mm:ss -t hh:mm:ss -f image2 outputfile-%%03d.png
(begin time, end time can be adjuste via -ss, -t, frame rate via -r)
Is there any other method than resorting to thumbnail sheets?

Quote:
Scenario 2: Some clips are different, but share common content to some extent. The objective here is to compare the content of clip A and clip B to determine what scenes occur in both clips and what scenes are in A (but not in B) and in B (but not in A).

» Solution 2a: Virtualdub + mods
You open 2 instances side by side and use the button "scan forward to next scene change".
Problem: external codecs required. Some of them process the video slower than realtime (which means that you would even be faster by just sitting through the whole video)

» Solution 2b: TMPGenc video Mastering Works
The "clip editing" interface features scene change detection.
Problem: Can't say yet, I'm still testing. It would be helpful if the identified scenes could be copied to the timeline, but I'm afraid the program can't do that.
Do you know better solutions for that?
thank you.

Last edited by lovelove; 12th September 2011 at 06:30.
lovelove is offline   Reply With Quote