Echo
From Avisynth wiki
(Difference between revisions)
(added echo) |
(add link to avs+ documentation) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | <div {{BlueBox2|40|0|3px solid purple}} > | ||
+ | {{AvsPlusFullname}}<br> | ||
+ | Up-to-date documentation: [https://avisynthplus.readthedocs.io/en/latest/avisynthdoc/corefilters/echo.html https://avisynthplus.readthedocs.io] | ||
+ | </div> | ||
+ | |||
+ | |||
{{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 | + | 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 | + | '''Changes''' |
{| border="1" | {| border="1" | ||
|- | |- | ||
Line 14: | Line 26: | ||
[[Category:Internal filters]] | [[Category:Internal filters]] | ||
+ | [[Category:Debugging/Diagnostic filters]] |
Latest revision as of 06:34, 18 September 2022
AviSynth+
Up-to-date documentation: https://avisynthplus.readthedocs.io
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 |