bundle

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package bundle provides the bundled pure-Go runtime adapters for goav recipes.

Import this package when an application wants the bundled codecs, container formats, and frame filters. The root package stays focused on the recipe grammar and runtime extension seams.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All() runconfig.Option

All returns one runtime option registering all bundled formats, codecs, filters, and URL schemes:

rt, err := goav.New(bundle.All(), myOption)

func Build

func Build(ctx context.Context, outs ...goav.Output) (goav.Task, error)

Build builds outs with the default bundled runtime without starting them.

func Codecs

func Codecs() runconfig.Option

Codecs registers the pure-Go codec adapters: Opus, VP8/VP9, AV1, and H.264 (descriptor-only unless built with -tags goav_goh264). AAC decode is not bundled: its pure-Go backend is GPL, so it is the explicit opt-in gplcodec.AAC(), and libcodec.AudioToolbox() decodes it on macOS.

func Default

func Default() *goav.Runtime

Default is the process-wide bundled runtime: built with default options on first use, then shared by every caller in the process for the life of the process, and used by this package's Run, Build, Describe, and Explain. It is safe to share because a runtime holds no per-run state. An application that wants its own clock, buffer policy, or adapters builds a runtime with New instead; nothing changes Default.

func Describe

func Describe(outs ...goav.Output) (pipeline.Spec, error)

Describe returns the graph outs build with the default bundled runtime, without opening anything.

func Explain

func Explain(ctx context.Context, outs ...goav.Output) (plan.Report, error)

Explain reports the plan outs build with the default bundled runtime, without opening anything.

func Filters

func Filters() runconfig.Option

Filters registers the frame filters: resample and resize.

func Formats

func Formats() runconfig.Option

Formats, Codecs, Filters, and Schemes are each one runtime option registering one bundled family, for runtimes that pair part of the bundle with their own adapters:

rt, err := goav.New(bundle.Filters(), myCodecOption)

Formats registers the container adapters: IVF, Annex B, Matroska, WebM, MP4.

func MustNew

func MustNew(opts ...runconfig.Option) *goav.Runtime

MustNew is New for package-level setup and tests.

func New

func New(opts ...runconfig.Option) (*goav.Runtime, error)

New builds a runtime with the bundled formats, codecs, filters, and URL schemes already registered, then applies opts on top. Registration is last-wins, so opts can add or override bundled implementations.

func Probe

func Probe(ctx context.Context, request format.ProbeRequest) (format.ProbeResult, error)

Probe inspects a media container with the default bundled runtime's format adapters.

func Run

func Run(ctx context.Context, outs ...goav.Output) error

Run builds outs with the default bundled runtime and runs them to completion: bundle.Run(ctx, in.Video().Encode(codec.VP9()).To(out)).

func Schemes

func Schemes() runconfig.Option

Schemes registers the URL schemes goav.FromURI and goav.ToURI resolve through: file, http, and https (package scheme). Add others, or replace these, with runconfig.WithScheme.

Types

This section is empty.

Jump to

Keyboard shortcuts

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