VideoHelp Forum
+ Reply to Thread
Results 1 to 3 of 3
Thread
  1. edit: well, the title had to be "commands order" - why I can't edit the title in this forum?

    anyway..

    Hi, I have to switch a couple of movie intros.

    I'm using the code below, but I would like to put every command in a separate line. how I do that?
    If I put AssumeFPS, crop, bbmod, etc... in a separate line they do not work...
    What's the more synthetic, efficient and elegant way to accomplish it?

    Code:
    LoadPlugin("\MeGUI-2913-64\tools\ffms\ffms2.dll")
    Video=FFVideoSource("_track1_[eng].mkv", fpsnum=24000, fpsden=1001, threads=1)
    
    Paramount=Trim(Video,0,462).Loop(0,455,462).Loop(0,0,5)
    Dreamworks=Trim(Video,463,962)
    Film=Trim(Video,963,0)
    Switch=Dreamworks++Paramount++Film
    
    Return Switch.AssumeFPS(25).crop(0, 0, 0, 0).bbmod(0,0,0,0,128,8).Spline36Resize(702,388)
     
    #SelectRangeEvery(800,20)   
    #FillBorders(0,0,0,0)
    
    Prefetch(7)
    Last edited by maudit; 4th Jul 2022 at 08:09.
    Quote Quote  
  2. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    The syntax is like this
    Code:
    Paramount=Trim(Video,0,462).Loop(0,455,462).Loop(0,0,5)
    becomes
    Code:
    Paramount=Trim(Video,0,462)
    paramount=paramount.Loop(0,455,462)
    paramount=paramount.Loop(0,0,5)
    Quote Quote  
  3. Note that the . syntax is an un-named pipe. The output of the filter on the left is piped directly to the input of the filter on the right. There are some cases where it doesn't work out as in davexnet example. Compare these two scripts for example:

    Code:
    ColorBars()
    ShowFrameNumber()
    SeparateFields()
    StackVertical(SelectEven(), SelectOdd())
    Code:
    ColorBars()
    ShowFrameNumber()
    SeparateFields().StackVertical(SelectEven(), SelectOdd())
    The difference here is that StackVertical() accepts several inputs. In the second example one of those inputs is the pipe from Separatefields(), the other are "last" (the output of ShowFrameNumber()).
    Last edited by jagabo; 4th Jul 2022 at 20:33.
    Quote Quote  



Similar Threads

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