Versions in this module Expand all Collapse all v0 v0.2.1 Jul 28, 2026 v0.2.0 Jul 28, 2026 Changes in this version + var ErrNoEncoder = errors.New("no encoder available for this format") + var ErrNoFrames = errors.New("no frames were captured") + func Available(f Format) error + func Extensions() string + func IsNoEncoder(err error) bool + type File struct + Data []byte + Name string + type Format string + const FormatFrames + const FormatGIF + const FormatMP4 + const FormatWebM + func FormatFromPath(path string) (Format, bool) + func ParseFormat(s string) (Format, error) + type Frame struct + CSSHeight float64 + CSSWidth float64 + Data []byte + Marks []Mark + TS time.Time + type Mark struct + Command string + X float64 + Y float64 + type Options struct + Annotate bool + FPS float64 + Format Format + Loop int + MaxBytes int + type Result struct + Annotated bool + Bytes int + Data []byte + DecodeFailures int + DurationMs int64 + FPS float64 + Files []File + Format Format + Frames int + Height int + Reduced bool + ReductionTimedOut bool + Scale float64 + Width int + WithinMaxSize bool + func Encode(ctx context.Context, frames []Frame, opts Options) (Result, error)