Versions in this module Expand all Collapse all v0 v0.32.1 Nov 17, 2026 v0.32.0 Nov 17, 2026 v0.31.0 Nov 17, 2026 v0.30.0 Nov 17, 2026 Changes in this version + const DefaultEncodeCRF + const DefaultEncodePreset + const DefaultLaunchTimeout + const DefaultPoolSize + var ErrNoLibass = errors.New(...) + var ErrNotConfigured = errors.New("capx: capability not configured (Config.Enabled is nil or false)") + var ErrRemoteNotWired = errors.New(...) + func NewStubInstance() *browserInstance + func ProbeChrome(explicit string) (string, error) + func ProbeFFMpeg(explicit string) (string, error) + type Config struct + ChromePath string + Enabled *bool + FFMpegPath string + LaunchTimeout time.Duration + PoolSize int + type Doc struct + HTML string + TimelineID string + type EncodeOptions struct + CRF int + Preset string + type Frame struct + Index int + PNG []byte + Time float64 + type FrameFunc func(ctx context.Context, f Frame) error + type FrameSpec struct + DurationFrames int + FPS int + Height int + Width int + func (s FrameSpec) Validate() error + type FrameWriter struct + func NewFrameWriter(w io.Writer) *FrameWriter + func (f *FrameWriter) WriteFrame(png []byte) error + type LocalChromeRenderer struct + Runtime *Runtime + func (l *LocalChromeRenderer) RenderFrames(ctx context.Context, doc Doc, spec FrameSpec, onFrame FrameFunc) error + type RemoteHTTP struct + func (RemoteHTTP) RenderFrames(ctx context.Context, doc Doc, spec FrameSpec, onFrame FrameFunc) error + type Renderer interface + RenderFrames func(ctx context.Context, doc Doc, spec FrameSpec, onFrame FrameFunc) error + type Runtime struct + func New(cfg Config) (*Runtime, error) + func (r *Runtime) Available() bool + func (r *Runtime) BurnSubtitles(ctx context.Context, videoPath, srtPath string, w io.Writer) error + func (r *Runtime) Close() error + func (r *Runtime) EncodePNGStream(ctx context.Context, w io.Writer, spec FrameSpec, frames io.Reader, ...) error + func (r *Runtime) ExtractFrameAt(ctx context.Context, videoPath string, sec float64, w io.Writer) error + func (r *Runtime) ExtractThumbnail(ctx context.Context, videoPath string, w io.Writer) error + func (r *Runtime) MuxAV(ctx context.Context, out io.Writer, videoPath, voicePath, bgmPath string, ...) error + func (r *Runtime) Renderer() (Renderer, error) + func (r *Runtime) SetLauncherForTest(l browserLauncher) + func (r *Runtime) SoftSubtitles(ctx context.Context, videoPath, srtPath string, w io.Writer) error