Versions in this module Expand all Collapse all v0 v0.1.0 Nov 15, 2026 Changes in this version + const HeaderBytes + var ErrNoFrames = errors.New("media: the video track yielded no frames") + var ErrNoSamples = errors.New("media: the audio track yielded no samples") + func Downmix(a decode.Audio) ([]float64, error) + func FrameImage(f decode.Frame) (image.Image, error) + func Frames(path string, fps float64, maxSeconds int, ...) error + func IsPCM(codec string) bool + func Mono(path string, rate, maxSeconds int) ([]int16, error) + func MonoFloat(path string, maxSeconds int) (samples []float64, rate int, err error) + func PCMValue(codec string, b []byte, width int) (float64, error) + func Resample(mono []float64, from, to int) ([]int16, error) + type Kind string + const KindAudio + const KindImage + const KindOther + const KindVideo + func Classify(path string) (Kind, error)