Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.


Go Back   Doom9's Forum > Capturing and Editing Video > NLE - Non Linear Editing

Thread Tools Search this Thread Display Modes
Old 6th September 2011, 19:08   #1  |  Link
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.

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?

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
Old 8th September 2011, 09:14   #2  |  Link
Registered User
Join Date: Mar 2010
Posts: 106
I was just made aware of a professional Fraunhofer tool (which is I think not available to end users) but which visually explains my posting above:

For my own needs, I don't require all the hierarchical levels, I would already be happy to find a good solution for a single level, like this:

lovelove is offline   Reply With Quote
Old 12th September 2011, 06:20   #3  |  Link
Registered User
Join Date: Dec 2004
Posts: 145
Wouldn't you be better off just putting them both on a timeline & zooming in and just manually comparing?
Yobbo is offline   Reply With Quote
Old 12th September 2011, 06:35   #4  |  Link
Registered User
Join Date: Mar 2010
Posts: 106
Yes, I think so. It gradually occured to me over the last few days. I'll post later on. Thank you.
lovelove is offline   Reply With Quote
Old 12th September 2011, 08:29   #5  |  Link
Registered User
Join Date: Nov 2006
Posts: 722
Easy to do with Sony Vegas but i guess is possible with many NLE softs

You put the 2 videos on 2 separate tracks and you simply lower the opacity of the first and add a unique color to it so you can compare them: scenes and lengths
Mounir is offline   Reply With Quote
Old 12th September 2011, 16:58   #6  |  Link
Registered User
Join Date: Jan 2006
Posts: 1,867
There's scripts to do this on a numerical level. We use it to restore videos by usiing different sources. The problem is, they have to be matched in the other ways before this stage, so you can do levels/geometry tweaking beforehand.
Something as simple as subtract(clip1,clip2) will make difference stand out like a sore thumb.
jmac698 is offline   Reply With Quote

comparison, scene change detection, scene detection, video comparison

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +1. The time now is 21:21.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.