Hello,
I am in process of trying to restore/remaster some old footage. One thing i want but i have not found a proper solution is a good way to compare the original with the restoration result.
Previously i've used the method of taking a screenshot of the same frame, but there has to be a better way, we are infact in 2021 and not 2001!![]()
I found this application (Video of the app in use: https://www.youtube.com/watch?v=ZAq3I8VduFg ) and the idea behind it is great but it doesn't work for 99.9% of the file formats i try it with, anyone know anything siimilar that has the capability of comparing 2 videos where you have a slider in the middle that you can move back and fourth to see the exact difference?
Thanks!
+ Reply to Thread
Results 1 to 16 of 16
-
-
create a .avs file with the command stackhorizontal(video1, video2)
open the file in VirtualDub
video1 and video2 must be same colors space and same heightLast edited by lollo; 5th Apr 2021 at 08:09.
-
If you wish dynamic comparison
Fixed cursor animation (not moving with mouse)
avisynth animate and alpha_mask (search the forum), example attached
Moving cursor with mouse:
without using expensive video editing software the only way I found is html5 (requires conversion to h264, mp4 container)
https://codemyui.com/video-comparison-slider-animation-using-html5/
I can send my scripts if you wish
P.S. I will check that "video comparator" you linked...Last edited by lollo; 5th Apr 2021 at 08:13.
-
I put the "before" and "after" on two tracks in my NLE (Vegas) and can either place them side-by-side, like the AVISYnth StackHorizontal function, or I can press the mute button for the top track while the video plays and "A/B" between them while they are playing.
With AVISynth scripts I often use the simple trick of interleaving the before and the after by assigning the variable "source" to the video that is fed to the script and "output" to the video that results from all the things done by the script. I then use this simple code to interleave them.
Code:Interleave(source, output)
-
Another option is avspmod tabs using avisynth. The number keys hotswap the version loaded in each tab. It's easier to compare more than 2 versions or filter chains and keep track of original frame numbers and timecode in the status bar (if you use interleave, the original frame numbering change). Built in color picker with x,y coordinates, so you can read off R,G,B, and Y,U,V and hex values
Natron has a A/B compare interactive wipe viewer like that video in the first post. You can drag the wipe, change angle and opacity. Or if you have more than 2 inputs, you can swap with number keys for each read node like avspmod. It supports most video formats using libavformat (like ffmpeg). But natron a node based compositor and probably not intuitive to use for most people. It's a free/open source clone of nuke -
thanks for all the tips, i feel like all these solutions are rather complex, having to write custom scripts each time you want to do a compare.
would be real damn nice to have something like in the video i linked where you simply just drag and drop 2 videos on the application and voila you have an instant compare where you can drag between to see the exact difference, wishful thining i guessWith all these custom ways and scripts i feel like just taking a screenshot may be the easiest solution still.
-
Sort of close but to much work to do the compare, i do a lot of testing so having to do a lot of work for each compare just adds too much overhead, a simple frame screenshot seems to still be the most efficient way of doing it i guess
I guess you could also use something like "Awesomeplayer" to play 2 files at the same time side by side, which works sorta nice. -
do a lot of work for each compare just adds too much overhead
The avisynth method requires more writing if you want to overlap the moving cursor with different scenes. In addition you cannot move the cursor. But it works with lossless avi files.
edit: added html5 exampleLast edited by lollo; 5th Apr 2021 at 13:28.
-
You don't have to write a script, if you're only viewing - you can drop and drag videos into avspmod, and if you setup extension templates, it will automatically fill in the source filter, path and names. Say you want "MOV" files to open with LSmashVideoSource - You fill in the template LSmashVideoSource(***) for MOV - whenever you drop a MOV it will fill in the script. If you drag and drop 2 or more videos, it will automatically open each in a separate tab filled in with paths and names. I always like the "original" in tab 1, so it's like windows selections when you group select - select the last one first and it will appear in tab 1. One issue with avspmod is it will stop playing if you swap tabs. But you can drag the slider, and hit number keys to swap, or change the hotkey to play/stop
You can drop and drag videos into natron and they will automatically open a read node and connect a pipe to the viewer. If you drag 2 videos, the 1st node will automatically be connected, but the 2nd requires you to click on the node and assign number key such as "2" to connect to viewer. One issue with natron is it's designed and optimized for image sequences and VFX. "Video" formats can open (it uses ffmpeg libraries), but it's not optimized (slower ). But if you for some reason like that interactive wipe slider, it works
If you use the screenshot to compare - it's quite limited and "clunky". What if you want to compare other frames ? Say you see something that needs to be "fixed" - so what are you going to do about it ? What is your process of "restore/remaster some old footage?" Are you going back and forth between programs? If part of your "restoration" is using a script anyways, it makes sense to do it in avspmod because you can adjust the script, refresh (f5). Maybe stronger denoise settings in one tab, compared to higher saturation in another, etc...you can preview the results without having to encode an actual video and wasting time going back and forth a dozen times to tweak settings, or hours to encode -
It can be all be done in a batch file. You can drag/drop two videos onto the batch file.
For example:
Code:echo v1 = LWLibavVideoSource("%~dpnx1", cache=false) > comp2.avs echo v2 = LWLibavVideoSource("%~dpnx2", cache=false) >> comp2.avs echo StackHorizontal(v1, v2) >> comp2.avs echo #Interleave(v1, v2) >> comp2.avs # alternate method "G:\Program Files\VirtualDub2\VirtualDub64.exe" comp2.avs del comp2.avs
-
That Youtube video tool is broken, download corrupt. At least it was for me.
Avisynth is what I use. There's no one-size-fits-all script, but something like this:
Code:clip1=AVISource("c:\X.avi",false) clip2=AVISource("c:\Z.avi",false) StackHorizontal(clip1.crop(0, 0, 0, 0), clip2.crop(0, 0, 0, 0))
Want my help? Ask here! (not via PM!)
FAQs: Best Blank Discs • Best TBCs • Best VCRs for capture • Restore VHS -
You can easily show a left/right split in AvISynth too.
Code:function ShowSplit(clip v1, clip v2, int x) { x = x / 2 * 2 # in case chroma subsampling StackHorizontal(crop(v1,0,0,x,-0), crop(v2,x,0,-0,-0)) } v1 = LWLibavVideoSource("video1.mkv", cache=false) v2 = LWLibavVideoSource("video2.mkv", cache=false) ShowSplit(v1, v2, v1.width/2)
And again, you could make a batch file that automatically builds the script and starts an editor/player for you. -
I guess you could also use something like "Awesomeplayer" to play 2 files at the same time side by side, which works sorta nice.
-
I never knew you could drag and drop videos and images in it. That is great to know. I have always manually made a script to load my video or image in it. This is the best avisynth editor, and comparing tool I know of. That just makes it even more effortless. -
Please re-read my post above:
https://forum.videohelp.com/threads/401381-Program-to-compare-2-video-files-to-see-res...on#post2615947
That's exactly what I said I do using my NLE (Vegas).
Similar Threads
-
Video 8 and DV restoration
By chrisbati in forum RestorationReplies: 1Last Post: 23rd Mar 2021, 11:24 -
how to compare parameters of video files
By kuku in forum Video ConversionReplies: 41Last Post: 21st Feb 2021, 07:22 -
Compare 2 video files for 'cut' differences
By kolipri in forum EditingReplies: 5Last Post: 20th Dec 2020, 22:29 -
Any program that will find duplication of video content across many files?
By IMADVDNUT in forum Newbie / General discussionsReplies: 6Last Post: 22nd Jan 2020, 10:46 -
When does video restoration go too far...
By lingyi in forum Newbie / General discussionsReplies: 11Last Post: 22nd May 2018, 00:00