vsutil

Info

Name vsutil
Identifier vsutil
Type PyScript
Category Collection
Description A collection of general purpose Vapoursynth functions to be reused in modules and scripts
Has GPU-Support? no
Links Website | Github

Releases

VSRrepo is available

Install with: vsrepo install vsutil

Version Published Download
0.5.0 2020-07-15
0.4.0 2020-06-27
0.3.0 2020-06-12
0.2.0 2019-05-05

Dependencies

no dependencies

Plugin-Functions

Bit Depth Color Space Category Description
get_subsampling any any Metrics and Analysis Returns the subsampling of a clip in human-readable format.
get_depth any any Metrics and Analysis Returns the bitdepth of a clip as an integer.
get_plane_size any any Metrics and Analysis Calculates the size of the plane :param frame: The frame :param planeno: The plane :return: (width, height)
iterate any unknown Scripts Utility function that executes a given function for a given number of times.
insert_clip any any Other Convenience method to insert a shorter clip into a longer one. The inserted clip cannot go beyond the last frame of the source clip or an exception is raised.
fallback unknown unknown Scripts Utility function that returns a value or a fallback if the value is None.
plane unknown unknown Other Extract the plane with the given index from the clip. :param clip: The clip to extract the plane from. :param planeno: The planeno that specifies which plane to extract. :return: A grayscale clip that only contains the given plane.
get_y unknown unknown Metrics and Analysis Helper to get the luma of a VideoNode.
split unknown unknown Metrics and Analysis Returns a list of planes for the given input clip.
join unknown unknown Other Joins the supplied list of planes into a YUV video node.
frame2clip unknown unknown unknown Converts a vapoursynth frame to a clip. :param frame: The frame to wrap. :param enforce_cache: Always add a cache. (Even if the vapoursynth module has this feature disabled) :returns: A one-frame VideoNode that yields the frame passed to the function.
get_w unknown unknown Metrics and Analysis Calculates the width for a clip with the given height and aspect ratio. only_even is True by default because it imitates the math behind most standard resolutions (e.g. 854x480).
is_image unknown unknown Metrics and Analysis Returns true if a filename refers to an image.
depth any any Resizing and Format Conversion A bit depth converter only using core.resize. Supports all constant-format clips.
scale_value unknown unknown Metrics and Analysis Scales a given numeric value between bit depths, sample types, and/or ranges.