Documentation
¶
Index ¶
- func PathFromTemplate(template string, args ...any) string
- type ArtworkCmd
- type AudioChannelsCmd
- type AudioSegmentCmd
- type BaseCmd
- type CLICommands
- type CapabilitiesCLICommands
- type CodecCmd
- type EncodingCLICommands
- type FiltersCmd
- type FormatsCmd
- type MetadataCLICommands
- type MetadataChromaprintCLICommands
- type MetadataCmd
- type PixelFormatsCmd
- type ProbeCmd
- type SampleFormatsCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PathFromTemplate ¶
Types ¶
type ArtworkCmd ¶
type AudioChannelsCmd ¶
type AudioChannelsCmd struct {
BaseCmd
schema.ListAudioChannelLayoutRequest
}
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 {
AudioChannels AudioChannelsCmd `cmd:"" name:"audio-channels" help:"List audio channel layouts." group:"CAPABILITIES"`
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"`
PixelFormats PixelFormatsCmd `cmd:"" name:"pixel-formats" help:"List pixel formats." group:"CAPABILITIES"`
SampleFormats SampleFormatsCmd `cmd:"" name:"sample-formats" help:"List sample formats." 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 PixelFormatsCmd ¶
type PixelFormatsCmd struct {
BaseCmd
schema.ListPixelFormatRequest
}
type ProbeCmd ¶
type ProbeCmd struct {
BaseCmd
File string `arg:"" name:"file" type:"existingfile" help:"File to probe."`
schema.ProbeRequest
}
type SampleFormatsCmd ¶
type SampleFormatsCmd struct {
BaseCmd
schema.ListSampleFormatRequest
}
Click to show internal directories.
Click to hide internal directories.