yuuno.ipy_vs.encode module

class yuuno.ipy_vs.encode.ClipFeeder(clip, pipe, *args, **kwargs)[source]

Bases: threading.Thread

run()[source]
stop()[source]
class yuuno.ipy_vs.encode.Encode(*args, **kwargs)[source]

Bases: yuuno.ipy_vs.vs_feature.VSFeature, yuuno.ipython.magic.MagicFeature

initialize()[source]
class yuuno.ipy_vs.encode.EncodeMagic(shell=None, **kwargs)[source]

Bases: IPython.core.magic.Magics

Encode magics.

begin_encode(clip, commandline, stdout=None, **kwargs)[source]

Implements the actual encoding process

Parameters:
  • clip – The clip to encode.
  • commandline – The command to execute
  • stdout – Where to send the stdout.
Returns:

The return code.

encode(line, cell=None)[source]

Encodes the video directly displaying the output. :param line: The line :param cell: The cell :return: The result-code

environment

A trait whose value must be an instance of a specified class.

The value can also be an instance of a subclass of the specified class.

Subclasses can declare default classes by overriding the klass attribute

magics = {‘line’: {‘encode’: ‘encode’, ‘render’: ‘render’}, ‘cell’: {‘encode’: ‘encode’, ‘render’: ‘render’}}
prepare_encode(line, cell, stdout=None)[source]
registered = True
render(line, cell=None)[source]

Renders the video into a bytes-io buffer. :param line: The line :param cell: The cell :return: The IO.

class yuuno.ipy_vs.encode.OutputFeeder(process, pipe, output)[source]

Bases: threading.Thread

run()[source]