From Avisynth wiki
Jump to: navigation, search
Author StainlessS
Version v1.01
Category Frame Replacement / Range Processing
License GPLv2
Discussion Doom9 Forum



FrameRepeat() is a simple plugin to select frames to repeat.


*** vcredist_x86.exe is required for FrameRepeat-x86

Syntax and Parameters

FrameRepeat(Clip,int "default",string "Cmd", bool "Show", bool "Ver")

Compulsory args:

        Clip,   No Default, source clip.
Optional args:

		default, int, default=0. The default repeat count for frames not mentioned in command file.
				Default =0, is, frames not mentioned in Cmd command file are excluded (repeated 0 times, ie not output at all).

        Cmd,    string, Default= "", Not set.
                Command file, frame numbers supplied in a file. Use eg "Repeat.txt" for command file in your script directory.

        Show    bool, Default= false.
                true = Show info.

        ver     bool, Default=false.
                true = Show version.

The 'Cmd' Command file allows one command per line and can contain comments eg:

#------------- # below contents of a text file eg "Repeat.txt".
1 1    # This is a comment. Output frame 1 once.
2      # Single frame number without a repeat count, outputs frame only once, equivalent to 2 1.
3,2    # Can also use ',' COMMA rather than SPACE as a number separator. Outputs frame 3 twice.
5,3    # Output frame 5, 3 times.

Given a 6 frame clip (frames 0 -> 5)

FrameRepeat(clip,default=0,cmd="Repeat.txt")  # would produce this sequence "1,2,3,3,5,5,5".

FrameRepeat(clip,default=1,cmd="Repeat.txt")  # would produce this sequence "0,1,2,3,3,4,5,5,5".

FrameRepeat(clip,default=2,cmd="Repeat.txt")  # would produce this sequence "0,0,1,2,3,3,4,4,5,5,5".

FrameRepeat(clip,default=3)  # would produce this sequence "0,0,0,1,1,1,2,2,2,3,3,3,4,4,4,5,5,5".
							 # Note, above without a command file.

Where a frame number and repeat count is mentioned more than once in file, the last one will override earlier ones.




v1.0,  7 June 2013. Initial version.
v1.01, 31 Mar 2015. Recomile v2.6 dll with Avisynth Version 6 Header.

Archived Downloads

Version Download Mirror
v1.01 FrameRepeat_25&

External Links

Back to External Filters

Personal tools