Versions in this module Expand all Collapse all v1 v1.1.0 Jun 11, 2026 Changes in this version + func ResolveEncoderThreads() int + type H264RemuxEncoder struct + func NewH264RemuxEncoder(ctx context.Context, locator Locator, fps int, outputPath string) (*H264RemuxEncoder, error) + func (e *H264RemuxEncoder) Close() error + func (e *H264RemuxEncoder) FrameCount(ctx context.Context) (int, error) + func (e *H264RemuxEncoder) OutputPath() string + func (e *H264RemuxEncoder) WriteAccessUnits(aus [][]byte) error + type RawRGBEncoder struct + func NewRawRGBEncoder(ctx context.Context, locator Locator, vcodec string, ...) (*RawRGBEncoder, error) + func (e *RawRGBEncoder) Close() error + func (e *RawRGBEncoder) OutputPath() string + func (e *RawRGBEncoder) WriteFrame(frame VideoFrameRGB24) error + func (e *RawRGBEncoder) WriteFrameBytes(rgb24 []byte) error + type VideoFrameRGB24 struct + Data []byte + Height int + Width int + func AsVideoFrameRGB24(v any, width, height int) (VideoFrameRGB24, error) + func ParseOptionalVideoFrameRGB24(v any, width, height int) (VideoFrameRGB24, bool, error) + func (f VideoFrameRGB24) ExpectedSize() int + func (f VideoFrameRGB24) Validate() error v1.0.0 Jun 5, 2026 Changes in this version + const DefaultCRF + func DurationSeconds(ctx context.Context, locator Locator, path string) (float64, error) + func EncodeFromPNGDir(ctx context.Context, cfg EncodeConfig) error + func ExtractSegment(ctx context.Context, locator Locator, src, dst string, fromSec, toSec float64, ...) error + func FileSizeMB(path string) (float64, error) + func GetVideoInfo(ctx context.Context, locator Locator, videoPath string) (map[string]any, error) + func ImageDir(videoKey string, episode int, root string) string + func SafeConcat(ctx context.Context, locator Locator, inputs []string, output string, ...) error + type Config struct + FFmpegPath string + FFprobePath string + type EncodeConfig struct + CRF int + FPS int + Locator Locator + OutputPath string + PNGPattern string + Threads int + VCodec string + type Locator interface + FFmpegPath func() (string, error) + FFprobePath func() (string, error) + func NewLocator(cfg Config) Locator