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. |
14th January 2018, 23:14 | #3862 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
avs+ 2.6.0.5 ?
__________________
See My Avisynth Stuff |
16th January 2018, 01:27 | #3864 | Link | ||
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
Quote:
Quote:
since there are some doom9 members that has Intel's compiler like Groucho2004, I think they can did build some too at least for many plugins that needed
__________________
See My Avisynth Stuff |
||
18th January 2018, 08:44 | #3866 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,782
|
A screenshot and an AVSMeter report about available plugins may be helpful. Guessing without facts is so uncertain. Just imagine several plugins providing functions with the same name (like RemoveGrain + RGTools), and an older plugin being preferred over a newer one.
|
18th January 2018, 14:40 | #3867 | Link |
Registered User
Join Date: Feb 2002
Posts: 303
|
Did StackHorizontal/StackVertical change in AVS+? Using this simple script, the shorter clip still continues for whatever reason:
Code:
left = AVISource("test1.avi", pixel_type="YUY2").trim(2000, 3000) right = AVISource("test1.avi", pixel_type="YUY2").trim(3000, 3500) StackHorizontal(left, right) |
18th January 2018, 16:21 | #3868 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,782
|
AviSynth Wiki: Filters with multiple input clips
StackHorizontal, StackVertical: Framecount – longest clip: the last frame(s) of the shorter clip(s) are repeated until the end Is it different for AviSynth+ that the shorter clip keeps playing, instead of freezing its last frame? |
18th January 2018, 18:38 | #3869 | Link | |
Registered User
Join Date: Jan 2014
Posts: 2,314
|
Quote:
The resulting clip length is the maximum of the input clip lengths. The question: what happens when in the above samples Trim(3000,3500) is requested with frame numbers over 500? Trim (at least in Avs+) does not check the requested frame number, it passes over the task to its child filter: https://github.com/pinterf/AviSynthP.../edit.cpp#L258 The question that this is a planned behaviour or not? |
|
18th January 2018, 18:43 | #3870 | Link | |
Formerly davidh*****
Join Date: Jan 2004
Posts: 2,496
|
Quote:
|
|
19th January 2018, 00:24 | #3871 | Link | |
Registered User
Join Date: Feb 2002
Posts: 303
|
Quote:
Last edited by Aktan; 19th January 2018 at 00:34. |
|
19th January 2018, 01:24 | #3873 | Link | |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Quote:
Code:
StackHorizontal(A, B, C) Trim(0, - Min(A.FrameCount, B.FrameCount, C.FrameCount)) # ^
__________________
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; 19th January 2018 at 01:28. |
|
19th January 2018, 01:48 | #3875 | Link |
Registered User
Join Date: Feb 2002
Posts: 303
|
Thanks for your help, but what my friend and I want is actually to keep the longer length and freeze the shorter clip. You see, it helps in comparison videos. The workaround is to use FreezeFrame, but it be nice if we didn't need to use that.
|
19th January 2018, 02:13 | #3876 | Link | |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Yep, that is a bug, B not truncated. (ornamental trim EndFrame/Framecount/Length, leastwise when in stack)
Code:
A=Colorbars.KillAudio.Trim(0,-10).ShowFrameNumber # 10 frames B=A.Trim(0,-1) # 1 Frame StackHorizontal(A,B) # Comment one of these out #Stackvertical(A,B) Code:
B=A.Trim(5,-1) # 1 Frame Quote:
Current standard AVS method must remain the default, if changing as per DavidHorman, then would require additional args to both StackXXX and trim, methinks (or passed by StackXXX to trim child). EDIT: It always confused me as to why child clip is source to a filter, I'm assuming that child filter is also the source filter to current filter. [It always seemed a bit more sensible to me if it were the other way around]. EDIT: OK, think I figured it out, child is the child of the previous filter, but to current filter it is the parent, or maybe not, who knows.
__________________
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; 19th January 2018 at 14:00. |
|
19th January 2018, 03:22 | #3877 | Link |
Registered User
Join Date: Feb 2002
Posts: 303
|
Here is something interesting, if you add Info() to the trim on B, it works fine:
Code:
A=Colorbars.KillAudio.Trim(0,-10).ShowFrameNumber # 10 frames B=A.Trim(0,-1).Info() # 1 Frame StackHorizontal(A,B) # Comment one of these out #Stackvertical(A,B) Last edited by Aktan; 19th January 2018 at 03:33. Reason: New information. |
19th January 2018, 03:35 | #3878 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Obviously, there Info is checking valid range for end frame [vi.num_frames], and doing Trim's job for it.
Trim must currently set vi.num_frames in its result clip, but then ignore it. It always has to be the filter nearer to source that judges what range is valid, with ultimate responibilty being with the source fliter itself (eg AviSource or Colorbars), but in this case trim assumes (or should assume) that resonsibility for all following filters, quite a lot of filters (all of mine, unless bugged), check for valid frame as provided in vi.num_frames by its source filter. If no filters check (and some dont) for valid frame, then source (eg AviSource) must do it for them, trim must take on that role if added to filter chain, indeed, it is its raison d'ętre. If some other functionality added, then probably best if a totally new filtername is chosen, DavidHormam_Trim(), or something
__________________
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; 19th January 2018 at 03:58. |
19th January 2018, 09:14 | #3879 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
Agreed, or even better, added new parameter in the last of parameters list with Default vale that not break old behavior
__________________
See My Avisynth Stuff |
19th January 2018, 10:06 | #3880 | Link | |
Formerly davidh*****
Join Date: Jan 2004
Posts: 2,496
|
Quote:
(I do think it makes more sense but I'm not such an optimist that I'd expect it to change now) |
|
|
|