Új hozzászólás Aktív témák

  • Jakuu

    őstag

    válasz huskydog17 #15057 üzenetére

    SetMTmode(int mode, int threads)

    Place this at the first line in the avs file to enable temporal (that is more than one frame is processed at the same time) multithreading. Use it later in the script to change the mode for the filters below it.

    mode int (2, default 1-6)
    there are 6 modes, numbered from 1 to 6.

    Mode 1 is the fastest but only works with a few filters.
    Mode 2 should work with most filters but uses more memory.
    Mode 3 should work with some of the filters that don't work with mode 2 but it is slower.
    Mode 4 is a combination of mode 2 and 3 and should work with even more filters but is both slower and uses more memory.
    Mode 5 is the slowest (slower than not using SetMTMode) but should work with all filters that don't require linear frameserving (that is the frames come in order: frame 0,1,2,...,last).
    Mode 6 is a modified mode 5 that might be slightly faster.

    threads int = 0
    number of threads to use. Set to 0 to set it to the number of processors available. It is not possible to change the number of threads other than in the first SetMTMode.

    Example

    SetMTMode(2,0) #enables multihreading using thread = to the number of available processors and mode 2
    LoadPlugin("...\fft3dgpu.dll") #Loads fft3dgpu
    Import("limitedsharpen.avs")
    src=AviSource("test.avi")
    SetMTMode(5) #change the mode to 5 for the lines below
    src=src.converttoyuy2().fft3dgpu()#fft3dgpu needs mode 5 to function.
    SetMTMode(2) #change the mode back to 2
    src.LimitedSharpen() #because LimitedSharpen works well with mode 2
    Subtitle("Number of threads used: " string(GetMTMode(true))
    \ " Current MT Mode: " string(GetMTMode())) #display mode and number of threads in use

    SetMTMode() Mode

    Setmtmode(1)

    Mode 1 is the fastest but only works with a few filter

    MPEG2Source()
    Trim()
    GreyScale()
    RemoveDirt()

    See this doom9 forum post.

    Setmtmode(2)

    Mode 2 should work with most filters but uses more memory.

    LimitedSharpen()/LimitedSharpenFaster()
    AssumeFPS()
    ConvertToYV12()
    Trim()
    TNLMeans()

    See this doom9 forum post

    RemoveGrain() [17]
    FFT3DFilter() since rev1.8 see: [18]
    UnDot()
    VagueDenoiser()
    BlindDeHalo3()

    See this doom9 forum post.

    Convolution3D()
    PeachSmoother()
    LeakKernelBob() only with rev 0.6 avisynth 2.5.7.3

    Setmtmode(3)

    Mode 3 should work with some of the filters that doesn't work with mode 2 but is slower.

    DeGrainMedian() but is faster in MT() mode see this doom9 forum post

    Setmtmode(4)

    Mode 4 is a combination of mode 2 and 3 and should work with even more filter but is both slower and uses more memory.

    Setmtmode(5)

    Mode 5 is the slowest (Slower than not using SetMTMode) but should work with all filters that doesn't require linear frameserving (that is the frames come in order: frame 0,1,2,...,last)

    Cedocida codec, see [19] or try Setmtmode(6)

    Setmtmode(6)

    Mode 6 is a modified mode 5 that might be slightly faster (But still slower than not using SetMTMode).

    Esetleg meg valami ? Mindent megtalalsz a forumban es a linkek eleresene, nezz inkabb utana, mert nem nagyon olvasgatsz. :D

Új hozzászólás Aktív témák