ffmpeg

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cached added in v0.2.0

func Cached() *wasm.Instance

Cached returns a cached instance (if any) from pool.

func Free added in v0.2.0

func Free()

Free drops all instances cached in instance pool.

func Get added in v0.2.0

func Get(ctx context.Context) (*wasm.Instance, error)

Get fetches new ffmpeg instance from pool, prefering cached if available.

func Precompile added in v0.2.0

func Precompile(ctx context.Context) error

Precompile ensures at least compiled ffmpeg instance is available in the global pool.

func Put added in v0.2.0

func Put(inst *wasm.Instance)

Put places the given ffmpeg instance in pool.

func Run

func Run(ctx context.Context, args wasm.Args) (uint32, error)

Run will run the given args against an ffmpeg instance from pool.

Types

This section is empty.

Jump to

Keyboard shortcuts

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