ffmpeg

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize added in v0.3.0

func Initialize() (err error)

Initialize ensures that the ffmpeg WebAssembly module is decoded and pre-compiled in memory to a format that the WebAssembly runtime can instantiate.

If the module is already pre-compiled, this is a noop. This is called within Run(), but you can opt to call this yourself as the pre-compilation stage can be slow.

Note that this is safe to call concurrently.

func Run

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

Run will run ffmpeg with the given arguments, returning exit code or error. The first call to Run() may be slow if Initialize() has not already been called.

Types

This section is empty.

Jump to

Keyboard shortcuts

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