VideoHelp Forum

Our website is made possible by displaying online advertisements to our visitors. Consider supporting us by disable your adblocker or Try ConvertXtoDVD and convert all your movies to DVD. Free trial ! :)
+ Reply to Thread
Results 1 to 5 of 5
Thread
  1. i am trying to find the plugins i used in Avisynth , to be ported to.
    1.does Avisynth dll's will be usable in vapoursynth? , if not how can i use them or can i convert them myself?

    need stuff like : ColorMatrix,levels,tweak(".."),Hysteria,Sharpen, Blur ,nnedi3(actually got that one working),McTemporalDenoise,GradFun3,Dehalo_alpha.
    Quote Quote  
  2. Member
    Join Date
    Aug 2017
    Location
    United States
    Search PM
    Have you checked doom9.org?
    Quote Quote  
  3. Member
    Join Date
    Nov 2018
    Location
    Germany
    Search PM
    VapourSynth has equivalents for all of those. Check the documentation and vsdb.
    Quote Quote  
  4. colormatrix
    Vapoursynth uses powerful Resize filter, that resizes video resolution, changes colorspaces or bit depth as well. To just change colorspace from NTSCDV format to BT709:

    Code:
    import vapoursynth as vs
    from vapoursynth import core
    clip = core.resize.Bicubic(clip, matrix_in_s = '170m', matrix_s = '709')
    matrix_in_s argument is string input colorspace
    matrix_s means string output value
    matrix_in expects numeric (int) value
    matrix expects also numeric value

    so that '_s' stands for string instead of number

    correlation between numbers and strings as for matrix is:
    {0:'rgb', 1:'709', 2:'unspec', 3:'reserved', 4:'fcc',
    5:'470bg', 6:'170m', 7:'240m', 8:'ycgco', 9:'2020ncl',
    10:'2020cl' , 100:'OPP',
    }
    so for example if your SD resolution is PAL and you for example resize using nnedi3 somewhere in the script , resizing to HD, and then you change colorspace in this line:
    Code:
    clip = core.resize.Bicubic(clip, matrix_in_s = '470bg', matrix_s = '709')
    or
    Code:
    clip = core.resize.Bicubic(clip, matrix_in = 5, matrix = 1)
    that's the same command
    Quote Quote  
  5. Also be prepared for more restrictive approach, for example if loading NTSCDV with ffms2 source plugin into 4:1:1 (avisource loads NTSCDV as 4:2:0) you have to crop width with mod 4 and height with mode 2, otherwise you'd get error. It would not crop in the middle of subsampling. NTSC 4:1:1 has one color for four x pixels.
    Quote Quote  



Similar Threads