Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 Doom9's Forum Vapoursynth
 Register FAQ Calendar Search Today's Posts Mark Forums Read

 31st October 2022, 08:32 #4761  |  Link Selur Registered User     Join Date: Oct 2001 Location: Germany Posts: 6,835 Okay, Avisynth: Code: `Mt_AddDiff(Blurred, ReconstructedMedian)` <> Vapoursynth: Code: `core.std.MergeDiff(Blurred, ReconstructedMedian))` Avisynth: Code: `MT_Luts(Diff, Diff, mode="med", pixels = " 0 0 1 0 -1 0 " , expr = " X Y - X Y - X Y - abs 1 + * X Y - abs 1 + "+THR+" 1 >= "+THR+" 0.5 ^ "+THR+" ? + / - 128 +", u=1,v=1)` <> Vapoursynth: Code: ```partial_expr = lambda M, N: f" x x[{M},{N}] - x x[{M},{N}] - x x[{M},{N}] - abs 1 + * x x[{M},{N}] - abs 1 + {THR} 1 >= {thr_s} 0.5 pow {THR} ? + / - 128 + " medianDiff = core.akarin.Expr(diff, [partial_expr(0,0) + partial_expr(1,0) + partial_expr(-1,0) + "sort3 drop swap drop", ""])``` => But how to convert, Avisynth Code: `Mt_Convolution(Horizontal=" 1 1 0 0 1 0 0 1 1 ", vertical = " 1 ", u=1, v=1)` to Vapoursynth? Cu Selur __________________ Hybrid here in the forum, homepage Notice: Since email notifications do not work here any more, it might take me quite some time to notice a reply to a thread,..
 31st October 2022, 10:30 #4762  |  Link Selur Registered User     Join Date: Oct 2001 Location: Germany Posts: 6,835 got it, Code: `clip.std.Convolution(matrix=[ 1, 1, 0, 0, 1, 0, 0, 1, 1 ], mode='v', planes=[0])` works. (the mode='v' was the main issue) Uploaded it to: https://github.com/Selur/Vapoursynth...r/fromDoom9.py Cu Selur __________________ Hybrid here in the forum, homepage Notice: Since email notifications do not work here any more, it might take me quite some time to notice a reply to a thread,.. Last edited by Selur; 31st October 2022 at 10:51.
 20th November 2022, 18:21 #4763  |  Link Myrsloik Professional Code Monkey     Join Date: Jun 2003 Location: Kinnarps Chair Posts: 2,497 R61-RC1 is out. Bug fixes only. __________________ VapourSynth - proving that scripting languages and video processing isn't dead yet
 20th November 2022, 19:22 #4764  |  Link Selur Registered User     Join Date: Oct 2001 Location: Germany Posts: 6,835 Thanks __________________ Hybrid here in the forum, homepage Notice: Since email notifications do not work here any more, it might take me quite some time to notice a reply to a thread,..
29th November 2022, 19:52   #4765  |  Link
Myrsloik
Professional Code Monkey

Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,497
Quote:
 Originally Posted by Selur Thanks
R61 released now. No changes from RC1.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet

 29th November 2022, 20:01 #4766  |  Link Selur Registered User     Join Date: Oct 2001 Location: Germany Posts: 6,835 Thanks again. __________________ Hybrid here in the forum, homepage Notice: Since email notifications do not work here any more, it might take me quite some time to notice a reply to a thread,..
 7th December 2022, 05:08 #4767  |  Link lansing Registered User   Join Date: Sep 2006 Posts: 1,622 I'm testing out the VSGAN filter in vsedit2, how do I free the gpu ram usage after running it? vsapi->freeFrame() doesn't free it.

 Tags speed, vaporware, vapoursynth