How to use the vapoursynth.get_output function in VapourSynth

To help you get started, we’ve selected a few VapourSynth examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Irrational-Encoding-Wizardry / yuuno / yuuno / magic / encode.py View on Github external
def do_encode(line, cell=None, local_ns=None, stderr=sys.stderr, stdout=sys.stdout, decode_stdout=True, decode_stderr=True, y4m=True):
    if cell is not None:
        cmd = line
        expr = cell
    else:
        try:
            expr, cmd = line.split(" ", 1)
        except ValueError:
            return "No command given"

    clip = retrieve_clip(expr, local_ns)

    if not isinstance(clip, vapoursynth.VideoNode):
        try:
            clip = vapoursynth.get_output(clip)
        except KeyError:
            return "The expression must compute to a VideoNode not '%r'." % clip

    return run_encoder(clip, cmd, stderr=stderr, stdout=stdout, decode_stdout=decode_stdout, decode_stderr=decode_stderr, y4m=y4m)
github Irrational-Encoding-Wizardry / yuuno / yuuno / old / pil_inline.py View on Github external
def format_core(core):
    try:
        return format_video(vs.get_output(0))
    except KeyError:
        return b""
github Irrational-Encoding-Wizardry / yuuno / yuuno / formatters.py View on Github external
def format_core(core):
    try:
        return video_converter(vs.get_output(0))
    except KeyError:
        return b""
github Infiziert90 / getnative / getnative / utils.py View on Github external
def vpy_source_filter(path):
    import runpy
    runpy.run_path(path, {}, "__vapoursynth__")
    return vapoursynth.get_output(0)
github Irrational-Encoding-Wizardry / yuuno / yuuno_ipython / comm / output_mirror.py View on Github external
def __getitem__(self, item):
        import vapoursynth
        with find_environment():
            item = vapoursynth.get_output(item)
            if id(item) != self.current_output_ids[item]:
                return None

        return item