mediainfo

package
v0.0.0-...-9b56d49 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmder

type Cmder interface {
	Output() ([]byte, error)
}

Cmder is an interface for mocking out the exec.Cmd struct.

type Commander

type Commander interface {
	Command(name string, args ...string) Cmder
}

Commander is an interface that allows for mocking out the os/exec package for testing.

type MetadataReader

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

MetadataReader satisfies the library.MetadataReader interface using MediaInfo.

func NewMetadataReader

func NewMetadataReader(logger controller.Logger) MetadataReader

NewMetadataReader returns a new MetadataReader.

func (*MetadataReader) Read

Read uses MediaInfo to read the file metadata.

Jump to

Keyboard shortcuts

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