DeleteFrame: Difference between revisions

From Avisynth wiki
Jump to navigationJump to search
v2.58 updates
 
mNo edit summary
 
(3 intermediate revisions by 3 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/deleteframe.html https://avisynthplus.readthedocs.io]
</div>
{{Template:FuncDef|DeleteFrame(clip ''clip'', int ''frame_num'' [, ...])}}
{{Template:FuncDef|DeleteFrame(clip ''clip'', int ''frame_num'' [, ...])}}


Line 24: Line 30:


[[Category:Internal filters]]
[[Category:Internal filters]]
[[Category:Timeline_editing_filters]]

Latest revision as of 05:13, 18 September 2022

AviSynth+
Up-to-date documentation: https://avisynthplus.readthedocs.io


DeleteFrame(clip clip, int frame_num [, ...])

DeleteFrame deletes a set of frames, given as a number of arguments. The sound track is not modified, so if you use this filter too many times in a row you may get noticeable desynchronization.

Examples:

DeleteFrame(3, 9, 21, 42) # delete frames 3, 9, 21 and 42

If you want to delete a range of frames (a to b, say) along with the corresponding portion of the soundtrack, you can do it like this:

 Trim(0,a-1) ++ Trim(b+1,0)

Or like this:

 Loop(0,a,b)

Changelog:

v2.58 Added support for multiple arguments.