manager

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, _ *slog.Logger) error

Run blocks until the context is canceled and returns the context error.

Types

type Media

type Media struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, opts ...Opt) (_ *Media, err error)

New creates a new media object

func (*Media) AudioFingerprint

AudioFingerprint is unavailable unless built with -tags chromaprint.

func (*Media) AudioFingerprintLookup

AudioFingerprintLookup looks up an audio fingerprint from a fingerprint

func (*Media) GetMetadata

func (m *Media) GetMetadata(ctx context.Context, r io.Reader, filter string, warn *error) (_ schema.Meta, err error)

Return metadata for a given reader, and any warnings that may have been generated during the extraction process.

func (*Media) ListAudioChannelLayouts

ListAudioChannelLayouts returns standard FFmpeg channel layouts, optionally filtered by layout name and/or number of channels.

func (*Media) ListCodecs

ListCodecs returns all supported codecs, with optional filters.

func (*Media) ListFilters

ListFilters returns all supported filters with optional name filtering.

func (*Media) ListFormats

ListFormats returns all supported formats (input/output formats and devices).

func (*Media) ListPixelFormats

ListPixelFormats returns all supported pixel formats.

func (*Media) ListSampleFormats

ListSampleFormats returns all supported sample formats.

func (*Media) Probe

func (m *Media) Probe(ctx context.Context, req goschema.ProbeRequest) (_ *goschema.ProbeResponse, err error)

Probe a media stream from any reader and return information about its container format and streams.

func (*Media) SegmentAudio

func (m *Media) SegmentAudio(ctx context.Context, req schema.SegmentAudioRequest) error

SegmentAudio segments audio from an input reader and logs each segment. Segment sample payloads are discarded after logging.

type Opt

type Opt func(*opt) error

Opt is a functional option for filer manager configuration.

func WithAcoustIDKey

func WithAcoustIDKey(key string, opts ...client.ClientOpt) Opt

WithAcoustIDKey creates and stores an AcoustID lookup client.

func WithTracer

func WithTracer(tracer trace.Tracer) Opt

WithTracer sets the tracer used for tracing operations.

Jump to

Keyboard shortcuts

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