Today i see this scipt(videohelp.com) for prewieving two clips. But i dont know how to use it.
I understand "Orig_Clip=AviSource("original.avs").KillAudio " So this is input video.Code:# Simple script to do side by side comparison of two clips # Handy when doing restoration work to see a quick comparison # of the original clip and the restoration work # # Recommend that the original clip be loaded via a small # script that also contains matching trim and colourspace conversion # to ensure a match up. Colourspace conversion has been deliberately omitted # from this script to reduce needless conversions # # This version is designed for DV based restoration work # and will work for anything with a 720 width. # Load clips/scripts Orig_Clip=AviSource("original.avs").KillAudio Rest_Clip=AviSource("restoration.avs").KillAudio # Crop clips for comparison. Clips are cropped to create # a single complete frame Orig_Clip_Crop=Crop(Orig_Clip,0,0,360,0) Rest_Clip_Crop=Crop(Rest_Clip,360,0,0,0) # Stack the two halves together to finish up StackHorizontal(Orig_Clip_Crop,Rest_Clip_Crop)
But "Rest_Clip=AviSource("restoration.avs").KillAu dio" does i need to input some here?
And when to add my filters.For example convolution and others?
Just to say my source is Pal dv(interlaced)
+ Reply to Thread
Results 1 to 9 of 9
-
-
Code:
# Load clips/scripts Orig_Clip=AviSource("original.avs").KillAudio Rest_Clip=AviSource("restoration.avs").KillAudio
Rest_Clip is clip after restoration processing (using separate script than this)
Code:# Crop clips for comparison. Clips are cropped to create # a single complete frame Orig_Clip_Crop=Crop(Orig_Clip,0,0,360,0) Rest_Clip_Crop=Crop(Rest_Clip,360,0,0,0)
Code:# Stack the two halves together to finish up StackHorizontal(Orig_Clip_Crop,Rest_Clip_Crop)
These scripts don't do the actual processing, all they do is the visual side-by-side comparison.
Scott
>>>>>>>>>
edit: the "WHEN" would be to add your scripts to "restoration.avs" in whatever order is pertinent to your situation. -
I have some error:
I have two scripts:
First is this:
Code:# Simple script to do side by side comparison of two clips # Handy when doing restoration work to see a quick comparison # of the original clip and the restoration work # # Recommend that the original clip be loaded via a small # script that also contains matching trim and colourspace conversion # to ensure a match up. Colourspace conversion has been deliberately omitted # from this script to reduce needless conversions # # This version is designed for DV based restoration work # and will work for anything with a 720 width. # Load clips/scripts Orig_Clip=AviSource("C:\Documents and Settings\Nenad\My Documents\111.avi").KillAudio Rest_Clip=avisource("C:\Documents and Settings\Nenad\My Documents\restoration.avs").KillAudio # Crop clips for comparison. Clips are cropped to create # a single complete frame Orig_Clip_Crop=Crop(Orig_Clip,0,0,360,0) Rest_Clip_Crop=Crop(Rest_Clip,360,0,0,0) # Stack the two halves together to finish up StackHorizontal(Orig_Clip_Crop,Rest_Clip_Crop)
Orig_Clip is my movie
Second: I made script "restoration" which is filtering:
Code:LoadPlugin("Convolution3d.dll") avisource("C:\Documents and Settings\Nenad\My Documents\111.avi") ConvertToYuY2(interlaced=true) SeparateFields() odd=SelectOdd.Convolution3D (1, 32, 128, 8, 32, 10, 0) evn=SelectEven.Convolution3D (1, 32, 128, 8, 32, 10, 0) Interleave(evn,odd) Weave()
-
The ConvertToYuY2 line is changing the properties of the clip making it incompatible for the Stack. Make another script that opens your original file and just converts the colorspace to match.
"Shut up Wesley!" -- Captain Jean-Luc Picard
Buy My Books -
Notting happend.I have no error but nothing happend. I mean i dont have before and after in virtual dub.
First script
Code:# Simple script to do side by side comparison of two clips # Handy when doing restoration work to see a quick comparison # of the original clip and the restoration work # # Recommend that the original clip be loaded via a small # script that also contains matching trim and colourspace conversion # to ensure a match up. Colourspace conversion has been deliberately omitted # from this script to reduce needless conversions # # This version is designed for DV based restoration work # and will work for anything with a 720 width. # Load clips/scripts Orig_Clip=AviSource("C:\Documents and Settings\Nenad\My Documents\2.avs").KillAudio Rest_Clip=avisource("C:\Documents and Settings\Nenad\My Documents\restoration.avs").KillAudio # Crop clips for comparison. Clips are cropped to create # a single complete frame Orig_Clip_Crop=Crop(Orig_Clip,0,0,360,0) Rest_Clip_Crop=Crop(Rest_Clip,360,0,0,0) # Stack the two halves together to finish up StackHorizontal(Orig_Clip_Crop,Rest_Clip_Crop)
Orig_Clip=2.avs And file 2.avs is
Code:AviSource("C:\Documents and Settings\Nenad\My Documents\111.avi") ConvertToYuY2(interlaced=true)
Script restoration.avs is:
Code:LoadPlugin("Convolution3d.dll") avisource("C:\Documents and Settings\Nenad\My Documents\111.avi") ConvertToYuY2(interlaced=true) SeparateFields() odd=SelectOdd.Convolution3D (1, 32, 128, 16, 64, 10, 0) evn=SelectEven.Convolution3D (1, 32, 128, 16, 64, 10, 0) Interleave(evn,odd) Weave()
-
Based on your scripts, I would say it is working. The left half of the screen is the original and the right half is the "Convolution3Ded" clip. You may have to look very closely to perceive a difference between the two. To test that it's working change the last StackHorizontal command to:
StackHorizontal(Rest_Clip_Crop, Orig_Clip_Crop)"Shut up Wesley!" -- Captain Jean-Luc Picard
Buy My Books -
If you're having trouble telling where one ends and the other begins, add some black to separate the 2 half-videos:
Orig_Clip_Crop=Crop(Orig_Clip,0,0,360,0).AddBorder s(0,0,8,0)
Rest_Clip_Crop=Crop(Rest_Clip,360,0,0,0)
StackHorizontal(Orig_Clip_Crop,Rest_Clip_Crop)
Should work, I think. -
-
I believe that is my script. Both clips needs to be in the same colourspace at the end of the process or the stack won't work.
There is nothing to stop you putting a resize statement after the stack. I usually open this script in virtualdub for a quick look, so I can use vudbs right-click sclaing to get a smaller display if needed.Read my blog here.
Similar Threads
-
Should i use and avisynth script for Dv ?
By smartel in forum Newbie / General discussionsReplies: 0Last Post: 10th Mar 2012, 08:29 -
VHS to DVD Restoration. Best AviSynth scripts?
By VideoFanatic in forum RestorationReplies: 47Last Post: 25th Oct 2011, 06:34 -
Need Help with My AviSynth Script
By Enkidu in forum Newbie / General discussionsReplies: 3Last Post: 21st Jan 2011, 21:37 -
Avisynth Script Help
By jamhat in forum Video ConversionReplies: 2Last Post: 29th Nov 2009, 06:13 -
Avisynth script
By daz2712 in forum Video ConversionReplies: 2Last Post: 19th Aug 2009, 11:08