library

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2026 License: MIT Imports: 5 Imported by: 0 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 library finds FFmpeg's shared libraries: the directory the NSGO_MEDIA_FFMPEG environment variable names, the app's package, beside the executable, then the system's. An iOS app has them as frameworks in its Frameworks, and no others.

Index

Constants

View Source
const EnvDir = "NSGO_MEDIA_FFMPEG"

EnvDir is the environment variable naming a directory to load FFmpeg's libraries from before any other.

Variables

This section is empty.

Functions

func Dirs

func Dirs() []string

Dirs returns the directories to look in, in order. An empty directory stands for the system's own search, which finds libraries by name alone.

func FileName

func FileName(goos, lib string, major int) string

FileName is the file a library has on goos at a major version, as FFmpeg's build names it: libavutil.61.dylib, avutil-61.dll or libavutil.so.61, and on iOS the binary of the framework tools/ffmpeg makes, libavutil.framework/libavutil, whose major the loader checks.

func Path

func Path(goos, dir, lib string, major int) string

Path is where to load lib from in dir: a file path, or for the system's search the file name alone.

Types

This section is empty.

Jump to

Keyboard shortcuts

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