VideoHelp Forum




+ Reply to Thread
Results 1 to 9 of 9
  1. Today i see this scipt(videohelp.com) for prewieving two clips. But i dont know how to use it.


    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)
    I understand "Orig_Clip=AviSource("original.avs").KillAudio " So this is input video.
    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)
    Quote Quote  
  2. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    Code:
    # Load clips/scripts 
    
    Orig_Clip=AviSource("original.avs").KillAudio 
    Rest_Clip=AviSource("restoration.avs").KillAudio
    Orig_Clip is original clip (simple avs script or could even be the file)
    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)
    This is a "SplitScreen" WIPE. You could do it horizontal or vertical. This makes the final "shown" video stay within standard screen sizes.

    Code:
    # Stack the two halves together to finish up 
    
    StackHorizontal(Orig_Clip_Crop,Rest_Clip_Crop)
    This just combines the 2 together into a single image stream, ready for output (which isn't part of this script).

    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.
    Quote Quote  
  3. 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)
    First:
    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()
    What i am doing wrong?
    Quote Quote  
  4. Member gadgetguy's Avatar
    Join Date
    Feb 2002
    Location
    West Mitten, USA
    Search Comp PM
    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
    Quote Quote  
  5. 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)
    Rest_Clip=restoration.avs

    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()
    And know i can load script in virtual dub with no error but i dont have before and after.
    Quote Quote  
  6. Member gadgetguy's Avatar
    Join Date
    Feb 2002
    Location
    West Mitten, USA
    Search Comp PM
    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
    Quote Quote  
  7. 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.
    Quote Quote  
  8. You are right people, i didnt see difference between left and right side.

    Here is little pic:




    Source is from digital camera.But i add higger settings of convoution(but its not needed) just to see difference.

    One question more, can i put in that scipt some to resize picture.Just to be smaller?
    Quote Quote  
  9. Always Watching guns1inger's Avatar
    Join Date
    Apr 2004
    Location
    Miskatonic U
    Search Comp PM
    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.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!