VideoHelp Forum




+ Reply to Thread
Results 1 to 6 of 6
  1. Oxymoron? Maybe. I'm the least qualified to say.

    I have one completely processed video with several filters, but there are some parts that require a different filter [rainbowing (yes PDR, you guessed it.)]

    I'm wondering what the most intuitive course of action is to fix those rainbowed parts that need some attention.

    Should I process the entire video again with the extra filter and trim the parts of the first filtered video I'm keeping and the parts of the second filtered video I'm keeping, and then add all the clips up at the end?

    I've found this to be tedious and annoying as I have to browse with Virtualdub and input the frame ranges on Trim which I sometimes mistype and later end up spending 20 minutes debugging after the project's finished.

    I heard there was another command called "replaceframes" or something but would it really be more intuitive than trim?

    Here's a rough example of what my script looks like:

    a=avisource("C:\filteredvideo.avi")
    b=avisource("C:\derainbowed.avi")

    c=a.trim(0,1509)
    d=b.trim(1510,3551)
    e=a.trim(3552,3788)
    f=b.trim(3789,4600)
    g=a.trim(4601,5555)

    ...etc

    c+d+e+f+g

    And this takes forever.
    Quote Quote  
  2. stickboy's remapframes, replaceframes or replaceframessimple , or clipclop
    http://avisynth.org/stickboy/
    Quote Quote  
  3. Originally Posted by Mephesto View Post
    I heard there was another command called "replaceframes" or something but would it really be more intuitive than trim?
    It may not be more intuitive (both ways are very easy to use), but if you have a lot of little sections needing specific filtering it's a helluva lot easier and faster to set up, in my opinion, as opposed to typing out a bunch of trims.
    Quote Quote  
  4. # Equivalent script in ClipClop().

    a=avisource("C:\filteredvideo.avi")
    b=avisource("C:\derainbowed.avi")

    SCMD="
    1 1510,3551
    1 3789,4600
    "
    ClipClop(a,b,scmd=SCMD)

    # ClipClop() :- http://forum.doom9.org/showthread.php?t=162266
    # Prune(), May be of interest too: http://forum.doom9.org/showthread.php?t=162446
    Quote Quote  
  5. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    Originally Posted by Mephesto View Post
    I've found this to be tedious and annoying as I have to browse with Virtualdub and input the frame ranges on Trim which I sometimes mistype and later end up spending 20 minutes debugging after the project's finished.
    If you use Vdubmod, it has a script editor. One feature is you can paste in the current frame using Control-P.

    Or using the powerful Avisynth editor AvsP, use F11 to do the same.


    Originally Posted by Mephesto View Post
    I heard there was another command called "replaceframes" or something but would it really be more intuitive than trim?
    Here's a rough example of what my script looks like:

    a=avisource("C:\filteredvideo.avi")
    b=avisource("C:\derainbowed.avi")

    c=a.trim(0,1509)
    d=b.trim(1510,3551)
    e=a.trim(3552,3788)
    f=b.trim(3789,4600)
    g=a.trim(4601,5555)

    ...etc

    c+d+e+f+g

    And this takes forever.
    Several ways to simplify that.

    Code:
    a=avisource("C:\filteredvideo.avi")
    b=avisource("C:\derainbowed.avi")
    
    a.trim(0,1509)    ++\
    b.trim(1510,3551) ++\
    a.trim(3552,3788) ++\
    b.trim(3789,4600) ++\
    a.trim(4601,5555)
    But yes, it's a lot simpler using ReplaceFramesSimple

    Code:
    a=avisource("C:\filteredvideo.avi")
    b=avisource("C:\derainbowed.avi")
    ReplaceFramesSimple(a, b, mappings= \
    "[1510 3551]
     [3789 4600]")
    You have to install RemapFrames from http://avisynth.org/stickboy/ to use this.
    Quote Quote  
  6. Some versions of VDMod insert the wrong frame numbers (out by 1, in ranges, not single frames) ,
    VDMod 1.5.10.3 build 2550, is OK.

    CTRL P, Insert position
    CTRL R, Insert Range
    CTRL T, Insert Trim with Range
    CTRL I, Insert Frameset As Trims

    CTRL SHIFT ALT C, Comment selected lines
    CTRL SHIFT ALT U, Uncomment selected lines

    Most useful CTRL I, edit entire clip, CTRL I inserts all trims.
    Quote Quote  



Similar Threads

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