Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
feat(export): always export H.264 and drop the codec picker
EtienneLescota53e0790b471
diff --git a/src/components/ai-edition/ExportDialog.params.test.tsx b/src/components/ai-edition/ExportDialog.params.test.tsxindex 5dd336856..d78ad091c 100644--- a/src/components/ai-edition/ExportDialog.params.test.tsx+++ b/src/components/ai-edition/ExportDialog.params.test.tsx@@ -157,8 +157,14 @@ describe("ExportDialog format settings", () => {vi.clearAllMocks();});- it("opens on MP4, 1080p, 60 fps, H.264", async () => {+ it("opens on MP4, 1080p, 60 fps, H.264, with no codec choice to make", async () => {renderDialog();+ // No picker, on purpose: H.265 is software-only on Linux, slower than software on+ // the measured Macs, and unreadable in half the players. Every export is H.264.+ expect(screen.queryByRole("button", { name: "H.265" })).toBeNull();+ expect(screen.queryByRole("button", { name: "H.264" })).toBeNull();+ // And no idle hint plate: the format is the first control on screen and already picked.+ expect(screen.queryByText(/pick a format/i)).toBeNull();expect(await exportMp4()).toMatchObject({ width: 1920, height: 1080, fps: 60, codec: "h264" });});diff --git a/src/components/ai-edition/ExportDialog.tsx b/src/components/ai-edition/ExportDialog.tsxindex ea0d0f3f4..47b08b08a 100644--- a/src/components/ai-edition/ExportDialog.tsx+++ b/src/components/ai-edition/ExportDialog.tsx@@ -25,7 +25,6 @@ import {type ExportFormat,type ExportProgress,type ExportQuality,- type ExportVideoCodec,GIF_FRAME_RATES,GIF_SIZE_PRESETS,type GifFrameRate,@@ -162,7 +161,6 @@ export function ExportDialog({ open, onClose, document }: ExportDialogProps) {const [format, setFormat] = useState<ExportFormat>("mp4");const [quality, setQuality] = useState<ExportQuality>("good");const [fps, setFps] = useState<24 | 30 | 60>(60);- const [codec, setCodec] = useState<ExportVideoCodec>("h264");const [gifFrameRate, setGifFrameRate] = useState<GifFrameRate>(15);const [gifSize, setGifSize] = useState<GifSizePreset>("medium");const [gifLoop, setGifLoop] = useState(true);@@ -434,7 +432,10 @@ export function ExportDialog({ open, onClose, document }: ExportDialogProps) {width: outDims?.width,height: outDims?.height,fps,- codec,+ // H.264 only. The native pipeline still encodes H.265, but nothing+ // offers it: it is software-only on Linux, slower than software on the+ // measured Macs, and the files half the players cannot open.+ codec: "h264",bitrate: outDims?.bitrate,});if (activeExport.current !== job) return;@@ -572,65 +573,20 @@ export function ExportDialog({ open, onClose, document }: ExportDialogProps) {</button>))}</div>- <div- style={{- display: "grid",- gridTemplateColumns: "1fr 1fr",- gap: 12,- marginTop: 12,- }}- >- <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,- }}- >- {(- [- ["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 style={{ marginTop: 12 }}>+ <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></section>@@ -838,22 +794,11 @@ function ProgressBlock({// rather than in the orphaned `settings.support` block because the main process only bundles// `common` and `dialogs`, and one label split across two namespaces is one label that drifts.const tCommon = useScopedT("common");- if (phase === "idle" || phase === "configuring") {- return (- <div- style={{- padding: "16px",- borderRadius: 12,- background: "color-mix(in oklab, var(--fg) 5%, transparent)",- color: "var(--muted)",- font: "500 13px var(--font-body)",- textAlign: "center",- }}- >- {t("exportDialog.pickFormatAndExport")}- </div>- );- }+ // Nothing to say before an export: the format is the first control on screen and+ // already picked. The old "Pick a format and press Export to start" plate was written+ // for the UI that hid the format toggle under Advanced, and stayed up through the save+ // picker where it was simply false.+ if (phase === "idle" || phase === "configuring") return null;if (phase === "done") {return (<divdiff --git a/src/i18n/locales/ar/editor.json b/src/i18n/locales/ar/editor.jsonindex 5f81d41c5..eb6029db0 100644--- a/src/i18n/locales/ar/editor.json+++ b/src/i18n/locales/ar/editor.json@@ -178,14 +178,10 @@"quality": "الجودة","qualityMatchRecording": "مطابقة التسجيل","frameRate": "معدل الإطارات",- "codec": "الترميز",- "codecBestCompatibility": "أفضل توافق",- "codecMaySupportVary": "قد لا يكون مدعومًا من جميع مرمّزات النظام","size": "الحجم","loopGif": "تكرار GIF","loopOn": "التكرار مفعّل","loopOff": "التكرار معطّل",- "pickFormatAndExport": "اختر صيغة واضغط على تصدير للبدء.","savedTo": "تم الحفظ في","exportFailedGeneric": "فشل التصدير.","writingFile": "جارٍ كتابة الملف...",diff --git a/src/i18n/locales/cs/editor.json b/src/i18n/locales/cs/editor.jsonindex 24c0dc389..7dd7be0b6 100644--- a/src/i18n/locales/cs/editor.json+++ b/src/i18n/locales/cs/editor.json@@ -178,14 +178,10 @@"quality": "Kvalita","qualityMatchRecording": "Odpovídat nahrávce","frameRate": "Snímkový kmitočet",- "codec": "Kodek",- "codecBestCompatibility": "Nejlepší kompatibilita",- "codecMaySupportVary": "Nemusí být podporováno každým systémovým enkodérem","size": "Velikost","loopGif": "Opakovat GIF","loopOn": "Opakování zapnuto","loopOff": "Opakování vypnuto",- "pickFormatAndExport": "Vyberte formát a stiskněte Exportovat pro zahájení.","savedTo": "Uloženo do","exportFailedGeneric": "Export selhal.","writingFile": "Zapisování souboru…",diff --git a/src/i18n/locales/de/editor.json b/src/i18n/locales/de/editor.jsonindex 5ff5f2386..df1d7c8da 100644--- a/src/i18n/locales/de/editor.json+++ b/src/i18n/locales/de/editor.json@@ -178,14 +178,10 @@"quality": "Qualität","qualityMatchRecording": "Wie die Aufnahme","frameRate": "Bildrate",- "codec": "Codec",- "codecBestCompatibility": "Beste Kompatibilität",- "codecMaySupportVary": "Wird möglicherweise nicht von jedem System-Encoder unterstützt","size": "Größe","loopGif": "GIF wiederholen","loopOn": "Wiederholung an","loopOff": "Wiederholung aus",- "pickFormatAndExport": "Wähle ein Format und drücke auf Exportieren, um zu starten.","savedTo": "Gespeichert unter","exportFailedGeneric": "Export fehlgeschlagen.","writingFile": "Datei wird geschrieben…",diff --git a/src/i18n/locales/en/editor.json b/src/i18n/locales/en/editor.jsonindex ea9702122..eeed34fc3 100644--- a/src/i18n/locales/en/editor.json+++ b/src/i18n/locales/en/editor.json@@ -178,14 +178,10 @@"quality": "Quality","qualityMatchRecording": "Match recording","frameRate": "Frame rate",- "codec": "Codec",- "codecBestCompatibility": "Best compatibility",- "codecMaySupportVary": "May not be supported by every system encoder","size": "Size","loopGif": "Loop GIF","loopOn": "Loop on","loopOff": "Loop off",- "pickFormatAndExport": "Pick a format and press Export to start.","savedTo": "Saved to","exportFailedGeneric": "Export failed.","writingFile": "Writing file…",diff --git a/src/i18n/locales/es/editor.json b/src/i18n/locales/es/editor.jsonindex 6b431c095..96a0a1fb1 100644--- a/src/i18n/locales/es/editor.json+++ b/src/i18n/locales/es/editor.json@@ -178,14 +178,10 @@"quality": "Calidad","qualityMatchRecording": "Igual que la grabación","frameRate": "Fotogramas por segundo",- "codec": "Códec",- "codecBestCompatibility": "Mejor compatibilidad",- "codecMaySupportVary": "Puede que no sea compatible con todos los codificadores del sistema","size": "Tamaño","loopGif": "Bucle de GIF","loopOn": "Bucle activado","loopOff": "Bucle desactivado",- "pickFormatAndExport": "Elige un formato y pulsa Exportar para empezar.","savedTo": "Guardado en","exportFailedGeneric": "Error al exportar.","writingFile": "Escribiendo archivo…",diff --git a/src/i18n/locales/fr/editor.json b/src/i18n/locales/fr/editor.jsonindex 98718e7f0..d99e7908d 100644--- a/src/i18n/locales/fr/editor.json+++ b/src/i18n/locales/fr/editor.json@@ -178,14 +178,10 @@"quality": "Qualité","qualityMatchRecording": "Comme l'enregistrement","frameRate": "Fréquence d'images",- "codec": "Codec",- "codecBestCompatibility": "Meilleure compatibilité",- "codecMaySupportVary": "Peut ne pas être pris en charge par tous les encodeurs système","size": "Taille","loopGif": "Boucle GIF","loopOn": "Boucle activée","loopOff": "Boucle désactivée",- "pickFormatAndExport": "Choisissez un format et cliquez sur Exporter pour commencer.","savedTo": "Enregistré dans","exportFailedGeneric": "Échec de l'export.","writingFile": "Écriture du fichier…",diff --git a/src/i18n/locales/it/editor.json b/src/i18n/locales/it/editor.jsonindex 26ebad5d8..eb5c6bee6 100644--- a/src/i18n/locales/it/editor.json+++ b/src/i18n/locales/it/editor.json@@ -178,14 +178,10 @@"quality": "Qualità","qualityMatchRecording": "Come la registrazione","frameRate": "Frame rate",- "codec": "Codec",- "codecBestCompatibility": "Compatibilità migliore",- "codecMaySupportVary": "Potrebbe non essere supportato da tutti gli encoder di sistema","size": "Dimensione","loopGif": "Loop GIF","loopOn": "Loop attivo","loopOff": "Loop disattivo",- "pickFormatAndExport": "Scegli un formato e premi Esporta per iniziare.","savedTo": "Salvato in","exportFailedGeneric": "Esportazione non riuscita.","writingFile": "Scrittura del file…",diff --git a/src/i18n/locales/ja-JP/editor.json b/src/i18n/locales/ja-JP/editor.jsonindex a1ec9fa80..85697830e 100644--- a/src/i18n/locales/ja-JP/editor.json+++ b/src/i18n/locales/ja-JP/editor.json@@ -178,14 +178,10 @@"quality": "画質","qualityMatchRecording": "録画と同じ","frameRate": "フレームレート",- "codec": "コーデック",- "codecBestCompatibility": "互換性が最も高い",- "codecMaySupportVary": "システムのエンコーダーによってはサポートされない場合があります","size": "サイズ","loopGif": "GIFをループ","loopOn": "ループ オン","loopOff": "ループ オフ",- "pickFormatAndExport": "形式を選択し、エクスポートを押して開始してください。","savedTo": "保存先","exportFailedGeneric": "エクスポートに失敗しました。","writingFile": "ファイルを書き込み中…",diff --git a/src/i18n/locales/ko-KR/editor.json b/src/i18n/locales/ko-KR/editor.jsonindex fad6d61a7..8ade51bdf 100644--- a/src/i18n/locales/ko-KR/editor.json+++ b/src/i18n/locales/ko-KR/editor.json@@ -178,14 +178,10 @@"quality": "화질","qualityMatchRecording": "녹화와 동일","frameRate": "프레임 속도",- "codec": "코덱",- "codecBestCompatibility": "호환성이 가장 좋음",- "codecMaySupportVary": "시스템 인코더에 따라 지원되지 않을 수 있습니다","size": "크기","loopGif": "GIF 반복","loopOn": "반복 켜짐","loopOff": "반복 꺼짐",- "pickFormatAndExport": "형식을 선택하고 내보내기를 눌러 시작하세요.","savedTo": "저장 위치","exportFailedGeneric": "내보내기에 실패했습니다.","writingFile": "파일 쓰는 중…",diff --git a/src/i18n/locales/pt-BR/editor.json b/src/i18n/locales/pt-BR/editor.jsonindex fa5a6429a..c2945f841 100644--- a/src/i18n/locales/pt-BR/editor.json+++ b/src/i18n/locales/pt-BR/editor.json@@ -178,14 +178,10 @@"quality": "Qualidade","qualityMatchRecording": "Igual à gravação","frameRate": "Taxa de quadros",- "codec": "Codec",- "codecBestCompatibility": "Melhor compatibilidade",- "codecMaySupportVary": "Pode não ser suportado por todos os codificadores do sistema","size": "Tamanho","loopGif": "Repetir GIF","loopOn": "Repetição ativada","loopOff": "Repetição desativada",- "pickFormatAndExport": "Escolha um formato e clique em Exportar para começar.","savedTo": "Salvo em","exportFailedGeneric": "Falha na exportação.","writingFile": "Gravando arquivo…",diff --git a/src/i18n/locales/ru/editor.json b/src/i18n/locales/ru/editor.jsonindex 4f1ed097c..b0c0e800e 100644--- a/src/i18n/locales/ru/editor.json+++ b/src/i18n/locales/ru/editor.json@@ -178,14 +178,10 @@"quality": "Качество","qualityMatchRecording": "Как в записи","frameRate": "Частота кадров",- "codec": "Кодек",- "codecBestCompatibility": "Лучшая совместимость",- "codecMaySupportVary": "Может не поддерживаться некоторыми системными кодировщиками","size": "Размер","loopGif": "Зациклить GIF","loopOn": "Зацикливание включено","loopOff": "Зацикливание выключено",- "pickFormatAndExport": "Выберите формат и нажмите «Экспорт», чтобы начать.","savedTo": "Сохранено в","exportFailedGeneric": "Ошибка экспорта.","writingFile": "Запись файла…",diff --git a/src/i18n/locales/tr/editor.json b/src/i18n/locales/tr/editor.jsonindex 96623566c..1465f324e 100644--- a/src/i18n/locales/tr/editor.json+++ b/src/i18n/locales/tr/editor.json@@ -178,14 +178,10 @@"quality": "Kalite","qualityMatchRecording": "Kayıtla eşleştir","frameRate": "Kare hızı",- "codec": "Codec",- "codecBestCompatibility": "En iyi uyumluluk",- "codecMaySupportVary": "Her sistem kodlayıcısı tarafından desteklenmeyebilir","size": "Boyut","loopGif": "GIF'i döngüye al","loopOn": "Döngü açık","loopOff": "Döngü kapalı",- "pickFormatAndExport": "Bir format seçin ve başlamak için Dışa Aktar'a basın.","savedTo": "Kaydedildiği yer","exportFailedGeneric": "Dışa aktarma başarısız oldu.","writingFile": "Dosya yazılıyor…",diff --git a/src/i18n/locales/vi/editor.json b/src/i18n/locales/vi/editor.jsonindex 66473b19f..db6f68e0d 100644--- a/src/i18n/locales/vi/editor.json+++ b/src/i18n/locales/vi/editor.json@@ -178,14 +178,10 @@"quality": "Chất lượng","qualityMatchRecording": "Khớp với bản ghi","frameRate": "Tốc độ khung hình",- "codec": "Codec",- "codecBestCompatibility": "Tương thích tốt nhất",- "codecMaySupportVary": "Có thể không được hỗ trợ bởi mọi bộ mã hóa hệ thống","size": "Kích thước","loopGif": "Lặp GIF","loopOn": "Lặp bật","loopOff": "Lặp tắt",- "pickFormatAndExport": "Chọn định dạng và nhấn Xuất để bắt đầu.","savedTo": "Đã lưu vào","exportFailedGeneric": "Xuất thất bại.","writingFile": "Đang ghi tệp…",diff --git a/src/i18n/locales/zh-CN/editor.json b/src/i18n/locales/zh-CN/editor.jsonindex d1dda554b..3c1c5c0e8 100644--- a/src/i18n/locales/zh-CN/editor.json+++ b/src/i18n/locales/zh-CN/editor.json@@ -178,14 +178,10 @@"quality": "画质","qualityMatchRecording": "与录制一致","frameRate": "帧率",- "codec": "编码格式",- "codecBestCompatibility": "兼容性最佳",- "codecMaySupportVary": "并非所有系统编码器都支持","size": "尺寸","loopGif": "循环播放 GIF","loopOn": "循环已开启","loopOff": "循环已关闭",- "pickFormatAndExport": "选择格式并点击导出以开始。","savedTo": "已保存至","exportFailedGeneric": "导出失败。","writingFile": "正在写入文件…",diff --git a/src/i18n/locales/zh-TW/editor.json b/src/i18n/locales/zh-TW/editor.jsonindex 8827b5b6b..17e1fdfc2 100644--- a/src/i18n/locales/zh-TW/editor.json+++ b/src/i18n/locales/zh-TW/editor.json@@ -178,14 +178,10 @@"quality": "畫質","qualityMatchRecording": "與錄製內容相符","frameRate": "幀率",- "codec": "編碼格式",- "codecBestCompatibility": "相容性最佳",- "codecMaySupportVary": "並非所有系統編碼器都支援","size": "尺寸","loopGif": "循環播放 GIF","loopOn": "循環開啟","loopOff": "循環關閉",- "pickFormatAndExport": "選擇格式並按下匯出以開始。","savedTo": "已儲存至","exportFailedGeneric": "匯出失敗。","writingFile": "正在寫入檔案…",