View Full Version : Comparing 2 avi file with Avisynth,can it be done?
thegame
27th December 2009, 23:50
I have 2 files(huffy video files)and want to compare them,something is different but I need to see both together and run through them,can avisynth do this? and if so how is it done?
Thanks in advance
EuropeanMan
28th December 2009, 01:16
Create a script in Notepad
Save as compare.avs
Script:
a=avisource("x:\video 1.avi")
b=avisource""x:\video 2.avi")
stackvertical(a,b) # or stackhorizontal(a,b)
--------------------------
We are assuming you've done an encode on something in 2 different ways, and thus the frames are identical...
IF the videos are diferent but contain some scene that is COMMON between the two...you hunt for the frame numbers on each video file, by parsing it through VirtualDub(Mod)
example.
Video 1 - scene that is common - frame number 2400 to 5000 (2600 total frames) # your video 1 has tons of frames, lets say 100000
Video 2 - scene that is common - frame number 2 to 2602 (2600 total frames) <---ideally you want an equal length of frames to do an accurate comparison
Script:
a=avisource("x:\video1.avi").trim(2400,5000)
b=avisource("x:\video2.avi").trim(2,2602)
stackvertical(a,b) # or stackhorizontal(a,b)
# PLEASE MAKE SURE YOU HAVE THE SAME DIMENSIONS - HEIGHT VS. WIDTH on each avi file
LOAD the script into VirtualDub and you can view the videos together side/side or top/bottom as you wish.
You can also encode to what you wish as well...
thegame
28th December 2009, 01:32
Thank you very,very much,that was a BIG help,it worked,now I can see the differences in my files.
Again Thanks A Lot
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.