Frame Mode X1 X2 Y1 Y2
orFromFrame-ToFrame Mode X1 X2 Y1 Y2
whereFrame is the ordinal number of the processed frame of the input video file, assuming the first frame number in the file to be 0. (i.e. the number you see in the VirtualDub's status line) |
FromFrame-ToFrame defines a range of frames which are to be processed with the same parameters. |
X1 X2 Y1 Y2 define a rectangle within the frame to process. X=0, Y=0 point is in the lower left corner of the screen. |
Mode can be one of the following: |
P | forces removal of a spot with coordinates (X1,X2,Y1,Y2) by replacing its contents with the data of the Previous frame; has higher priority than the motion table; |
N | same but the data are taken from the Next frame; |
M | defines a rectangle with Motion and thus disables spot removal within that area; has lower priority than P- and N-modes; |
C | all detected spots are Cleared because this disables spot filtering with motion detection, perimeter clearance and spot fullness; has higher priority than M-mode. X1 X2 Y1 Y2 are ignored (if any). |
The following modes have effect from this frame forward: | |
L |
Set the Motion
Table Threshold two times Lower. X1 X2 Y1 Y2 are ignored (if any). |
H |
Set the Motion
Table Threshold two times Higher. X1 X2 Y1 Y2 are ignored (if any). |
B |
Change Brightness controls (see example below). Accepts from 1 to 5 parameters. Controls that correspond to the missing parameters are not changed. The changes take place two frames earlier than specified. |
S |
Change Spot detection controls (see example below). Accepts from 1 to 5 parameters. Controls that correspond to the missing parameters are not changed. |
120-131 c | Clear all detected spots in all frames from 120 to 131 |
135-136 m 0 50 0 50 | Force Motion and keep all detected spots on frames 135,136 in the rectangle (0,50,0,50) |
137 p 10 30 20 40 | Copy data from the rectangle (10,30,20,40) on frame 136 to the same rectangle on frame 137 |
138 p 10 30 20 40 | Copy data from frame 137 (i.e. those from frame 136) to the same rectangle on frame 138 |
138 n 50 50 70 60 | Copy data from frame 139 to the frame 138 |
138 b +15 -5 +10 0 7 |
will increase brightness by 15, will reduce contrast by 5, will increase saturation by 10, will not change Shift Red and will increase Shift Blue by 7. Changes take place since frame 136. |
141-160 b -5 |
will decrease brightness by 5%, for each frame from 139 to 158 (fade out effect) |
138 s 26 16 5 6 10 |
will set new parameters for spot removal: Level for spot detection = 26, Level for spot clearance = 16, Required perimeter clearance = 5, Motion table threshold = 6, Spot fullness factor = 10. Changes take place since frame 138. |
Note:
A frame number can be repeated on several subsequent lines with same or different modes. In this case, however, the C-mode should precede the others (if any).
The frame numbers in your script file are also good for processing a part of you movie.
Script file is always read forward. If you need to step back in your source file when previewing the output (i.e. pressing Alt-LeftArrow) make sure you reset the filter by opening the "Filters" dialog.