Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Registry ¶
type Registry struct{}
func (Registry) Formats ¶
func (Registry) Formats() []SupportedFormat
func (Registry) TargetNames ¶ added in v0.6.0
TargetNames lists the supported output formats, for error messages.
type SupportedFormat ¶
type Target ¶ added in v0.6.0
type Target struct {
Name string
DefaultPreset string
// BatchExtensions are the input extensions `mediaconv batch` picks up for
// this target. The target's own extension is deliberately absent, so a
// batch never converts a file onto itself. A single `convert` is less
// restrictive: re-encoding an MP4 to MP4 is a legitimate request.
BatchExtensions []string
}
Target is an output format the registry can plan for. It is the single source of truth: internal/app asks here instead of keeping its own copy of the list, so adding a format stays inside this package, as ADR 0003 intends.
Click to show internal directories.
Click to hide internal directories.