encoder

package
v0.0.0-...-52eee75 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2026 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunConsole

func RunConsole(ctx context.Context, input, outputDir string, out io.Writer, quiet bool) (*reel.Result, error)

RunConsole encodes one file in-process with Reel's target-quality mode, rendering human-readable progress lines to out. It is the interactive sibling of RunWorker: the same encode path, but console rendering instead of the JSON wire (no worker subprocess -- a crash takes down only the CLI invocation that asked for it).

func RunWorker

func RunWorker(ctx context.Context, input, outputDir string, out io.Writer) error

RunWorker is the `spindle encode-worker` entry point: encode one file in this process and stream reporter events to out as JSON lines, ending with a result or failure event.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler implements stage.Handler for encoding.

func New

func New(cfg *config.Config) *Handler

New creates an encoding handler.

func (*Handler) Run

func (h *Handler) Run(ctx context.Context, sess *stage.Session) error

Run executes the encoding stage.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL