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. |
18th May 2019, 00:54 | #3361 | Link | ||
Registered User
Join Date: Sep 2012
Posts: 156
|
think i've almost everything fixed and set up now the way i need to. sorry about being so dense.
i'm still struggling with core.std.Interleave tho. what's the correct way using it? i'm getting Quote:
Quote:
Last edited by aldix; 18th May 2019 at 01:29. |
||
18th May 2019, 02:11 | #3362 | Link |
Registered User
Join Date: May 2011
Posts: 321
|
resolution is not enough, comment out that interleave line and add:
src = src.text.ClipInfo() src.set_output() to see parameters of that clip and then delete those two lines and add other clip: video = video.text.ClipInfo() video.set_output() Last edited by _Al_; 18th May 2019 at 02:14. |
18th May 2019, 02:25 | #3363 | Link | |
Registered User
Join Date: Sep 2012
Posts: 156
|
Quote:
and will it mess all the rest up again, or what? Last edited by aldix; 18th May 2019 at 02:29. |
|
18th May 2019, 02:51 | #3365 | Link | |
Registered User
Join Date: Sep 2012
Posts: 156
|
think i fixed it with these changes.
Quote:
too used to moving back and forth with keyboard arrows with the regular interleave. what's the how-to here? |
|
18th May 2019, 03:04 | #3367 | Link |
Registered User
Join Date: May 2011
Posts: 321
|
You could switch to zimg - Vapoursynth's resize, like in my example, that changes resolutions, color spaces and much more. fmtconv is another way to do it though. Zimg is written by myrsloik I think so I'm sure it sits well within Vapoursynth.
|
24th May 2019, 11:03 | #3370 | Link |
Registered User
Join Date: Sep 2010
Location: Ukraine, Bohuslav
Posts: 377
|
Something like that will work:
Code:
resizer = { 'bicubic': core.resize.Bicubic, 'bilinear': core.resize.Bilinear, 'spline36': core.resize.Spline36, 'spline16': core.resize.Spline16 } clip = resizer['bicubic'](clip, 960, 540, format=vs.YUV420P8) |
24th May 2019, 15:16 | #3371 | Link |
Registered User
Join Date: May 2011
Posts: 321
|
I meant why is that, if author wanted that to look more like Avisynth command, to keep a pattern. Not that it matters.
That example is cool, yes tables with dictionaries, tuples, lists, that's the way to go. :-). Or checking if kernel exists might be done by checking if it exists as a resize attribute: Code:
my_cool_function(clip, kernel='Bicubic', miracle_settings=True) try: getattr(vs.core.resize, kernel) except: print("Wrong kernel") Last edited by _Al_; 24th May 2019 at 16:39. |
26th May 2019, 02:21 | #3372 | Link | |||
Registered User
Join Date: Sep 2012
Posts: 156
|
ok, i'm back again so please bear with me here.
Quote:
Quote:
merge seems to be mt_merge, though, so at least that is straightforward. Quote:
the resize can be done with core.std.resize etc i suppose. as far as the following calculation goes though, i've no idea. as much as i can recall, this script snippet is something Didee wrote ages ago (if that helps any). thanks! |
|||
26th May 2019, 18:18 | #3373 | Link | |
Registered User
Join Date: Jan 2016
Posts: 162
|
Code:
maskstars=src.mt_binarize(upper=false) Code:
maskstars=src.std.Binarize(threshold=128+1, planes=[0]) The equivalent in std.Expr() is "pow". Quote:
Code:
core.std.Expr([o, g], [f"x x y - abs {z} / 1 {p} / pow {z} * {strength} * x y - x y - abs 0.001 + / * +", ""]) Last edited by WolframRhodium; 26th May 2019 at 18:21. |
|
27th May 2019, 02:13 | #3374 | Link | ||
Registered User
Join Date: Sep 2012
Posts: 156
|
Quote:
how would i write this in vs though? with a bunch of different core.resize.Bicubic calls or what? hmm, and what's the equivalent in vs for "round" and "rad"? Quote:
thanks a lot in any case. really loving the community here! |
||
27th May 2019, 03:19 | #3375 | Link | |
Registered User
Join Date: Jan 2016
Posts: 162
|
Quote:
Code:
g = o.resize.Bicubic(round(o.width/rad/4)*4, round(o.height/rad/4)*4).resize.Bicubic(o.width, o.height, filter_param_a=1, filter_param_b=0) Code:
rad = 1.0 # radius for "gauss" Code:
_round = lambda x: -int(-x+0.5) if x < 0 else int(x+0.5) g = o.resize.Bicubic(_round(o.width/rad/4)*4, _round(o.height/rad/4)*4).resize.Bicubic(o.width, o.height, filter_param_a=1, filter_param_b=0) |
|
28th May 2019, 02:58 | #3376 | Link | |
Registered User
Join Date: Sep 2012
Posts: 156
|
Quote:
thank you so very much!! yes! this works. and now i've whole of my old avs script working! |
|
28th May 2019, 13:01 | #3377 | Link | |||||
Registered User
Join Date: Jan 2013
Posts: 50
|
Python exception: No attribute with the name ffms2 exists. Did you mistype a plugin n
Could anyone please advise on how to link ffms2 plugin to VapourSynth on Ubuntu linux? As there is no VapourSynth FATPACK for linux i had to compile/build ffms2. Please see below and advise, thanks!
Quote:
Quote:
Quote:
Quote:
Quote:
|
|||||
28th May 2019, 13:33 | #3378 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
Maybe someone could make a flatpack / appimage / snap version with vsedit, vapoursynth and some plugins.
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database |
28th May 2019, 15:14 | #3379 | Link | |
Registered User
Join Date: Jan 2013
Posts: 50
|
I solved issue of loading plugins by
Quote:
|
|
28th May 2019, 15:24 | #3380 | Link |
Registered User
Join Date: Jun 2012
Location: Ibiza, Spain
Posts: 321
|
The problem is /usr/local/lib is not in your path.
You can pass it to configure when you build ffms2 and then install to the common path: Code:
./configure --prefix=/usr --libdir=/usr/lib64 Last edited by Are_; 28th May 2019 at 16:16. |
Tags |
speed, vaporware, vapoursynth |
Thread Tools | Search this Thread |
Display Modes | |
|
|