Documentation
¶
Index ¶
- func PathFromTemplate(template string, args ...any) string
- func WalkFS(ctx context.Context, root string, ...) error
- type ArtworkCmd
- type AudioSegmentCmd
- type BaseCmd
- type CLICommands
- type CapabilitiesCLICommands
- type CodecCmd
- type EncodingCLICommands
- type FiltersCmd
- type FormatsCmd
- type MetadataCLICommands
- type MetadataChromaprintCLICommands
- type MetadataCmd
- type ProbeCmd
- type RunServer
- type ServerCommands
- type Templater
- type WalkOpt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PathFromTemplate ¶
Types ¶
type ArtworkCmd ¶
type ArtworkCmd struct {
BaseCmd
Path string `arg:"" name:"path" type:"path" help:"File to extract artwork from." default:"."`
Out string `flag:"" name:"out" help:"Output template for artwork files." required:""`
Recursive bool `flag:"" name:"recursive" short:"r" help:"Recursively extract artwork from files in a directory." negatable:""`
Exclude []string `flag:"" name:"exclude" help:"Exclude files with these extensions (e.g. .jpg, .png)."`
}
type AudioSegmentCmd ¶
type AudioSegmentCmd struct {
BaseCmd
File string `arg:"" name:"file" type:"existingfile" help:"File to segment."`
Out string `flag:"" name:"out" help:"Output directory for encoded segment M4A files." default:"." type:"path"`
Duration time.Duration `flag:"" name:"duration" help:"Target segment duration (e.g. 30s). Use 0s to disable fixed-size splits."`
Silence bool `flag:"" name:"silence" help:"Enable silence-based segmentation." negatable:"" default:"true"`
SilenceDuration time.Duration `` /* 150-byte string literal not displayed */
SilenceThreshold float64 `` /* 157-byte string literal not displayed */
}
type BaseCmd ¶
type BaseCmd struct {
ChromaprintKey string `name:"chromaprint-key" env:"CHROMAPRINT_KEY" help:"AcoustID API key for chromaprint lookups"`
}
type CLICommands ¶
type CLICommands struct {
MetadataCLICommands
CapabilitiesCLICommands
EncodingCLICommands
}
type CapabilitiesCLICommands ¶
type CapabilitiesCLICommands struct {
Codecs CodecCmd `cmd:"" name:"codecs" help:"List codecs." group:"CAPABILITIES"`
Filters FiltersCmd `cmd:"" name:"filters" help:"List filters." group:"CAPABILITIES"`
Formats FormatsCmd `cmd:"" name:"formats" help:"List formats and devices." group:"CAPABILITIES"`
}
type CodecCmd ¶
type CodecCmd struct {
BaseCmd
schema.ListCodecRequest
}
type EncodingCLICommands ¶
type EncodingCLICommands struct {
AudioSegment AudioSegmentCmd `cmd:"" name:"audio-segment" help:"Segment audio and log segments." group:"ENCODING"`
}
type FiltersCmd ¶
type FiltersCmd struct {
BaseCmd
schema.ListFilterRequest
}
type FormatsCmd ¶
type FormatsCmd struct {
BaseCmd
schema.ListFormatRequest
}
type MetadataCLICommands ¶
type MetadataCLICommands struct {
Metadata MetadataCmd `cmd:"" name:"metadata" help:"Extract metadata." group:"METADATA"`
Artwork ArtworkCmd `cmd:"" name:"artwork" help:"Extract artwork." group:"METADATA"`
Probe ProbeCmd `cmd:"" name:"probe" help:"Probe media file." group:"METADATA"`
MetadataChromaprintCLICommands
}
type MetadataChromaprintCLICommands ¶
type MetadataChromaprintCLICommands struct{}
MetadataChromaprintCLICommands is empty unless built with -tags chromaprint.
type MetadataCmd ¶
type MetadataCmd struct {
BaseCmd
Path string `arg:"" name:"path" type:"path" help:"File to extract metadata from." default:"."`
Out string `flag:"" name:"out" help:"Output template for metadata files."`
Recursive bool `flag:"" name:"recursive" short:"r" help:"Recursively extract metadata from files in a directory." negatable:""`
Exclude []string `flag:"" name:"exclude" help:"Exclude files with these extensions (e.g. .jpg, .png)."`
Namespace string `flag:"" name:"namespace" help:"Namespace to extract." default:""`
}
type ProbeCmd ¶
type ProbeCmd struct {
BaseCmd
File string `arg:"" name:"path" type:"path" help:"File to probe."`
schema.ProbeRequest
}
type ServerCommands ¶
type ServerCommands struct {
RunServer RunServer `cmd:"" name:"run" help:"Run the gomedia server." group:"SERVER"`
servercmd.OpenAPICommands
}
type Templater ¶
type Templater struct {
// contains filtered or unexported fields
}
func NewTemplater ¶
type WalkOpt ¶
type WalkOpt func(*opt) error
func WithExcludeExt ¶
func WithRecursive ¶
func WithRecursive() WalkOpt
func WithTemplate ¶
Click to show internal directories.
Click to hide internal directories.