Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

feat(export): named destinations, detailed settings under Advanced

EtienneLescot80b4d1f659f3
diff --git a/src/components/ai-edition/ExportDialog.cancel.test.tsx b/src/components/ai-edition/ExportDialog.cancel.test.tsx
index 8d2403b9c..fe52beb90 100644
--- a/src/components/ai-edition/ExportDialog.cancel.test.tsx
+++ b/src/components/ai-edition/ExportDialog.cancel.test.tsx
@@ -98,7 +98,7 @@ async function start() {
<ExportDialog open onClose={onClose} document={DOC} />
</I18nProvider>,
);
- fireEvent.click(screen.getByRole("button", { name: "GIF" }));
+ fireEvent.click(screen.getByRole("button", { name: /README GIF/ }));
fireEvent.click(screen.getByRole("button", { name: "Export GIF" }));
await waitFor(() => expect(exportGifNative).toHaveBeenCalledOnce());
const id = vi.mocked(exportGifNative).mock.calls[0][4];
@@ -240,7 +240,7 @@ describe("GIF export cancellation", () => {
<ExportDialog open onClose={onClose} document={DOC} />
</I18nProvider>,
);
- fireEvent.click(screen.getByRole("button", { name: "GIF" }));
+ fireEvent.click(screen.getByRole("button", { name: /README GIF/ }));
fireEvent.click(screen.getByRole("button", { name: "Export GIF" }));
view.unmount();
await act(async () => choose({ success: true, path: "/tmp/late.gif" }));
diff --git a/src/components/ai-edition/ExportDialog.params.test.tsx b/src/components/ai-edition/ExportDialog.params.test.tsx
index 969657578..9f7040bef 100644
--- a/src/components/ai-edition/ExportDialog.params.test.tsx
+++ b/src/components/ai-edition/ExportDialog.params.test.tsx
@@ -23,7 +23,7 @@ vi.mock("@/native/sceneDescription", () => ({
import { I18nProvider } from "@/contexts/I18nContext";
import { type AxcutDocument, axcutSchemaVersion } from "@/lib/ai-edition/schema";
import { calculateMp4ExportSettings } from "@/lib/exporter/mp4ExportSettings";
-import { exportMultiNative } from "@/native";
+import { exportGifNative, exportMultiNative } from "@/native";
import { ExportDialog } from "./ExportDialog";
type ElectronAPI = Window["electronAPI"];
@@ -122,9 +122,72 @@ describe("ExportDialog MP4 params", () => {
const at60 = await exportMp4();
expect(at60).toMatchObject({ width: 1920, height: 1080, fps: 60, bitrate: expected(60) });
+ fireEvent.click(screen.getByRole("button", { name: "Advanced" }));
fireEvent.click(screen.getByRole("button", { name: "30" }));
const at30 = await exportMp4();
expect(at30).toMatchObject({ fps: 30, bitrate: expected(30) });
expect(at30?.bitrate).toBeLessThan(at60?.bitrate ?? 0);
});
});
+
+describe("ExportDialog destinations", () => {
+ beforeEach(() => {
+ window.electronAPI = {
+ pickExportSavePath: vi.fn(async () => ({ path: "/tmp/out.mp4" })),
+ onNativeExportProgress: vi.fn(() => noop),
+ } as unknown as ElectronAPI;
+ });
+
+ afterEach(() => {
+ cleanup();
+ vi.clearAllMocks();
+ });
+
+ const destination = (name: RegExp) => screen.getByRole("button", { name });
+
+ it("opens on Web / YouTube, with the detailed settings folded under Advanced", () => {
+ renderDialog();
+ expect(destination(/Web \/ YouTube/)).toHaveAttribute("aria-pressed", "true");
+ expect(destination(/Web \/ YouTube/)).toHaveTextContent("MP4 · 1920 × 1080 · 60 fps");
+ expect(screen.getByRole("button", { name: "Advanced" })).toHaveAttribute(
+ "aria-expanded",
+ "false",
+ );
+ expect(screen.queryByRole("button", { name: "H.265" })).toBeNull();
+ });
+
+ it("Social exports the same frame at half the frame rate, so half the bitrate", async () => {
+ renderDialog();
+ const web = await exportMp4();
+ fireEvent.click(destination(/Social/));
+ const social = await exportMp4();
+ // Same size: a destination never touches the project's format.
+ expect(social).toMatchObject({ width: web?.width, height: web?.height, fps: 30 });
+ expect(social?.bitrate).toBe((web?.bitrate ?? 0) / 2);
+ });
+
+ it("stops showing a destination as picked once an Advanced setting leaves it", () => {
+ renderDialog();
+ fireEvent.click(destination(/Social/));
+ expect(destination(/Social/)).toHaveAttribute("aria-pressed", "true");
+ fireEvent.click(screen.getByRole("button", { name: "Advanced" }));
+ fireEvent.click(screen.getByRole("button", { name: "H.265" }));
+ for (const d of [/Web \/ YouTube/, /Social/, /Studio/, /README GIF/]) {
+ expect(destination(d)).toHaveAttribute("aria-pressed", "false");
+ }
+ });
+
+ it("README GIF asks for a README-sized GIF", async () => {
+ renderDialog();
+ fireEvent.click(destination(/README GIF/));
+ expect(destination(/README GIF/)).toHaveTextContent("GIF · 852 × 480 · 15 fps");
+ fireEvent.click(screen.getByRole("button", { name: /export gif/i }));
+ await waitFor(() => expect(exportGifNative).toHaveBeenCalled());
+ expect(vi.mocked(exportGifNative).mock.calls[0][3]).toMatchObject({
+ width: 852,
+ height: 480,
+ fps: 15,
+ loopCount: 0,
+ });
+ });
+});
diff --git a/src/components/ai-edition/ExportDialog.tsx b/src/components/ai-edition/ExportDialog.tsx
index 5cda39edb..d342bf0f0 100644
--- a/src/components/ai-edition/ExportDialog.tsx
+++ b/src/components/ai-edition/ExportDialog.tsx
@@ -6,7 +6,7 @@
// Format/quality/GIF options live in the dialog's local state. The
// dialog uses the new shell's modal style.
-import { Download, FileVideo, FolderOpen, Loader2, Star } from "lucide-react";
+import { ChevronDown, Download, FileVideo, FolderOpen, Loader2, Star } from "lucide-react";
import { useEffect, useMemo, useRef, useState } from "react";
import { toast } from "sonner";
import { useScopedT } from "@/contexts/I18nContext";
@@ -146,6 +146,40 @@ const QUALITY_OPTIONS: Array<{
{ value: "source", labelKey: "exportQuality.high" },
];
+interface ExportChoice {
+ format: ExportFormat;
+ quality: ExportQuality;
+ fps: 24 | 30 | 60;
+ codec: ExportVideoCodec;
+ gifFrameRate: GifFrameRate;
+ gifSize: GifSizePreset;
+ gifLoop: boolean;
+}
+
+/** Named sets of the Advanced settings, nothing more: a destination sets controls the user can
+ * see and change there, and never the aspect ratio, which belongs to the project. It shows as
+ * picked while the settings still match it. */
+const DESTINATIONS: Array<{ labelKey: string; set: Partial<ExportChoice> }> = [
+ { labelKey: "destinationWeb", set: { format: "mp4", quality: "good", fps: 60, codec: "h264" } },
+ // Half the frames at the same bits per frame: half the file.
+ {
+ labelKey: "destinationSocial",
+ set: { format: "mp4", quality: "good", fps: 30, codec: "h264" },
+ },
+ {
+ labelKey: "destinationStudio",
+ set: { format: "mp4", quality: "source", fps: 60, codec: "h264" },
+ },
+ {
+ labelKey: "destinationReadmeGif",
+ set: { format: "gif", gifFrameRate: 15, gifSize: "small", gifLoop: true },
+ },
+];
+
+function matchesDestination(choice: ExportChoice, set: Partial<ExportChoice>) {
+ return (Object.keys(set) as Array<keyof ExportChoice>).every((key) => choice[key] === set[key]);
+}
+
interface ExportDialogProps {
open: boolean;
onClose: () => void;
@@ -165,6 +199,7 @@ export function ExportDialog({ open, onClose, document }: ExportDialogProps) {
const [gifFrameRate, setGifFrameRate] = useState<GifFrameRate>(15);
const [gifSize, setGifSize] = useState<GifSizePreset>("medium");
const [gifLoop, setGifLoop] = useState(true);
+ const [advancedOpen, setAdvancedOpen] = useState(false);
const [phase, setPhase] = useState<Phase>("idle");
const [progress, setProgress] = useState<ExportProgress | null>(null);
const [error, setError] = useState<string | null>(null);
@@ -489,6 +524,27 @@ export function ExportDialog({ open, onClose, document }: ExportDialogProps) {
const isBusy = phase === "rendering" || phase === "writing" || phase === "configuring";
const pct = progress?.percentage ?? 0;
const gifSizeLabel = GIF_SIZE_PRESETS[gifSize].label;
+ const choice: ExportChoice = { format, quality, fps, codec, gifFrameRate, gifSize, gifLoop };
+ const applyDestination = (set: Partial<ExportChoice>) => {
+ if (set.format) setFormat(set.format);
+ if (set.quality) setQuality(set.quality);
+ if (set.fps) setFps(set.fps);
+ if (set.codec) setCodec(set.codec);
+ if (set.gifFrameRate) setGifFrameRate(set.gifFrameRate);
+ if (set.gifSize) setGifSize(set.gifSize);
+ if (set.gifLoop !== undefined) setGifLoop(set.gifLoop);
+ };
+ /** What a destination produces, in the numbers the Advanced settings show. */
+ const destinationSummary = (set: Partial<ExportChoice>) => {
+ const dims = tierOutputDims(set.quality ?? quality);
+ if (set.format === "gif") {
+ const gif = gifOutputDims(set.gifSize ?? gifSize, dims);
+ const size = gif.width ? `${gif.width} × ${gif.height} · ` : "";
+ return `GIF · ${size}${set.gifFrameRate ?? gifFrameRate} fps`;
+ }
+ const size = dims ? `${dims.width} × ${dims.height} · ` : "";
+ return `MP4 · ${size}${set.fps ?? fps} fps`;
+ };
return (
<ModalShell
@@ -498,198 +554,252 @@ export function ExportDialog({ open, onClose, document }: ExportDialogProps) {
subtitle={t("exportDialog.subtitle")}
>
<div style={{ display: "flex", flexDirection: "column", gap: 18 }}>
- <div
- style={{
- display: "grid",
- gridTemplateColumns: "1fr 1fr",
- gap: 8,
- }}
- >
- <FormatToggle
- active={format === "mp4"}
- label={ts("exportFormat.mp4")}
- icon={<FileVideo size={18} />}
- onClick={() => setFormat("mp4")}
- disabled={isBusy}
- />
- <FormatToggle
- active={format === "gif"}
- label={ts("exportFormat.gif")}
- icon={<Download size={18} />}
- onClick={() => setFormat("gif")}
- disabled={isBusy}
- />
- </div>
-
- {format === "mp4" ? (
- <section>
- <div className={styles.groupLabel}>{t("exportDialog.quality")}</div>
- <div style={{ display: "grid", gridTemplateColumns: "repeat(3, 1fr)", gap: 8 }}>
- {QUALITY_OPTIONS.map((q) => (
- <button
- type="button"
- key={q.value}
- disabled={isBusy}
- onClick={() => setQuality(q.value)}
+ <section>
+ <div className={styles.groupLabel}>{t("exportDialog.destination")}</div>
+ <div style={{ display: "grid", gridTemplateColumns: "1fr 1fr", gap: 8 }}>
+ {DESTINATIONS.map((d) => (
+ <button
+ type="button"
+ key={d.labelKey}
+ disabled={isBusy}
+ aria-pressed={matchesDestination(choice, d.set)}
+ onClick={() => applyDestination(d.set)}
+ style={{
+ display: "flex",
+ flexDirection: "column",
+ alignItems: "flex-start",
+ gap: 4,
+ padding: "10px 12px",
+ ...choiceStyle(matchesDestination(choice, d.set)),
+ cursor: "pointer",
+ font: "500 13px/1 var(--font-body)",
+ }}
+ >
+ <span style={{ color: "var(--fg)", fontWeight: 600 }}>
+ {t(`exportDialog.${d.labelKey}`)}
+ </span>
+ <span
style={{
- display: "flex",
- flexDirection: "column",
- gap: 2,
- padding: "10px 12px",
- ...choiceStyle(quality === q.value),
- color: "var(--fg-2)",
- cursor: "pointer",
- font: "500 13px/1 var(--font-body)",
+ font: "500 12px var(--font-body)",
+ fontVariantNumeric: "tabular-nums",
+ color: "var(--muted)",
}}
>
- <span style={{ color: "var(--fg)", fontWeight: 600 }}>{ts(q.labelKey)}</span>
- {(() => {
- const dims = tierOutputDims(q.value);
- if (!dims) return null;
- // Downscale badge removed everywhere — restated what picking a lower
- // tier already means, not actionable. The upscale badge asks whether
- // the clip has to be STRETCHED to fill this frame (`wouldUpscale`),
- // which is a contain-fit question: a short-side compare read the
- // letterbox rows a non-16:9 source gets in a 16:9 project as if they
- // were stretched pixels, and flagged "1080p" on the very frame
- // "Source" produced unflagged. No "Source" special case any more —
- // its frame is the source's long side at the project ratio, so its
- // contain scale is never above 1 and the general test covers it.
- const isUpscale = smallestSource !== null && wouldUpscale(dims, smallestSource);
- return (
- <span
- style={{
- font: "500 12px var(--font-body)",
- fontVariantNumeric: "tabular-nums",
- color: isUpscale ? "var(--warn)" : "var(--muted)",
- }}
- >
- {dims.width} × {dims.height}
- {isUpscale ? ` · ${t("exportDialog.qualityUpscaleWarning")}` : ""}
- </span>
- );
- })()}
- </button>
- ))}
- </div>
+ {destinationSummary(d.set)}
+ </span>
+ </button>
+ ))}
+ </div>
+ </section>
+
+ <button
+ type="button"
+ className={styles.bgDisclosure}
+ style={{ margin: 0, alignSelf: "flex-start" }}
+ aria-expanded={advancedOpen}
+ onClick={() => setAdvancedOpen((open) => !open)}
+ >
+ {t("exportDialog.advanced")}
+ <ChevronDown size={14} />
+ </button>
+
+ {advancedOpen ? (
+ <>
<div
style={{
display: "grid",
gridTemplateColumns: "1fr 1fr",
- gap: 12,
- marginTop: 12,
+ gap: 8,
}}
>
- <div>
- <div className={styles.groupLabel}>{t("exportDialog.frameRate")}</div>
- <div style={{ display: "grid", gridTemplateColumns: "repeat(3, 1fr)", gap: 6 }}>
- {([24, 30, 60] as const).map((r) => (
+ <FormatToggle
+ active={format === "mp4"}
+ label={ts("exportFormat.mp4")}
+ icon={<FileVideo size={18} />}
+ onClick={() => setFormat("mp4")}
+ disabled={isBusy}
+ />
+ <FormatToggle
+ active={format === "gif"}
+ label={ts("exportFormat.gif")}
+ icon={<Download size={18} />}
+ onClick={() => setFormat("gif")}
+ disabled={isBusy}
+ />
+ </div>
+
+ {format === "mp4" ? (
+ <section>
+ <div className={styles.groupLabel}>{t("exportDialog.quality")}</div>
+ <div style={{ display: "grid", gridTemplateColumns: "repeat(3, 1fr)", gap: 8 }}>
+ {QUALITY_OPTIONS.map((q) => (
<button
type="button"
- key={r}
+ key={q.value}
disabled={isBusy}
- onClick={() => setFps(r)}
- style={segStyle(fps === r)}
+ onClick={() => setQuality(q.value)}
+ style={{
+ display: "flex",
+ flexDirection: "column",
+ gap: 2,
+ padding: "10px 12px",
+ ...choiceStyle(quality === q.value),
+ color: "var(--fg-2)",
+ cursor: "pointer",
+ font: "500 13px/1 var(--font-body)",
+ }}
>
- {r}
+ <span style={{ color: "var(--fg)", fontWeight: 600 }}>{ts(q.labelKey)}</span>
+ {(() => {
+ const dims = tierOutputDims(q.value);
+ if (!dims) return null;
+ // Downscale badge removed everywhere — restated what picking a lower
+ // tier already means, not actionable. The upscale badge asks whether
+ // the clip has to be STRETCHED to fill this frame (`wouldUpscale`),
+ // which is a contain-fit question: a short-side compare read the
+ // letterbox rows a non-16:9 source gets in a 16:9 project as if they
+ // were stretched pixels, and flagged "1080p" on the very frame
+ // "Source" produced unflagged. No "Source" special case any more —
+ // its frame is the source's long side at the project ratio, so its
+ // contain scale is never above 1 and the general test covers it.
+ const isUpscale =
+ smallestSource !== null && wouldUpscale(dims, smallestSource);
+ return (
+ <span
+ style={{
+ font: "500 12px var(--font-body)",
+ fontVariantNumeric: "tabular-nums",
+ color: isUpscale ? "var(--warn)" : "var(--muted)",
+ }}
+ >
+ {dims.width} × {dims.height}
+ {isUpscale ? ` · ${t("exportDialog.qualityUpscaleWarning")}` : ""}
+ </span>
+ );
+ })()}
</button>
))}
</div>
- </div>
- <div>
- <div className={styles.groupLabel}>{t("exportDialog.codec")}</div>
<div
style={{
display: "grid",
- gridTemplateColumns: "repeat(2, 1fr)",
- gap: 6,
+ gridTemplateColumns: "1fr 1fr",
+ gap: 12,
+ marginTop: 12,
}}
>
- {(
- [
- ["h264", "H.264"],
- ["h265", "H.265"],
- // VP9 has no AMF hardware encoder on this GPU — the native pipeline
- // (the only MP4 export path now) rejects it outright (tested: a
- // software libvpx-vp9 fallback worked but was too slow to ship).
- // Hidden here rather than left selectable-then-erroring.
- ] as Array<[ExportVideoCodec, string]>
- ).map(([value, label]) => (
- <button
- type="button"
- key={value}
- disabled={isBusy}
- onClick={() => setCodec(value)}
- style={segStyle(codec === value)}
- title={
- value === "h264"
- ? t("exportDialog.codecBestCompatibility")
- : t("exportDialog.codecMaySupportVary")
- }
+ <div>
+ <div className={styles.groupLabel}>{t("exportDialog.frameRate")}</div>
+ <div style={{ display: "grid", gridTemplateColumns: "repeat(3, 1fr)", gap: 6 }}>
+ {([24, 30, 60] as const).map((r) => (
+ <button
+ type="button"
+ key={r}
+ disabled={isBusy}
+ onClick={() => setFps(r)}
+ style={segStyle(fps === r)}
+ >
+ {r}
+ </button>
+ ))}
+ </div>
+ </div>
+ <div>
+ <div className={styles.groupLabel}>{t("exportDialog.codec")}</div>
+ <div
+ style={{
+ display: "grid",
+ gridTemplateColumns: "repeat(2, 1fr)",
+ gap: 6,
+ }}
>
- {label}
- </button>
- ))}
+ {(
+ [
+ ["h264", "H.264"],
+ ["h265", "H.265"],
+ // VP9 has no AMF hardware encoder on this GPU — the native pipeline
+ // (the only MP4 export path now) rejects it outright (tested: a
+ // software libvpx-vp9 fallback worked but was too slow to ship).
+ // Hidden here rather than left selectable-then-erroring.
+ ] as Array<[ExportVideoCodec, string]>
+ ).map(([value, label]) => (
+ <button
+ type="button"
+ key={value}
+ disabled={isBusy}
+ onClick={() => setCodec(value)}
+ style={segStyle(codec === value)}
+ title={
+ value === "h264"
+ ? t("exportDialog.codecBestCompatibility")
+ : t("exportDialog.codecMaySupportVary")
+ }
+ >
+ {label}
+ </button>
+ ))}
+ </div>
+ </div>
</div>
- </div>
- </div>
- </section>
- ) : (
- <section style={{ display: "flex", flexDirection: "column", gap: 12 }}>
- <div>
- <div className={styles.groupLabel}>{t("exportDialog.frameRate")}</div>
- <div style={{ display: "grid", gridTemplateColumns: "repeat(4, 1fr)", gap: 6 }}>
- {GIF_FRAME_RATES.map((r) => (
- <button
- type="button"
- key={r.value}
- disabled={isBusy}
- onClick={() => setGifFrameRate(r.value)}
- style={segStyle(gifFrameRate === r.value)}
- >
- {r.value} FPS
- </button>
- ))}
- </div>
- </div>
- <div>
- <div className={styles.groupLabel}>{t("exportDialog.size")}</div>
- <div style={{ display: "grid", gridTemplateColumns: "repeat(3, 1fr)", gap: 6 }}>
- {(Object.keys(GIF_SIZE_PRESETS) as GifSizePreset[]).map((s) => (
+ </section>
+ ) : (
+ <section style={{ display: "flex", flexDirection: "column", gap: 12 }}>
+ <div>
+ <div className={styles.groupLabel}>{t("exportDialog.frameRate")}</div>
+ <div style={{ display: "grid", gridTemplateColumns: "repeat(4, 1fr)", gap: 6 }}>
+ {GIF_FRAME_RATES.map((r) => (
+ <button
+ type="button"
+ key={r.value}
+ disabled={isBusy}
+ onClick={() => setGifFrameRate(r.value)}
+ style={segStyle(gifFrameRate === r.value)}
+ >
+ {r.value} FPS
+ </button>
+ ))}
+ </div>
+ </div>
+ <div>
+ <div className={styles.groupLabel}>{t("exportDialog.size")}</div>
+ <div style={{ display: "grid", gridTemplateColumns: "repeat(2, 1fr)", gap: 6 }}>
+ {(Object.keys(GIF_SIZE_PRESETS) as GifSizePreset[]).map((s) => (
+ <button
+ type="button"
+ key={s}
+ disabled={isBusy}
+ onClick={() => setGifSize(s)}
+ style={segStyle(gifSize === s)}
+ >
+ {GIF_SIZE_PRESETS[s].label}
+ </button>
+ ))}
+ </div>
+ </div>
+ <div className={styles.paneRow} style={{ margin: 0 }}>
+ <span className={styles.label}>{t("exportDialog.loopGif")}</span>
<button
type="button"
- key={s}
+ className={`${styles.toggle} ${gifLoop ? styles.isOn : ""}`}
+ aria-pressed={gifLoop}
disabled={isBusy}
- onClick={() => setGifSize(s)}
- style={segStyle(gifSize === s)}
- >
- {GIF_SIZE_PRESETS[s].label}
- </button>
- ))}
- </div>
- </div>
- <div className={styles.paneRow} style={{ margin: 0 }}>
- <span className={styles.label}>{t("exportDialog.loopGif")}</span>
- <button
- type="button"
- className={`${styles.toggle} ${gifLoop ? styles.isOn : ""}`}
- aria-pressed={gifLoop}
- disabled={isBusy}
- onClick={() => setGifLoop((v) => !v)}
- />
- </div>
- <div
- style={{
- font: "500 12px/1.4 var(--font-body)",
- fontVariantNumeric: "tabular-nums",
- color: "var(--muted)",
- }}
- >
- {gifFrameRate} FPS · {gifSizeLabel} ·{" "}
- {gifLoop ? t("exportDialog.loopOn") : t("exportDialog.loopOff")}
- </div>
- </section>
- )}
+ onClick={() => setGifLoop((v) => !v)}
+ />
+ </div>
+ <div
+ style={{
+ font: "500 12px/1.4 var(--font-body)",
+ fontVariantNumeric: "tabular-nums",
+ color: "var(--muted)",
+ }}
+ >
+ {gifFrameRate} FPS · {gifSizeLabel} ·{" "}
+ {gifLoop ? t("exportDialog.loopOn") : t("exportDialog.loopOff")}
+ </div>
+ </section>
+ )}
+ </>
+ ) : null}
<ProgressBlock
phase={phase}
diff --git a/src/i18n/locales/ar/editor.json b/src/i18n/locales/ar/editor.json
index 516d37047..026df7e56 100644
--- a/src/i18n/locales/ar/editor.json
+++ b/src/i18n/locales/ar/editor.json
@@ -166,6 +166,12 @@
"noSpeechDetected": "لم يتم اكتشاف كلام"
},
"exportDialog": {
+ "destination": "الوجهة",
+ "destinationWeb": "الويب / YouTube",
+ "destinationSocial": "وسائل التواصل",
+ "destinationStudio": "استوديو",
+ "destinationReadmeGif": "GIF لملف README",
+ "advanced": "متقدّم",
"title": "تصدير",
"subtitle": "عرض المخطط الزمني إلى ملف",
"addVideoBeforeExporting": "أضف فيديو قبل التصدير.",
diff --git a/src/i18n/locales/cs/editor.json b/src/i18n/locales/cs/editor.json
index 3ea2fd4f8..b8ad8c8f5 100644
--- a/src/i18n/locales/cs/editor.json
+++ b/src/i18n/locales/cs/editor.json
@@ -166,6 +166,12 @@
"noSpeechDetected": "Žádná řeč nezjištěna"
},
"exportDialog": {
+ "destination": "Cíl",
+ "destinationWeb": "Web / YouTube",
+ "destinationSocial": "Sociální sítě",
+ "destinationStudio": "Studio",
+ "destinationReadmeGif": "GIF do README",
+ "advanced": "Pokročilé",
"title": "Export",
"subtitle": "Vykreslení časové osy do souboru",
"addVideoBeforeExporting": "Před exportem přidejte video.",
diff --git a/src/i18n/locales/de/editor.json b/src/i18n/locales/de/editor.json
index a738f5c44..bcdfac02e 100644
--- a/src/i18n/locales/de/editor.json
+++ b/src/i18n/locales/de/editor.json
@@ -166,6 +166,12 @@
"noSpeechDetected": "Keine Sprache erkannt"
},
"exportDialog": {
+ "destination": "Ziel",
+ "destinationWeb": "Web / YouTube",
+ "destinationSocial": "Social Media",
+ "destinationStudio": "Studio",
+ "destinationReadmeGif": "README-GIF",
+ "advanced": "Erweitert",
"title": "Export",
"subtitle": "Die Timeline in eine Datei rendern",
"addVideoBeforeExporting": "Füge vor dem Export ein Video hinzu.",
diff --git a/src/i18n/locales/en/editor.json b/src/i18n/locales/en/editor.json
index fb53f2315..35131ca2e 100644
--- a/src/i18n/locales/en/editor.json
+++ b/src/i18n/locales/en/editor.json
@@ -166,6 +166,12 @@
"noSpeechDetected": "No speech detected"
},
"exportDialog": {
+ "destination": "Destination",
+ "destinationWeb": "Web / YouTube",
+ "destinationSocial": "Social",
+ "destinationStudio": "Studio",
+ "destinationReadmeGif": "README GIF",
+ "advanced": "Advanced",
"title": "Export",
"subtitle": "Save your edit as a video or a GIF",
"addVideoBeforeExporting": "Add a video before exporting.",
diff --git a/src/i18n/locales/es/editor.json b/src/i18n/locales/es/editor.json
index d5fdb14ac..b53ddbfcb 100644
--- a/src/i18n/locales/es/editor.json
+++ b/src/i18n/locales/es/editor.json
@@ -166,6 +166,12 @@
"noSpeechDetected": "No se detectó voz"
},
"exportDialog": {
+ "destination": "Destino",
+ "destinationWeb": "Web / YouTube",
+ "destinationSocial": "Redes sociales",
+ "destinationStudio": "Estudio",
+ "destinationReadmeGif": "GIF para README",
+ "advanced": "Avanzado",
"title": "Exportar",
"subtitle": "Renderizar la línea de tiempo a un archivo",
"addVideoBeforeExporting": "Añade un vídeo antes de exportar.",
diff --git a/src/i18n/locales/fr/editor.json b/src/i18n/locales/fr/editor.json
index fd4710530..57b1aaa12 100644
--- a/src/i18n/locales/fr/editor.json
+++ b/src/i18n/locales/fr/editor.json
@@ -166,6 +166,12 @@
"noSpeechDetected": "Aucune parole détectée"
},
"exportDialog": {
+ "destination": "Destination",
+ "destinationWeb": "Web / YouTube",
+ "destinationSocial": "Réseaux sociaux",
+ "destinationStudio": "Studio",
+ "destinationReadmeGif": "GIF pour README",
+ "advanced": "Avancé",
"title": "Exporter",
"subtitle": "Rendre la timeline dans un fichier",
"addVideoBeforeExporting": "Ajoutez une vidéo avant d'exporter.",
diff --git a/src/i18n/locales/it/editor.json b/src/i18n/locales/it/editor.json
index 9effc0507..4162eb89a 100644
--- a/src/i18n/locales/it/editor.json
+++ b/src/i18n/locales/it/editor.json
@@ -166,6 +166,12 @@
"noSpeechDetected": "Nessun parlato rilevato"
},
"exportDialog": {
+ "destination": "Destinazione",
+ "destinationWeb": "Web / YouTube",
+ "destinationSocial": "Social",
+ "destinationStudio": "Studio",
+ "destinationReadmeGif": "GIF per README",
+ "advanced": "Avanzate",
"title": "Esporta",
"subtitle": "Esegui il rendering della timeline in un file",
"addVideoBeforeExporting": "Aggiungi un video prima di esportare.",
diff --git a/src/i18n/locales/ja-JP/editor.json b/src/i18n/locales/ja-JP/editor.json
index d2e5d79ea..7a7bb7190 100644
--- a/src/i18n/locales/ja-JP/editor.json
+++ b/src/i18n/locales/ja-JP/editor.json
@@ -166,6 +166,12 @@
"noSpeechDetected": "音声が検出されませんでした"
},
"exportDialog": {
+ "destination": "書き出し先",
+ "destinationWeb": "Web / YouTube",
+ "destinationSocial": "SNS",
+ "destinationStudio": "スタジオ",
+ "destinationReadmeGif": "README 用 GIF",
+ "advanced": "詳細設定",
"title": "エクスポート",
"subtitle": "タイムラインをファイルに書き出します",
"addVideoBeforeExporting": "エクスポートする前に動画を追加してください。",
diff --git a/src/i18n/locales/ko-KR/editor.json b/src/i18n/locales/ko-KR/editor.json
index 2f4cbcf9a..8fd037576 100644
--- a/src/i18n/locales/ko-KR/editor.json
+++ b/src/i18n/locales/ko-KR/editor.json
@@ -166,6 +166,12 @@
"noSpeechDetected": "음성이 감지되지 않음"
},
"exportDialog": {
+ "destination": "내보낼 곳",
+ "destinationWeb": "웹 / YouTube",
+ "destinationSocial": "소셜 미디어",
+ "destinationStudio": "스튜디오",
+ "destinationReadmeGif": "README용 GIF",
+ "advanced": "고급",
"title": "내보내기",
"subtitle": "타임라인을 파일로 렌더링합니다",
"addVideoBeforeExporting": "내보내기 전에 동영상을 추가하세요.",
diff --git a/src/i18n/locales/pt-BR/editor.json b/src/i18n/locales/pt-BR/editor.json
index 059b4e351..a266a87e8 100644
--- a/src/i18n/locales/pt-BR/editor.json
+++ b/src/i18n/locales/pt-BR/editor.json
@@ -166,6 +166,12 @@
"noSpeechDetected": "Nenhuma fala detectada"
},
"exportDialog": {
+ "destination": "Destino",
+ "destinationWeb": "Web / YouTube",
+ "destinationSocial": "Redes sociais",
+ "destinationStudio": "Estúdio",
+ "destinationReadmeGif": "GIF para README",
+ "advanced": "Avançado",
"title": "Exportar",
"subtitle": "Renderizar a linha do tempo para um arquivo",
"addVideoBeforeExporting": "Adicione um vídeo antes de exportar.",
diff --git a/src/i18n/locales/ru/editor.json b/src/i18n/locales/ru/editor.json
index 577b1dfd1..0f13fa09c 100644
--- a/src/i18n/locales/ru/editor.json
+++ b/src/i18n/locales/ru/editor.json
@@ -166,6 +166,12 @@
"noSpeechDetected": "Речь не обнаружена"
},
"exportDialog": {
+ "destination": "Назначение",
+ "destinationWeb": "Веб / YouTube",
+ "destinationSocial": "Соцсети",
+ "destinationStudio": "Студия",
+ "destinationReadmeGif": "GIF для README",
+ "advanced": "Дополнительно",
"title": "Экспорт",
"subtitle": "Рендеринг таймлайна в файл",
"addVideoBeforeExporting": "Добавьте видео перед экспортом.",
diff --git a/src/i18n/locales/tr/editor.json b/src/i18n/locales/tr/editor.json
index 6bff20516..06bbbd8f9 100644
--- a/src/i18n/locales/tr/editor.json
+++ b/src/i18n/locales/tr/editor.json
@@ -166,6 +166,12 @@
"noSpeechDetected": "Konuşma algılanmadı"
},
"exportDialog": {
+ "destination": "Hedef",
+ "destinationWeb": "Web / YouTube",
+ "destinationSocial": "Sosyal medya",
+ "destinationStudio": "Stüdyo",
+ "destinationReadmeGif": "README GIF'i",
+ "advanced": "Gelişmiş",
"title": "Dışa Aktar",
"subtitle": "Zaman çizelgesini bir dosyaya işleyin",
"addVideoBeforeExporting": "Dışa aktarmadan önce bir video ekleyin.",
diff --git a/src/i18n/locales/vi/editor.json b/src/i18n/locales/vi/editor.json
index dd37d0dff..133fbf183 100644
--- a/src/i18n/locales/vi/editor.json
+++ b/src/i18n/locales/vi/editor.json
@@ -166,6 +166,12 @@
"noSpeechDetected": "Không phát hiện giọng nói"
},
"exportDialog": {
+ "destination": "Đích đến",
+ "destinationWeb": "Web / YouTube",
+ "destinationSocial": "Mạng xã hội",
+ "destinationStudio": "Studio",
+ "destinationReadmeGif": "GIF cho README",
+ "advanced": "Nâng cao",
"title": "Xuất",
"subtitle": "Kết xuất dòng thời gian thành tệp",
"addVideoBeforeExporting": "Thêm video trước khi xuất.",
diff --git a/src/i18n/locales/zh-CN/editor.json b/src/i18n/locales/zh-CN/editor.json
index c845e97c2..64ce10853 100644
--- a/src/i18n/locales/zh-CN/editor.json
+++ b/src/i18n/locales/zh-CN/editor.json
@@ -166,6 +166,12 @@
"noSpeechDetected": "未检测到语音"
},
"exportDialog": {
+ "destination": "导出用途",
+ "destinationWeb": "网页 / YouTube",
+ "destinationSocial": "社交媒体",
+ "destinationStudio": "工作室",
+ "destinationReadmeGif": "README GIF",
+ "advanced": "高级",
"title": "导出",
"subtitle": "将时间轴渲染为文件",
"addVideoBeforeExporting": "导出前请先添加视频。",
diff --git a/src/i18n/locales/zh-TW/editor.json b/src/i18n/locales/zh-TW/editor.json
index 3d7d7eb25..39ae0cc51 100644
--- a/src/i18n/locales/zh-TW/editor.json
+++ b/src/i18n/locales/zh-TW/editor.json
@@ -166,6 +166,12 @@
"noSpeechDetected": "未偵測到語音"
},
"exportDialog": {
+ "destination": "匯出用途",
+ "destinationWeb": "網頁 / YouTube",
+ "destinationSocial": "社群媒體",
+ "destinationStudio": "工作室",
+ "destinationReadmeGif": "README GIF",
+ "advanced": "進階",
"title": "匯出",
"subtitle": "將時間軸轉譯為檔案",
"addVideoBeforeExporting": "匯出前請先新增影片。",
diff --git a/src/lib/exporter/types.ts b/src/lib/exporter/types.ts
index 78a5731de..c826f6cbf 100644
--- a/src/lib/exporter/types.ts
+++ b/src/lib/exporter/types.ts
@@ -41,7 +41,7 @@ export type ExportVideoCodec = "h264" | "h265" | "vp9";
export type GifFrameRate = 15 | 20 | 25 | 30;
-export type GifSizePreset = "medium" | "large" | "original";
+export type GifSizePreset = "small" | "medium" | "large" | "original";
export interface GifExportConfig {
frameRate: GifFrameRate;
@@ -60,6 +60,8 @@ export interface ExportSettings {
}
export const GIF_SIZE_PRESETS: Record<GifSizePreset, { maxHeight: number; label: string }> = {
+ // A README column is about 880 px wide: 854x480 fills it, and weighs a third of 720p.
+ small: { maxHeight: 480, label: "Small (480p)" },
medium: { maxHeight: 720, label: "Medium (720p)" },
large: { maxHeight: 1080, label: "Large (1080p)" },
original: { maxHeight: Infinity, label: "Original" },
diff --git a/technical-documentation/architecture/editor-shell.md b/technical-documentation/architecture/editor-shell.md
index 97f9c2097..bd9305703 100644
--- a/technical-documentation/architecture/editor-shell.md
+++ b/technical-documentation/architecture/editor-shell.md
@@ -60,7 +60,7 @@ of those are local React state, with the document itself read through
| **Floating inspector** | `src/components/ai-edition/v4/FloatingInspector.tsx` | Floating facet rail over the stage; the open panel either shows the `FacetBody` for the current facet (`effects` / `layout` / `audio` / `cursor` / `captions` / `transcript`) or, when a region is selected, a `SelectionPane` (`:434`) that edits the selected pill by id. The "pencil" rail button opens `EditClipModal` for crop + trim. |
| **Left chat column** (`ChatStripPanel`) | `src/components/ai-edition/LeftPanel.tsx` | Only mounted when `mode === "edit"` and `chatOpen` is true (`NewEditorShell.tsx` `:1191-1195`). Sends user messages to the LLM via IPC. Resize handle is `v4.chatResizeHandle`; width persists in `localStorage` as `os-editor-chat-width`. |
| **Modals** | `src/components/ai-edition/Modals.tsx` | `OpenProjectModal`, `NewProjectModal`, `EditClipModal` (per-clip crop + in/out), `UnsavedChangesModal`. Mounted at the shell level (`:1333-1385`) so every trigger site reuses the same instance. |
-| **Export dialog** | `src/components/ai-edition/ExportDialog.tsx` | Format / quality / frame-rate / codec / size; calls `exportAxcutDocument` (GIF path, WebCodecs) or `exportMultiNative` (MP4 path, native D3D compositor). The MP4 path is the one that goes through `src/lib/ai-edition/exporter/documentExporter.ts`'s `projectRegionsToSourceTime` and the multi-clip native bridge. |
+| **Export dialog** | `src/components/ai-edition/ExportDialog.tsx` | Named destinations (Web / YouTube, Social, Studio, README GIF) that set format / quality / frame-rate / codec / size together, all of which stay under **Advanced**; calls `exportAxcutDocument` (GIF path, WebCodecs) or `exportMultiNative` (MP4 path, native D3D compositor). The MP4 path is the one that goes through `src/lib/ai-edition/exporter/documentExporter.ts`'s `projectRegionsToSourceTime` and the multi-clip native bridge. |
| **Captions pane** | `src/components/ai-edition/CaptionsPane.tsx` | Mounted as a facet body from `FloatingInspector.tsx` (`:1062`). Controls caption appearance + translations; the cues themselves are a derived view over `document.transcripts` (see [`src/lib/ai-edition/captions/`](../../src/lib/ai-edition/captions/)). |
## Modes and facets
diff --git a/tests/e2e/gif-export.spec.ts b/tests/e2e/gif-export.spec.ts
index 30f4b0a02..712b8c8ef 100644
--- a/tests/e2e/gif-export.spec.ts
+++ b/tests/e2e/gif-export.spec.ts
@@ -163,6 +163,8 @@ async function exportFromLoadedVideo(
const dialog = editorWindow.getByRole("dialog");
await expect(dialog.getByRole("heading", { name: "Export" })).toBeVisible();
+ // The format toggle sits under Advanced, behind the named destinations.
+ await dialog.getByRole("button", { name: "Advanced", exact: true }).click();
await dialog
.getByRole("button", { name: format === "gif" ? "GIF" : "MP4", exact: true })
.click();
diff --git a/website/docs/export.md b/website/docs/export.md
index 227ad0d28..1ebf03033 100644
--- a/website/docs/export.md
+++ b/website/docs/export.md
@@ -17,10 +17,12 @@ keywords:
Click **Export** in the top bar to open the export dialog.
+Pick a **destination** first: **Web / YouTube** (MP4, 1080p, 60 fps), **Social** (the same at 30 fps, half the file size), **Studio** (MP4 at the recording's own resolution, 60 fps) or **README GIF** (a 480p GIF at 15 fps). A destination never changes the project's aspect ratio. Everything below sits under **Advanced**.
+
## Formats
- **MP4** — quality **720p**, **1080p**, or **Source**; frame rate 24 / 30 / 60 fps; codec **H.264** (the default, and the one more players accept) or **H.265**.
-- **GIF** — frame rate 15 / 20 / 25 / 30 fps, size Medium / Large / Original, and a **Loop** toggle.
+- **GIF** — frame rate 15 / 20 / 25 / 30 fps, size Small / Medium / Large / Original, and a **Loop** toggle.
:::note
VP9 was removed. There's no hardware VP9 encoder on the GPUs the native pipeline targets, and the software fallback was far too slow to ship as an option that looks like the others.
diff --git a/website/i18n/de/docusaurus-plugin-content-docs/current/export.md b/website/i18n/de/docusaurus-plugin-content-docs/current/export.md
index aa5d7870e..c632f3d88 100644
--- a/website/i18n/de/docusaurus-plugin-content-docs/current/export.md
+++ b/website/i18n/de/docusaurus-plugin-content-docs/current/export.md
@@ -17,10 +17,12 @@ keywords:
Klicke in der oberen Leiste auf **Export**, um den Exportdialog zu öffnen.
+Wähle zuerst ein **Ziel**: **Web / YouTube** (MP4, 1080p, 60 fps), **Social Media** (dasselbe mit 30 fps, halb so große Datei), **Studio** (MP4 in der Auflösung der Aufnahme, 60 fps) oder **README-GIF** (ein 480p-GIF mit 15 fps). Ein Ziel ändert nie das Seitenverhältnis des Projekts. Alles Folgende liegt unter **Erweitert**.
+
## Formate {#formats}
- **MP4**: Qualität **720p**, **1080p** oder **Source**; Bildrate 24 / 30 / 60 fps; Codec **H.264** (Standard und von mehr Playern unterstützt) oder **H.265**.
-- **GIF**: Bildrate 15 / 20 / 25 / 30 fps, Größe Medium / Large / Original und ein Schalter **Loop**.
+- **GIF**: Bildrate 15 / 20 / 25 / 30 fps, Größe Small / Medium / Large / Original und ein Schalter **Loop**.
:::note
VP9 wurde entfernt. Die GPUs, auf die die native Pipeline zielt, haben keinen VP9-Hardware-Encoder, und der Software-Fallback war viel zu langsam, um ihn als Option anzubieten, die wie die anderen aussieht.
diff --git a/website/i18n/es/docusaurus-plugin-content-docs/current/export.md b/website/i18n/es/docusaurus-plugin-content-docs/current/export.md
index 500085f17..8fa316576 100644
--- a/website/i18n/es/docusaurus-plugin-content-docs/current/export.md
+++ b/website/i18n/es/docusaurus-plugin-content-docs/current/export.md
@@ -17,10 +17,12 @@ keywords:
Haz clic en **Exportar** en la barra superior para abrir el cuadro de diálogo de exportación.
+Elige primero un **destino**: **Web / YouTube** (MP4, 1080p, 60 fps), **Redes sociales** (lo mismo a 30 fps, un archivo de la mitad de tamaño), **Estudio** (MP4 a la resolución de la grabación, 60 fps) o **GIF para README** (un GIF de 480p a 15 fps). Un destino nunca cambia la relación de aspecto del proyecto. Todo lo que sigue está en **Avanzado**.
+
## Formatos {#formats}
- **MP4**: calidad **720p**, **1080p** o **Source**; 24 / 30 / 60 fotogramas por segundo; códec **H.264** (el predeterminado, y el que admiten más reproductores) o **H.265**.
-- **GIF**: 15 / 20 / 25 / 30 fotogramas por segundo, tamaño Medium / Large / Original y un interruptor **Bucle de GIF**.
+- **GIF**: 15 / 20 / 25 / 30 fotogramas por segundo, tamaño Small / Medium / Large / Original y un interruptor **Bucle de GIF**.
:::note
Se eliminó VP9. Las GPU a las que apunta el flujo nativo no tienen codificador VP9 por hardware, y el respaldo por software era excesivamente lento para ofrecerlo como una opción con el mismo aspecto que las demás.
diff --git a/website/i18n/fr/docusaurus-plugin-content-docs/current/export.md b/website/i18n/fr/docusaurus-plugin-content-docs/current/export.md
index a8c0116a0..bf21290ed 100644
--- a/website/i18n/fr/docusaurus-plugin-content-docs/current/export.md
+++ b/website/i18n/fr/docusaurus-plugin-content-docs/current/export.md
@@ -17,10 +17,12 @@ keywords:
Cliquez sur **Exporter** dans la barre supérieure pour ouvrir la fenêtre d'export.
+Choisissez d'abord une **destination** : **Web / YouTube** (MP4, 1080p, 60 fps), **Réseaux sociaux** (la même chose à 30 fps, un fichier deux fois plus léger), **Studio** (MP4 à la résolution de l'enregistrement, 60 fps) ou **GIF pour README** (un GIF 480p à 15 fps). Une destination ne change jamais le ratio du projet. Tout ce qui suit se trouve sous **Avancé**.
+
## Formats {#formats}
- **MP4** : qualité **720p**, **1080p** ou **Source** ; fréquence d'images 24 / 30 / 60 fps ; codec **H.264** (celui par défaut, et celui qu'acceptent le plus de lecteurs) ou **H.265**.
-- **GIF** : fréquence d'images 15 / 20 / 25 / 30 fps, taille Medium / Large / Original, et un interrupteur **Boucle**.
+- **GIF** : fréquence d'images 15 / 20 / 25 / 30 fps, taille Small / Medium / Large / Original, et un interrupteur **Boucle**.
:::note
VP9 a été retiré. Il n'existe aucun encodeur VP9 matériel sur les GPU que vise le pipeline natif, et le repli logiciel était bien trop lent pour être proposé comme une option en apparence équivalente aux autres.
diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/export.md b/website/i18n/ja/docusaurus-plugin-content-docs/current/export.md
index d41c999fc..b553f244b 100644
--- a/website/i18n/ja/docusaurus-plugin-content-docs/current/export.md
+++ b/website/i18n/ja/docusaurus-plugin-content-docs/current/export.md
@@ -17,10 +17,12 @@ keywords:
トップバーの**エクスポート**をクリックすると、エクスポートのダイアログが開きます。
+まず**書き出し先**を選びます。**Web / YouTube**(MP4、1080p、60 fps)、**SNS**(同じ内容を 30 fps で。ファイルサイズは半分)、**スタジオ**(録画そのままの解像度の MP4、60 fps)、**README 用 GIF**(480p、15 fps の GIF)。書き出し先を選んでもプロジェクトのアスペクト比は変わりません。以下の設定はすべて**詳細設定**の中にあります。
+
## 形式 {#formats}
- **MP4**:画質は **720p**、**1080p**、**Source**。フレームレートは 24 / 30 / 60 fps。コーデックは **H.264**(既定。対応するプレーヤーがより多い)または **H.265**。
-- **GIF**:フレームレートは 15 / 20 / 25 / 30 fps、サイズは Medium / Large / Original。**GIFをループ**の切り替えもあります。
+- **GIF**:フレームレートは 15 / 20 / 25 / 30 fps、サイズは Small / Medium / Large / Original。**GIFをループ**の切り替えもあります。
:::note
VP9 は削除されました。ネイティブのパイプラインが対象とする GPU には VP9 のハードウェアエンコーダーがなく、ソフトウェアによるフォールバックは遅すぎて、ほかと同列の選択肢として提供できませんでした。
diff --git a/website/i18n/pt-BR/docusaurus-plugin-content-docs/current/export.md b/website/i18n/pt-BR/docusaurus-plugin-content-docs/current/export.md
index eca52d158..66a5b0790 100644
--- a/website/i18n/pt-BR/docusaurus-plugin-content-docs/current/export.md
+++ b/website/i18n/pt-BR/docusaurus-plugin-content-docs/current/export.md
@@ -17,10 +17,12 @@ keywords:
Clique em **Exportar** na barra superior para abrir a caixa de diálogo de exportação.
+Escolha primeiro um **destino**: **Web / YouTube** (MP4, 1080p, 60 fps), **Redes sociais** (o mesmo a 30 fps, arquivo com metade do tamanho), **Estúdio** (MP4 na resolução da gravação, 60 fps) ou **GIF para README** (um GIF de 480p a 15 fps). Um destino nunca muda a proporção do projeto. Tudo o que vem a seguir fica em **Avançado**.
+
## Formatos {#formats}
- **MP4** — qualidade **Baixa** (720p), **Média** (1080p) ou **Alta** (resolução de origem); taxa de quadros de 24 / 30 / 60 fps; codec **H.264** (o padrão, e o aceito por mais players) ou **H.265**.
-- **GIF** — taxa de quadros de 15 / 20 / 25 / 30 fps, tamanho Medium / Large / Original e a opção **Repetir GIF**.
+- **GIF** — taxa de quadros de 15 / 20 / 25 / 30 fps, tamanho Small / Medium / Large / Original e a opção **Repetir GIF**.
:::note
O VP9 foi removido. Não há codificador VP9 por hardware nas GPUs para as quais o pipeline nativo foi feito, e a alternativa por software era lenta demais para ser oferecida como uma opção aparentemente equivalente às outras.
diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/export.md b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/export.md
index 70a37043e..a08051fd7 100644
--- a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/export.md
+++ b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/export.md
@@ -17,10 +17,12 @@ keywords:
点击顶栏中的**导出**,打开导出对话框。
+先选择一个**导出用途**:**网页 / YouTube**(MP4,1080p,60 fps)、**社交媒体**(同样的画面,30 fps,文件大小减半)、**工作室**(按录制原始分辨率导出的 MP4,60 fps)或 **README GIF**(480p、15 fps 的 GIF)。导出用途不会改变项目的画面比例。以下所有设置都在**高级**中。
+
## 格式 {#formats}
- **MP4**:画质可选 **720p**、**1080p** 或 **Source**;帧率 24 / 30 / 60 fps;编码格式为 **H.264**(默认选项,也是更多播放器支持的格式)或 **H.265**。
-- **GIF**:帧率 15 / 20 / 25 / 30 fps,尺寸 Medium / Large / Original,以及**循环播放 GIF**开关。
+- **GIF**:帧率 15 / 20 / 25 / 30 fps,尺寸 Small / Medium / Large / Original,以及**循环播放 GIF**开关。
:::note
VP9 已被移除。原生管线所面向的 GPU 上没有 VP9 硬件编码器,而软件回退方案实在太慢,不宜作为一个看起来与其他选项并无二致的选项提供。
diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/export.md b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/export.md
index 1b4e6a2d9..524179746 100644
--- a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/export.md
+++ b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/export.md
@@ -17,10 +17,12 @@ keywords:
點擊頂端列的**匯出**,即可開啟匯出對話框。
+先選擇一個**匯出用途**:**網頁 / YouTube**(MP4,1080p,60 fps)、**社群媒體**(同樣的畫面,30 fps,檔案大小減半)、**工作室**(以錄製原始解析度匯出的 MP4,60 fps)或 **README GIF**(480p、15 fps 的 GIF)。匯出用途不會改變專案的畫面比例。以下所有設定都在**進階**中。
+
## 格式 {#formats}
- **MP4**:畫質可選 **720p**、**1080p** 或 **Source**;影格率 24 / 30 / 60 fps;編碼格式為 **H.264**(預設值,也是較多播放器支援的格式)或 **H.265**。
-- **GIF**:影格率 15 / 20 / 25 / 30 fps,大小 Medium / Large / Original,以及**循環**開關。
+- **GIF**:影格率 15 / 20 / 25 / 30 fps,大小 Small / Medium / Large / Original,以及**循環**開關。
:::note
VP9 已被移除。原生管線所針對的 GPU 上沒有 VP9 硬體編碼器,而軟體備援實在太慢,不適合和其他選項並列、當成同等的選擇來提供。