Skip to content

util

set_output(clip, name=None, frame_info=False, allow_comp=True, cache=None, **kwargs)

Outputs a clip. Less to type. Designed to be used with the good ol 'from vodesfunc import *' and the 'out' alias

Source code in vodesfunc/util.py
def set_output(
    clip: vs.VideoNode, name: str | None = None, frame_info: bool = False, allow_comp: bool = True, cache: bool | None = None, **kwargs: KwargsT
) -> vs.VideoNode:
    """
    Outputs a clip. Less to type.
    Designed to be used with the good ol 'from vodesfunc import *' and the 'out' alias
    """
    if frame_info and name:
        clip = _print_frameinfo(clip, name)

    try:
        args = KwargsT(name=name, cache=cache, disable_comp=not allow_comp)
        if kwargs:
            args.update(**kwargs)
        from vspreview import is_preview, set_output as setsu_sucks

        if cache is None:
            cache = is_preview()
        setsu_sucks(clip, **args)
    except:
        if name is not None:
            clip = clip.std.SetFrameProp("Name", data=name)
        clip.set_output(len(vs.get_outputs()))
    return clip

src(filePath, force_lsmas=False, delete_dgi_log=True, **kwargs)

Used dgindex as Source and requires dgindexnv in path to generate files if they don't exist.

Now deprecated in favour of the vsmuxtools implementation.

Parameters:

Name Type Description Default
filepath

Path to video or dgi file

required
force_lsmas bool

Skip dgsource entirely and use lsmas

False
delete_dgi_log bool

Delete the .log files dgindexnv creates

True

Returns:

Type Description
VideoNode

Video Node

Source code in vodesfunc/util.py
def src(filePath: PathLike, force_lsmas: bool = False, delete_dgi_log: bool = True, **kwargs) -> vs.VideoNode:
    """
    Used dgindex as Source and requires dgindexnv in path to generate files if they don't exist.\n
    Now deprecated in favour of the vsmuxtools implementation.

    :param filepath:        Path to video or dgi file
    :param force_lsmas:     Skip dgsource entirely and use lsmas
    :param delete_dgi_log:  Delete the .log files dgindexnv creates
    :return:                Video Node
    """
    print("vodesfunc.src is deprecated and currently only calls vsmuxtools.src!")
    print("It might get removed in the next update or two.")
    return vmt_src(ensure_path_exists(filePath, src), force_lsmas, **kwargs)