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 ¶
- func All() runconfig.Option
- func Build(ctx context.Context, outs ...goav.Output) (*goav.Task, error)
- func Codecs() runconfig.Option
- func Default() *goav.Runtime
- func Describe(outs ...goav.Output) (pipeline.Spec, error)
- func Explain(ctx context.Context, outs ...goav.Output) (plan.Report, error)
- func Filters() runconfig.Option
- func Formats() runconfig.Option
- func MustNew(opts ...runconfig.Option) *goav.Runtime
- func New(opts ...runconfig.Option) (*goav.Runtime, error)
- func Probe(ctx context.Context, request format.ProbeRequest) (format.ProbeResult, error)
- func Run(ctx context.Context, outs ...goav.Output) error
- func Schemes() runconfig.Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func All ¶
All returns one runtime option registering all bundled formats, codecs, filters, and URL schemes:
rt, err := goav.New(bundle.All(), myOption)
func Codecs ¶
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 ¶
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 ¶
Describe returns the graph outs build with the default bundled runtime, without opening anything.
func Explain ¶
Explain reports the plan outs build with the default bundled runtime, without opening anything.
func Formats ¶
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 New ¶
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.
Types ¶
This section is empty.