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. |
5th February 2019, 13:47 | #4461 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Yep:- http://www.mediafire.com/file/r37y2m...o/SVP.zip/file
(32 bit only) EDIT: Maybe I imagine it, but did SVP start requiring their own version of AVS+ at some point (I never really paid much attention).
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 5th February 2019 at 13:51. |
5th February 2019, 13:53 | #4462 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
Sadly those files also give me:
--------------------------- SVSmoothFps: unable to init GPU-based renderer [code 0x10000] --------------------------- I used: Code:
LoadCPlugin("I:\Hybrid\32bit\AVISYN~1\ffms2.dll") LoadPlugin("I:\Hybrid\32bit\AVISYN~1\svpflow1.dll") LoadPlugin("I:\Hybrid\32bit\AVISYN~1\svpflow2.dll") Import("I:\Hybrid\32bit\avisynthPlugins\InterFrame2.avsi") SetFilterMTMode("DEFAULT_MT_MODE", MT_MULTI_INSTANCE) # loading source: F:\TestClips&Co\files\test.avi # input color sampling YV12 # input luminance scale tv FFVideoSource("F:\TESTCL~1\files\test.avi",cachefile="E:\Temp\avi_078c37f69bb356e7b5fa040c71584c40_41_1_0.ffindex",fpsnum=25) # current resolution: 640x352 InterFrame(GPU=true,NewNum=60,NewDen=1,Cores=32) # filtering PreFetch(16) return last Code:
SetMemoryMax(768) SetMTMode(5,16) # changing MT mode LoadCPlugin("I:\Hybrid\32bit\AVISYN~1\ffms2.dll") LoadPlugin("I:\Hybrid\32bit\AVISYN~1\svpflow1.dll") LoadPlugin("I:\Hybrid\32bit\AVISYN~1\svpflow2.dll") Import("I:\Hybrid\32bit\avisynthPlugins\InterFrame2.avsi") # loading source: F:\TestClips&Co\files\test.avi # input color sampling YV12 # input luminance scale tv FFVideoSource("F:\TESTCL~1\files\test.avi",cachefile="E:\Temp\avi_078c37f69bb356e7b5fa040c71584c40_41_1_0.ffindex",fpsnum=25) # current resolution: 640x352 SetMTMode(2) # changing MT mode InterFrame(GPU=true,NewNum=60,NewDen=1,Cores=32) distributor() return last Last edited by Selur; 5th February 2019 at 13:57. |
5th February 2019, 13:57 | #4463 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
SubJunk has later version script (v2.8.2):- https://forum.doom9.org/showthread.php?t=160226
EDIT: And I've never used it much, and never with GPU=True.
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? |
5th February 2019, 14:03 | #4465 | Link | |
Formerly davidh*****
Join Date: Jan 2004
Posts: 2,496
|
Quote:
Code:
vi.GetPlaneHeightSubsampling(PLANAR_U); vi.GetPlaneWidthSubsampling(PLANAR_V); |
|
5th February 2019, 14:03 | #4466 | Link | |
Registered User
Join Date: Jan 2014
Posts: 2,314
|
Quote:
|
|
5th February 2019, 14:06 | #4467 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Thanks Wonkey, I know how to do that in C, was wantin' script solution.
EDIT: I usually work it out manually in C, as GetPlaneWidthSubSampling() not available in v2.58 (I think). I have this in RT_stats Code:
RT_ColorSpaceXMod(clip) Return int, the natural cropping XMod for clip colorspace, eg YV411=4, YV12=2, YUY2=2, RGB=1 v2.5 plugin dll limited to v2.58 colorspaces. *** *** *** RT_ColorSpaceYMod(clip,bool "Laced"=true) Return int, the natural cropping YMod for clip colorspace, eg YV411=1, YV12=2, YUY2=1, RGB=1 Laced, bool. Default true. If Laced==true, returns doubled YMod. v2.5 plugin dll limited to v2.58 colorspaces.
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 5th February 2019 at 14:16. |
5th February 2019, 14:30 | #4469 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
I usually use InterFrame (seldomly) via a much larger script, and with GPU=False and cores=1, [some machines I use with same script are single core without GPU]
however, just tried Code:
AviSource("D:\B.avi") Interframe(GPU=True,NewNum=60000,NewDen=1001,cores=32) I only have quad core(Core 2 Q9550) , and crap GPU (Nvidia GT 520, my Dell Optiplex 780 limited to 6.5 inch cards, and total PSU only 300Watt, GT 520 5.5 inch, full load 29Watts). No idea if it is actually using the GPU, or not. EDIT: OK, we do seem to be using the GPU EDIT: For me, CPU is about 40% faster than GPU. EDIT: In above graphic, shows GPU load at 8.0%, also memory controller load=11.0%, both seem a bit underused for some reason. EDIT: And CPU usage about same whether or not GPU=True.
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 5th February 2019 at 15:35. |
5th February 2019, 16:13 | #4470 | Link |
Formerly davidh*****
Join Date: Jan 2004
Posts: 2,496
|
Since we're talking about GetPlaneWidthSubsampling, it looks like there's an error on the Wiki (http://avisynth.nl/index.php/Filter_...ghtSubsampling). YV16 should be 1/1 and YV411 should be 2/0. I think there are errors in both the table and the text.
I'd create an account and fix it myself but HTTPS doesn't work (which it really should in this day and age). |
5th February 2019, 16:30 | #4471 | Link | |
Registered User
Join Date: Jan 2014
Posts: 2,314
|
Quote:
|
|
5th February 2019, 16:31 | #4472 | Link | |||
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Quote:
Quote:
EDIT: Quote:
YV16: GetPlaneHeightSubsampling(PLANAR_U) = 1 // since vertically there are two times less samples on a chroma plane compared to a plane which is not subsampled
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 5th February 2019 at 16:42. |
|||
5th February 2019, 17:15 | #4473 | Link | ||
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
Quote:
Quote:
Code:
LoadCPlugin("I:\Hybrid\32bit\AVISYN~1\ffms2.dll") LoadPlugin("I:\Hybrid\32bit\AVISYN~1\svpflow1.dll") LoadPlugin("I:\Hybrid\32bit\AVISYN~1\svpflow2.dll") Import("I:\Hybrid\32bit\avisynthPlugins\InterFrame2.avsi") FFVideoSource("F:\TESTCL~1\files\test.avi",cachefile="E:\Temp\avi_078c37f69bb356e7b5fa040c71584c40_41_1_0.ffindex",fpsnum=25) InterFrame(GPU=True,NewNum=60,NewDen=1,Cores=32) |
||
5th February 2019, 18:11 | #4475 | Link | |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Quote:
__________________
Groucho's Avisynth Stuff |
|
5th February 2019, 18:26 | #4476 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
here you go: https://drive.google.com/open?id=1w3...f5V4r8EA9goez8
using a GeForce GTX 1070 Ti with 418.81 drivers and a Amd Ryzen 7 1800X. |
5th February 2019, 18:53 | #4477 | Link |
Registered User
Join Date: Jan 2014
Posts: 2,314
|
Meanwhile a question regarding "Layer". I have the YUV stuff made ready but I experienced one little problem.
Layer mode: darken and ligthen is giving different results for RGB32 and YUY2 when Threshold>0 Even classic Avisynth 2.6.0.5 is giving different results for me. Wiki: http://avisynth.nl/index.php/Layer E.g.: lighten: "Copy overlay_clip over base_clip in areas where overlay_clip is lighter by threshold. Performs the same operation as add, but only when overlay_clip is BRIGHTER than base_clip." And the relevant code from Avisynth+ Rgb32: Code:
if constexpr(mode == LIGHTEN) { alpha = luma_ovr > thresh + luma_src ? alpha : 0; } else { alpha = luma_ovr < thresh + luma_src ? alpha : 0 } Code:
if constexpr (mode == LIGHTEN) { alpha_mask = (thresh + ovr) > src ? level : 0; } else { alpha_mask = (thresh + src) > ovr ? level : 0; } Which computation covers the text definition? Script to reproduce: Code:
x=some source x = x.Spline16Resize(512,256) ovr=ColorbarsHD().Spline16Resize(x.width,x.height) clipRgb = x.ConvertToRGB32(matrix = "PC.709").ResetMask() ovrRgb = ovr.ConvertToRGB32(matrix = "PC.709").ResetMask() clipYuy2 = x.ConvertToYUY2() ovrYuy2 = ovr.ConvertToYUY2() threshold=255 # 0 is O.K. # which one works fine? testRgb = Layer(clipRgb, ovrRgb, "lighten", level=128, Threshold=threshold) testYuy2= Layer(clipYuy2, ovrYuy2, "lighten", level=128, Threshold=Threshold) StackVertical(testRgb.ConvertToYV24(matrix = "PC.709"), testYUY2.ConvertToYV24()) |
5th February 2019, 18:58 | #4478 | Link | |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Quote:
It works fine on XP/XP64 (GTX750, 350.12 driver).
__________________
Groucho's Avisynth Stuff |
|
5th February 2019, 19:17 | #4479 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
Okay, for me it doesn't crash with Avisynth MT 2.6 (https://drive.google.com/open?id=1C0...Y7On5-_cLCaMj4), strange it crashes for all Avisynth 2.6 for you.
Cu Selur |
6th February 2019, 00:15 | #4480 | Link | |||
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Quote:
Quote:
Code:
// Rgb32: if constexpr(mode == LIGHTEN) { alpha = luma_ovr > thresh + luma_src ? alpha : 0; } else { alpha = luma_ovr < thresh + luma_src ? alpha : 0 // EDIT: Although I think this also wrong, see later. } isn't this for YUV lighten Code:
alpha_mask = (thresh + ovr) > src ? level : 0; Code:
alpha_mask = ovr > (src - thresh) ? level : 0; Quote:
Code:
// Rgb32: if constexpr(mode == LIGHTEN) { alpha = luma_ovr > thresh + luma_src ? alpha : 0; } else { alpha = luma_ovr < thresh + luma_src ? alpha : 0 } Code:
alpha = luma_ovr < (luma_src - thresh) ? alpha : 0 Code:
//RGB: if constexpr(mode == LIGHTEN) { alpha = luma_ovr > (luma_src + thresh) ? alpha : 0; // As original } else { // EDIT: DARKEN alpha = luma_ovr < (luma_src - thresh) ? alpha : 0 } //YUV: if constexpr (mode == LIGHTEN) { alpha_mask = ovr > (src + thresh) ? level : 0; } else { // EDIT: DARKEN alpha_mask = ovr < (src - thresh) ? level : 0; }
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 6th February 2019 at 02:47. |
|||
|
|