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 format === "gif" && (thumbnails.length > 0 || loadingThumbs)} {/if}
pathOverridden = true} onBrowse={browseOutput} onExport={doExport} onDiscard={confirmDiscard} />
{:else if phase === "exporting"}
{#if encodeProgress}
{encodeUnit} {encodeProgress.pass}/{encodeProgress.total} {encodeOverall.toFixed(0)}%
3}> {#each Array(encodeProgress.total) as _, i}
{/each}
{:else}
Preparing
{/if}

ffmpeg is encoding your clip{format === "gif" ? " (retrying to hit target size)" : ""}

{:else if phase === "done" && exportResult}
{#if exportResult.met_target} {:else} {/if}

{exportResult.met_target ? "Exported" : "Exported (over budget)"}

{formatBytes(exportResult.size_bytes)}

{#if !exportResult.met_target}

target {formatBytes(exportResult.target_bytes)} - could not shrink further without wrecking quality

{/if}

{exportResult.output_path}

{/if} {#if showDiscardConfirm}

Discard this recording?

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