Echo
From Avisynth wiki
(Difference between revisions)
(added example) |
|||
Line 1: | Line 1: | ||
{{Template:FuncDef|Echo(clip ''clip1'', clip ''clip2'' [, ...])}} | {{Template:FuncDef|Echo(clip ''clip1'', clip ''clip2'' [, ...])}} | ||
− | Echo forces getframe accesses to all the input clips. The results from ''clip2'' and up are discarded. The result from ''clip1'' is returned. | + | Echo forces getframe accesses to all the input clips (up to the number of frames of the first clip). The results from ''clip2'' and up are discarded. The result from ''clip1'' is returned. |
This may be useful forcing alternate script paths with [[ImageWriter]] and [[WriteFile]]. | This may be useful forcing alternate script paths with [[ImageWriter]] and [[WriteFile]]. | ||
− | ''' | + | '''Examples''' |
+ | clip1 = ColorBars.Trim(0,99).ShowFrameNumber() # numbered clip (640x480) | ||
+ | clip2 = clip1.SelectEvery(10, 0) # select frame 0, 10, 20, ... | ||
+ | clip2 = clip2.BilinearResize(160, 120) # create thumbnails of frame 0, 10, 20, ... | ||
+ | clip2 = clip2.ImageWriter(file="D:\AviSynth\Plugins\file", type="jpg") | ||
+ | Echo(clip1, clip2) # returns clip1, exports clip2 (the thumbnails) | ||
+ | |||
+ | '''Changes''' | ||
{| border="1" | {| border="1" | ||
|- | |- |
Revision as of 16:45, 28 March 2016
Echo(clip clip1, clip clip2 [, ...])
Echo forces getframe accesses to all the input clips (up to the number of frames of the first clip). The results from clip2 and up are discarded. The result from clip1 is returned.
This may be useful forcing alternate script paths with ImageWriter and WriteFile.
Examples
clip1 = ColorBars.Trim(0,99).ShowFrameNumber() # numbered clip (640x480) clip2 = clip1.SelectEvery(10, 0) # select frame 0, 10, 20, ... clip2 = clip2.BilinearResize(160, 120) # create thumbnails of frame 0, 10, 20, ... clip2 = clip2.ImageWriter(file="D:\AviSynth\Plugins\file", type="jpg") Echo(clip1, clip2) # returns clip1, exports clip2 (the thumbnails)
Changes
v2.60 | Initial release |