Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

reverse

reverse(input: Clip)

Reverses an input clip’s frame order. The last source frame becomes output frame 0, and the first source frame becomes the last output frame.

The input must be one fixed-format planar Gray, YUV, or planar RGB clip with a finite frame count. reverse does not change frame contents, format, resolution, frame count, frame rate, or per-frame metadata; metadata comes from the selected source frame.

Examples

output = source("input.mkv").std.reverse()
output = std.reverse(source("input.mkv"))

Input

One fixed-format planar Gray, YUV, or planar RGB clip with a finite frame count.

Output

A clip with the same format, resolution, frame count, and frame rate, containing all input frames in reverse order.