Functions Index :: E :: EditDelete
Module:
Definition:
EditDelete(clip base, int frame, int "del_frames", int "op", string "extra_info")
Description:
Deletes a specified number of frames from a clip, starting at a specified frame position. The resulting clip will always have <= length from the base clip.
Arguments:
base: The clip to delete frames from.
frame: The frame-number to start deleting frames (ie the first frame to delete).
"del_frames" (Optional, defaults to base.Framecount ie to the end of clip): The number of frames to delete from base.
The value of del_frames is always clamp-ed between zero and base.Framecount. Thus negative values have the same effect as zero (nothing is deleted).
"op" , "extra_info" (Optional): Both have the same semantics as in EditReplace() function.
Examples:
# load a clip to c and then make it 200 frames long
c = AVISource( ... ).EditTrim(0, 200)
# now operate on c; use OOP notation
# delete 10 frames starting from 0 (-10 decrease, 190 total)
d1 = c.EditDelete(0, 10)
# delete 40 frames starting from 80 (-40 decrease, 160 total)
# use Dissolve() to join result parts with overlap=5
d2 = c.EditDelete(0, 10, EDOP_DISS, "5")
# delete all frames to the end starting from 100 (-100 decrease, 100 total)
d3 = c.EditDelete(100)