Animate のバックアップ差分(No.2)


  • 追加された行はこの色です。
  • 削除された行はこの色です。
 Animate(clip clip, int start_frame, int end_frame, string filtername, start_args, end_args)

 ApplyRange(clip clip, int start_frame, int end_frame, string filtername, args)

Animate is a meta-filter which evaluates its parameter filter with continuously varying arguments. At frame start-frame and earlier, filter is evaluated with the arguments given by start-args. At frame end-frame and later, filter is evaluated with the arguments given by end-args. In between, the arguments are linearly interpolated for a smooth transition.
Animateは、連続的に変化する引数を伴ったパラメータフィルタを評価する、メタフィルタです。start-frame以前のフレームでは、フィルタは、start-argsによって与えられた引数で評価されます。end-frame以降のフレームでは、end-argsによって与えられた引数で評価されます。その中間では、引数は、スムーズな変化(transition)のために、直線的に補間されます。

ApplyRange is a special case of Animate where start_args = end_args, and present in v2.51. It can be used when you want to apply a certain filter on certain range of frames of a clip. Another difference with Animate is that args can't contain a clip. Starting from v2.53 it supports audio, and start_frame can be equal to end_frame (such that only one frame is processed).
ApplyRangeは、start_argsがend_argsと等しいという、特殊なケースのAnimateフィルタです。あるフィルタを、クリップの、ある範囲のフレームに適用したいときに使用することができます。Animateとの、もうひとつの違いは、argsがclipを含むことができないということです。v2.53から音声をサポートしています。しかも、start_frameとend_frameを同じ値にすることもできます(1フレームだけが処理されるような場合)。

Filter must be enclosed in quotation marks, and the two nested argument lists are not parenthesized. Strings and video clips can't be interpolated, and therefore must be identical in the two argument lists. You can't use OOP notation or implicit last with this filter, even if the filter in the filter argument normally allows them.

This filter will not correctly handle a changing sound track, so I don't recommend its use with filters which modify the sound track. And for heaven's sake don't make the initial and final parameters yield a different output frame size.

The filter argument can even be Animate if you want quadratic rather than linear interpolation, but I'm not going to think about this too much because my head might explode.

Examples: 
例: 

 # Make a scrolling version of the "Version" video
 ver = Version
 return Animate(0, 149, "Crop", ver, 0, 0, 64, 32, ver, 448, 0, 64, 32)

 # or what is the same:
 ver = Version()
 return Animate(ver,0,149,"Crop", 0,0,64,32, 316,0,64,32)

 # Fade to white
 Animate(100, 200, "Levels", last, 0, 1, 255, 0, 255, last, 0, 1, 255, 255, 255)

 # Do a gradual zoom into the center of a 320x240 video, starting at
 # 1:1 magnification in frame 100 and ending with 4:1 magnification
 # in frame 200
 
 #31-03-04 This wont work - Bicubic needs extra parameters!
 #maybe try BilinearResize instead
 Animate(100, 200, "!BicubicResize",last, 0, 0, 320, 240, 320, 240, last, 120, 90, 80, 60, 320, 240)

 # Make the text "Hello, World!" zoom out from the center of a 320x240 video
 Animate(0, 48, "Subtitle", last, "Hello, World!", 160, 120, 0, 99999, "Arial", 0, last, "Hello, World!", 25, 130, 0, 99999, "Arial", 48)

 ver = Version()
 return ver.ApplyRange(0,149,"Crop", 158,0,64,32)

 AviSource("E:\pdwork\DO-Heaven.AVI").BicubicResize(320,240)
 ApplyRange(0,48,"Subtitle", "Hello, World!",25,130,0,99999,"Arial",48)

 # or what is the same:
 # 上の例と同じもの:
 clip = AviSource("E:\pdwork\DO-Heaven.AVI").BicubicResize(320,240)
 ApplyRange(clip, 0,48,"Subtitle", "Hello, World!",25,130,0,99999,"Arial",48)

#hr
//註: このページは、http://www.avisynth.org/Animateの日本語訳です。
註: このページは、http://www.avisynth.org/Animateの日本語訳です。