VideoHelp Forum
+ Reply to Thread
Results 1 to 2 of 2
Thread
  1. Member
    Join Date
    Jan 2007
    Location
    Canada
    Search Comp PM
    I'm trying to compare two clips using the following:

    Code:
    # If Videos start at different frames use frameadjust to align them
    frameadjust=0
    name1="Source - Parallax.d2v"
    name2="Vegas Output - Parallax.avi"
    
    # Videos to compare: (v1 is original, v2 is encoded or whatever)
    
    v1 = MPEG2Source("E:\My Videos - Working On\Season 0\S01-E02 - Parallax.d2v", cpu=4, info=3).LanczosResize(768, 576)
    v2 = AVISource("F:\My Videos - Working On\Voyager\Season 1\S01-E02 - Parallax\S01-E02 - Parallax.avi", audio=false).ConvertToYV12()
    
    sub = v1.subtract(v2) 
    substrong = sub.levels(112, 1.000, 144, 0, 255)
    The script works when using x86 AvsPmod, AviSynth, and VirtualDub.
    Now, I'm trying to get my scripts to work with x64 AvsPmod, AviSynth+, and VirtualDub x64.

    I seem to be missing something; I get the error "Not a clip" in AvsPmod.
    Quote Quote  
  2. You need to return something. If you wanted to see "substrong" add that to the end

    eg.

    Code:
    # If Videos start at different frames use frameadjust to align them
    frameadjust=0
    name1="Source - Parallax.d2v"
    name2="Vegas Output - Parallax.avi"
    
    # Videos to compare: (v1 is original, v2 is encoded or whatever)
    
    v1 = MPEG2Source("E:\My Videos - Working On\Season 0\S01-E02 - Parallax.d2v", cpu=4, info=3).LanczosResize(768, 576)
    v2 = AVISource("F:\My Videos - Working On\Voyager\Season 1\S01-E02 - Parallax\S01-E02 - Parallax.avi", audio=false).ConvertToYV12()
    
    sub = v1.subtract(v2) 
    substrong = sub.levels(112, 1.000, 144, 0, 255)
    
    substrong
    Quote Quote  



Similar Threads

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