Represents a video source and supports renderer-neutral trimming, cutting, cropping, transformations, saving, metadata queries, copying, and native display. Video rendering requires FFmpeg and ffprobe.
Availability: ZPE 1.14.11 is the first version to support the Video object.
Object functions
- construct [1.14.11+]
Initialises a Video object, optionally opening a video from its source.
- copy [1.14.11+]
Returns a copy of the video object.
- crop [1.14.11+]
Crops the video to the rectangle beginning at x and y with the specified width and height.
- cut [1.14.11+]
Splits the video into two video objects at a position.
- darken [1.14.11+]
Darkens the video.
- display [1.14.11+]
Displays the video using the native video player.
- duration [1.14.11+]
Returns the video duration.
- height [1.14.11+]
Returns the video height.
- open [1.14.11+]
Opens the video from its source.
- save [1.14.11+]
Renders the video and saves it to a file.
- transform_brightness [1.14.11+]
Adjusts the video brightness.
- transform_contrast [1.14.11+]
Adjusts the video contrast.
- transform_crop [1.14.11+]
Crops the video to the rectangle beginning at x and y with the specified width and height.
- transform_flip_horizontal [1.14.11+]
Flips the video horizontally.
- transform_flip_vertical [1.14.11+]
Flips the video vertically.
- transform_greyscale [1.14.11+]
Converts the video to greyscale.
- transform_invert_color [1.14.11+]
Inverts the video colours.
- transform_opacity [1.14.11+]
Adjusts the video opacity.
- transform_resize [1.14.11+]
Resizes the video.
- transform_rotate [1.14.11+]
Rotates the video by the specified number of degrees.
- transform_sepia [1.14.11+]
Applies a sepia effect to the video.
- trim [1.14.11+]
Sets the start and end positions used when rendering the video.
- width [1.14.11+]
Returns the video width.

There are no comments on this page.
Comments are welcome and encouraged, including disagreement and critique. However, this is not a space for abuse. Disagreement is welcome; personal attacks, harassment, or hate will be removed instantly. This site reflects personal opinions, not universal truths. If you can’t distinguish between the two, this probably isn’t the place for you. The system temporarily stores IP addresses and browser user agents for the purposes of spam prevention, moderation, and safeguarding. This data is automatically removed after fourteen days. Your email address is stored so that replies can be sent to your email address.
Comments powered by BalfComment