Documentation
¶
Index ¶
- type AudioChannelLayout
- func (r AudioChannelLayout) Cell(col int) string
- func (r AudioChannelLayout) Description() string
- func (AudioChannelLayout) Header() []string
- func (r AudioChannelLayout) MarshalJSON() ([]byte, error)
- func (r AudioChannelLayout) Name() string
- func (r AudioChannelLayout) String() string
- func (AudioChannelLayout) Width(col int) int
- type AudioFingerprintLookupRequest
- type AudioFingerprintLookupResponse
- type AudioFingerprintRequest
- type AudioFingerprintResponse
- type Codec
- type Device
- type Filter
- type Format
- type ListAudioChannelLayoutRequest
- type ListAudioChannelLayoutResponse
- type ListCodecRequest
- type ListCodecResponse
- type ListFilterRequest
- type ListFilterResponse
- type ListFormatRequest
- type ListFormatResponse
- type ListPixelFormatRequest
- type ListPixelFormatResponse
- type ListSampleFormatRequest
- type ListSampleFormatResponse
- type MediaType
- type Meta
- type MetaItem
- type PixelFormat
- func (r PixelFormat) BitDepth() int
- func (r PixelFormat) Cell(col int) string
- func (r PixelFormat) Flags() string
- func (PixelFormat) Header() []string
- func (r PixelFormat) MarshalJSON() ([]byte, error)
- func (r PixelFormat) Name() string
- func (r PixelFormat) NumPlanes() int
- func (r PixelFormat) String() string
- func (PixelFormat) Width(col int) int
- type ProbeRequest
- type ProbeResponse
- type SampleFormat
- func (r SampleFormat) BytesPerSample() int
- func (r SampleFormat) Cell(col int) string
- func (SampleFormat) Header() []string
- func (r SampleFormat) IsPlanar() bool
- func (r SampleFormat) MarshalJSON() ([]byte, error)
- func (r SampleFormat) Name() string
- func (r SampleFormat) PackedName() string
- func (r SampleFormat) String() string
- func (SampleFormat) Width(col int) int
- type SegmentAudioRequest
- type Stream
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AudioChannelLayout ¶
type AudioChannelLayout struct {
*ff.AVChannelLayout
}
func NewAudioChannelLayout ¶
func NewAudioChannelLayout(ch *ff.AVChannelLayout) *AudioChannelLayout
func (AudioChannelLayout) Cell ¶
func (r AudioChannelLayout) Cell(col int) string
func (AudioChannelLayout) Description ¶
func (r AudioChannelLayout) Description() string
func (AudioChannelLayout) Header ¶
func (AudioChannelLayout) Header() []string
func (AudioChannelLayout) MarshalJSON ¶
func (r AudioChannelLayout) MarshalJSON() ([]byte, error)
func (AudioChannelLayout) Name ¶
func (r AudioChannelLayout) Name() string
func (AudioChannelLayout) String ¶
func (r AudioChannelLayout) String() string
func (AudioChannelLayout) Width ¶
func (AudioChannelLayout) Width(col int) int
type AudioFingerprintLookupResponse ¶
type AudioFingerprintLookupResponse struct {
Matches [][]*chromaprintschema.ResponseMatch `json:"matches,omitempty"` // AcoustID matches
}
func (AudioFingerprintLookupResponse) String ¶
func (r AudioFingerprintLookupResponse) String() string
type AudioFingerprintRequest ¶
type AudioFingerprintRequest struct {
Input string `json:"input,omitempty"` // Input media file path
Reader io.Reader `json:"-" kong:"-"` // Reader for media data
InputFormat string `json:"input_format,omitempty" name:"input-format" help:"Input format name (e.g. s16le)"`
InputOpts []string `json:"input_opts,omitempty" name:"input-opt" help:"Input format option key=value (repeatable)"`
Duration float64 `json:"duration,omitempty"` // Full track duration in seconds (0 = auto-detect)
}
type AudioFingerprintResponse ¶
type AudioFingerprintResponse struct {
Fingerprint string `json:"fingerprint"` // Audio fingerprint string
Duration float64 `json:"duration"` // Track duration in seconds
}
func (AudioFingerprintResponse) String ¶
func (r AudioFingerprintResponse) String() string
type Codec ¶
func (Codec) MarshalJSON ¶
type Device ¶
type Filter ¶
func (Filter) MarshalJSON ¶
type Format ¶
type Format struct {
Name string `json:"name"`
Description string `json:"description,omitempty"`
MimeTypes []string `json:"mime_types,omitempty"`
Extensions []string `json:"extensions,omitempty"`
IsInput bool `json:"is_input"`
IsOutput bool `json:"is_output"`
IsDevice bool `json:"is_device,omitempty"`
Flags []string `json:"flags,omitempty"`
MediaTypes []string `json:"media_types,omitempty"`
DefaultVideoCodec string `json:"default_video_codec,omitempty"`
DefaultAudioCodec string `json:"default_audio_codec,omitempty"`
DefaultSubtitleCodec string `json:"default_subtitle_codec,omitempty"`
Devices []Device `json:"devices,omitempty"`
Opts []*ff.AVOption `json:"options,omitempty"`
}
func NewInputFormat ¶
func NewInputFormat(input *ff.AVInputFormat, isDevice bool) *Format
func NewOutputFormat ¶
func NewOutputFormat(output *ff.AVOutputFormat, isDevice bool) *Format
func (*Format) AddMediaType ¶
func (*Format) SetDevices ¶
type ListAudioChannelLayoutResponse ¶
type ListAudioChannelLayoutResponse []AudioChannelLayout
func (ListAudioChannelLayoutResponse) String ¶
func (r ListAudioChannelLayoutResponse) String() string
type ListCodecRequest ¶
type ListCodecRequest struct {
Name string `json:"name,omitempty" help:"Filter by codec name (partial match)"`
Type string `json:"type,omitempty" help:"Filter by media type: video, audio, subtitle, data"`
IsEncoder *bool `json:"is_encoder,omitempty" help:"Filter by encoder (true) or decoder (false)"`
}
type ListCodecResponse ¶
type ListCodecResponse []Codec
func (ListCodecResponse) String ¶
func (r ListCodecResponse) String() string
type ListFilterRequest ¶
type ListFilterRequest struct {
Name string `json:"name" help:"Filter by filter name (partial match)"`
}
type ListFilterResponse ¶
type ListFilterResponse []Filter
func (ListFilterResponse) String ¶
func (r ListFilterResponse) String() string
type ListFormatRequest ¶
type ListFormatRequest struct {
Name string `json:"name,omitempty" help:"Filter by format name (partial match)"`
IsInput *bool `json:"is_input,omitempty" help:"Filter by input format (demuxer)"`
IsOutput *bool `json:"is_output,omitempty" help:"Filter by output format (muxer)"`
IsDevice *bool `json:"is_device,omitempty" help:"Filter by device format"`
}
type ListFormatResponse ¶
type ListFormatResponse []Format
func (ListFormatResponse) String ¶
func (r ListFormatResponse) String() string
type ListPixelFormatRequest ¶
type ListPixelFormatResponse ¶
type ListPixelFormatResponse []PixelFormat
func (ListPixelFormatResponse) String ¶
func (r ListPixelFormatResponse) String() string
type ListSampleFormatRequest ¶
type ListSampleFormatResponse ¶
type ListSampleFormatResponse []SampleFormat
func (ListSampleFormatResponse) String ¶
func (r ListSampleFormatResponse) String() string
type MediaType ¶
type MediaType ff.AVMediaType
func (*MediaType) Equals ¶
func (mt *MediaType) Equals(t ff.AVMediaType) bool
Equals checks if the MediaType equals the given AVMediaType.
func (MediaType) MarshalJSON ¶
type Meta ¶
type Meta struct {
ContentType string `json:"content_type,omitempty"`
Meta []MetaItem `json:"meta,omitempty"`
}
func (Meta) MarshalJSON ¶
MarshalJSON emits metadata as explicit key/value pairs rather than marshaling embedded interface-backed structs directly.
type PixelFormat ¶
type PixelFormat struct {
ff.AVPixelFormat
}
func NewPixelFormat ¶
func NewPixelFormat(pixfmt ff.AVPixelFormat) *PixelFormat
func (PixelFormat) BitDepth ¶
func (r PixelFormat) BitDepth() int
func (PixelFormat) Cell ¶
func (r PixelFormat) Cell(col int) string
func (PixelFormat) Flags ¶
func (r PixelFormat) Flags() string
func (PixelFormat) Header ¶
func (PixelFormat) Header() []string
func (PixelFormat) MarshalJSON ¶
func (r PixelFormat) MarshalJSON() ([]byte, error)
func (PixelFormat) Name ¶
func (r PixelFormat) Name() string
func (PixelFormat) NumPlanes ¶
func (r PixelFormat) NumPlanes() int
func (PixelFormat) String ¶
func (r PixelFormat) String() string
func (PixelFormat) Width ¶
func (PixelFormat) Width(col int) int
type ProbeRequest ¶
type ProbeRequest struct {
Reader io.Reader `json:"-" kong:"-"` // Reader for media data
InputFormat string `json:"input_format,omitempty" name:"input-format" help:"Input format name (e.g. mpegts)"`
InputOpts []string `json:"input_opts,omitempty" name:"input-opt" help:"Input format option key=value (repeatable)"`
}
type ProbeResponse ¶
type ProbeResponse struct {
Format string `json:"format"` // Format name (e.g., "mov,mp4,m4a,3gp,3g2,mj2")
Description string `json:"description,omitempty"` // Format description (e.g., "QuickTime / MOV")
MimeTypes []string `json:"mime_types,omitempty"` // MIME types
Duration float64 `json:"duration"` // Duration in seconds
Streams []*Stream `json:"streams,omitempty"` // Stream information
}
func (ProbeResponse) String ¶
func (r ProbeResponse) String() string
type SampleFormat ¶
type SampleFormat struct {
ff.AVSampleFormat
}
func NewSampleFormat ¶
func NewSampleFormat(samplefmt ff.AVSampleFormat) *SampleFormat
func (SampleFormat) BytesPerSample ¶
func (r SampleFormat) BytesPerSample() int
func (SampleFormat) Cell ¶
func (r SampleFormat) Cell(col int) string
func (SampleFormat) Header ¶
func (SampleFormat) Header() []string
func (SampleFormat) IsPlanar ¶
func (r SampleFormat) IsPlanar() bool
func (SampleFormat) MarshalJSON ¶
func (r SampleFormat) MarshalJSON() ([]byte, error)
func (SampleFormat) Name ¶
func (r SampleFormat) Name() string
func (SampleFormat) PackedName ¶
func (r SampleFormat) PackedName() string
func (SampleFormat) String ¶
func (r SampleFormat) String() string
func (SampleFormat) Width ¶
func (SampleFormat) Width(col int) int
type SegmentAudioRequest ¶
type SegmentAudioRequest struct {
Reader io.Reader `json:"-" kong:"-"`
OutputDir string `json:"output_dir,omitempty" name:"out" help:"Output directory for encoded segment M4A files."`
Duration time.Duration `json:"duration,omitempty" name:"duration" help:"Target segment duration (e.g. 30s). Use 0s to disable fixed-size splits."`
Silence bool `json:"silence" name:"silence" help:"Enable silence-based segmentation." negatable:"" default:"true"`
SilenceDuration time.Duration `` /* 168-byte string literal not displayed */
SilenceThreshold float64 `` /* 172-byte string literal not displayed */
}
type Stream ¶
Stream wraps pkg/ffmpeg/schema Stream and adds CLI table formatting helpers.
func WrapStream ¶
func (Stream) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.