BYTESIZE
{phaseLabel} {#if clip && (phase === "editing" || phase === "exporting" || phase === "done")} {clip.width}x{clip.height} · {clip.duration_secs.toFixed(2)}s {/if} {#if phase === "recording" || phase === "paused"} {elapsed.toFixed(1)}s {/if}
{#if phase === "idle"}

{#if useFrame} Drag the frame to position your capture region {:else} Captures the full primary monitor {/if}

{#if useFrame}
{#each PRESETS as [w, h, label]} {/each} {#if aspectLock !== null} {/if}
{/if}
Capture FPS
{:else if phase === "recording" || phase === "paused"}
{elapsed.toFixed(1)} seconds
{#if audioWarning} {:else if config?.capture.capture_audio}
audio
{/if}
{#if phase === "recording"} {:else} {/if}
{:else if phase === "editing" && clip}
{#each (["gif","webm","mp4"] as const) as f} {/each}
{#if (dragging && trimPreviewPath ? trimPreviewPath : previewPath)}
{#if previewLoading && !dragging}
rendering
{/if} {#if dragging}
original
{/if}
{:else}
preview
{/if}
{trimStart.toFixed(2)}s {trimmedDuration.toFixed(2)}s kept {trimEnd.toFixed(2)}s
startDrag('start', e)} onpointermove={onDrag} onpointerup={endDrag} onkeydown={(e) => { if (!clip) return const step = e.shiftKey ? 0.5 : 0.05 if (e.key === 'ArrowLeft') { trimStart = Math.max(0, trimStart - step); e.preventDefault() } else if (e.key === 'ArrowRight') { trimStart = Math.min(trimEnd - 0.1, trimStart + step); e.preventDefault() } }} >
startDrag('end', e)} onpointermove={onDrag} onpointerup={endDrag} onkeydown={(e) => { if (!clip) return const step = e.shiftKey ? 0.5 : 0.05 if (e.key === 'ArrowLeft') { trimEnd = Math.max(trimStart + 0.1, trimEnd - step); e.preventDefault() } else if (e.key === 'ArrowRight') { trimEnd = Math.min(clip.duration_secs, trimEnd + step); e.preventDefault() } }} >
{ const v = parseFloat((e.currentTarget as HTMLInputElement).value); trimStart = Math.min(v, trimEnd - 0.1) }} class="sr-only" aria-label="trim start seconds" /> { const v = parseFloat((e.currentTarget as HTMLInputElement).value); trimEnd = Math.max(v, trimStart + 0.1) }} class="sr-only" aria-label="trim end seconds" />
{#if format === "gif" && (thumbnails.length > 0 || loadingThumbs)}
Frames {#if deletedFrames.size > 0} {/if}
{#if loadingThumbs}

extracting...

{:else}
{#each thumbnails as path, idx} {/each}
{/if}
{/if}
Target size {targetMB.toFixed(1)} MB

{previewDims} · {fps}fps · {trimmedDuration.toFixed(1)}s

{#if format === "gif"}
Budget priority
{#each (["resolution", "framerate", "balanced"] as const) as m} {/each}

{gifBudgetMode === "resolution" ? "Keeps resolution high, may reduce FPS" : gifBudgetMode === "framerate" ? "Keeps FPS high, may reduce resolution" : "Balances resolution and FPS"}

Colors
{gifColors}

{gifColors <= 32 ? "Low - small file, posterized" : gifColors <= 128 ? "Medium - balanced" : "High - full color"}

Dithering
{#each (["floyd_steinberg", "bayer", "none"] as const) as d} {/each}

{gifDither === "floyd_steinberg" ? "Smooth gradients, slightly larger" : gifDither === "bayer" ? "Patterned, smaller file" : "No dithering, smallest file"}

{/if}
{#if format !== "gif"} {/if}
Crop
{#if cropEnabled}
{/if}
Output
pathOverridden = true} aria-label="output file path" />
{:else if phase === "exporting"}
{#if encodeProgress}
Pass {encodeProgress.pass}/{encodeProgress.total} {encodeProgress.pct.toFixed(0)}%
{:else}
Preparing
{/if}

ffmpeg is encoding your clip

{:else if phase === "done" && exportResult}

Exported

{formatBytes(exportResult.size_bytes)}

{exportResult.output_path}

{/if} {#if showDiscardConfirm}

Discard this recording?

{/if}
{#if errMsg} {/if}