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

flip_horizontal

flip_horizontal(input: Clip)

Mirrors a clip left-to-right without changing its format, resolution, timing, or metadata.

The input must be one fixed-format, fixed-resolution planar Gray, YUV, or planar RGB clip. For subsampled YUV formats, each plane is flipped using that plane’s own dimensions, so chroma planes remain aligned with the luma plane.

Examples

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

Input

One fixed-format, fixed-resolution planar Gray, YUV, or planar RGB clip.

Output

A clip with the same format, resolution, timing, and metadata, mirrored left-to-right.

flip_vertical

flip_vertical(input: Clip)

Mirrors a clip top-to-bottom without changing its format, resolution, timing, or metadata.

The input must be one fixed-format, fixed-resolution planar Gray, YUV, or planar RGB clip. For subsampled YUV formats, each plane is flipped using that plane’s own dimensions, so chroma planes remain aligned with the luma plane.

Examples

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

Input

One fixed-format, fixed-resolution planar Gray, YUV, or planar RGB clip.

Output

A clip with the same format, resolution, timing, and metadata, mirrored top-to-bottom.