ffmpreg

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 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 Ffmpeg

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

Ffmpeg 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.

func Ffprobe

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

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

func Initialize

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 ffmpreg 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