FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust
Merge main into #879 (export schema next to FLAC, catalogs, parity table)
Brandon Thomas71ceebe857e6
diff --cc crates/engine/src/commands.rsindex fab7a0bf7,eb966d67c..5f46ecc6b--- a/crates/engine/src/commands.rs+++ b/crates/engine/src/commands.rs@@@ -1285,7 -1545,7 +1545,7 @@@ fn build() -> Vec<CommandSpec>"Media…",["File", "Export"],None,- r#"{"path":str,"preset":str?,"settings":ExportSettings?,"format":"h264|hevc|prores|dnxhr|apv|mjpeg|mxf-op1a|mxf-opatom|png|tiff|bmp|jpg|tga|dpx|exr|gif|wav|aiff|aac"?,"width":u32?,"height":u32?,"fps":f64?,"bitrateKbps":u32?,"bitrateMode":"cbr|vbr1Pass|vbr2Pass|crf"?,"crf":0..51=23,"hardwareEncoding":"off|auto"?,"scale":f32=1,"audio":bool=true,"quality":0..100,"burnCaptions":bool=false,"alpha":bool=false,"exrCompression":"none|rle|zips|zip"?,"captionSidecar":"srt|vtt"?,"loudnessLufs":f64?,"proresProfile":"proxy|lt|standard|hq|4444|4444xq"?,"dnxProfile":"lb|sq|hq|hqx"?,"apvProfile":"422-10|422-12|444-10|444-12"?,"mxfVideoCodec":"dnxhr|proRes|h264"?,"sequence":id?,"range":"entire|inOut|workArea|custom"?,"startSeconds":f64?,"endSeconds":f64?,"wait":bool=false}"#,- r#"{"path":str,"preset":str?,"settings":ExportSettings?,"format":"h264|hevc|prores|dnxhr|apv|mjpeg|mxf-op1a|mxf-opatom|png|tiff|bmp|jpg|tga|dpx|exr|gif|wav|aiff|aac|flac"?,"audioCodec":"auto|aac|pcm|flac"?,"flacLevel":0..8=5,"width":u32?,"height":u32?,"fps":f64?,"bitrateKbps":u32?,"bitrateMode":"cbr|vbr1Pass|vbr2Pass|crf"?,"crf":0..51=23,"hardwareEncoding":"off|auto"?,"scale":f32=1,"audio":bool=true,"quality":0..100,"burnCaptions":bool=false,"alpha":bool=false,"captionSidecar":"srt|vtt"?,"loudnessLufs":f64?,"proresProfile":"proxy|lt|standard|hq|4444|4444xq"?,"dnxProfile":"lb|sq|hq|hqx"?,"apvProfile":"422-10|422-12|444-10|444-12"?,"mxfVideoCodec":"dnxhr|proRes|h264"?,"sequence":id?,"range":"entire|inOut|workArea|custom"?,"startSeconds":f64?,"endSeconds":f64?,"wait":bool=false}"#,++ r#"{"path":str,"preset":str?,"settings":ExportSettings?,"format":"h264|hevc|prores|dnxhr|apv|mjpeg|mxf-op1a|mxf-opatom|png|tiff|bmp|jpg|tga|dpx|exr|gif|wav|aiff|aac|flac"?,"audioCodec":"auto|aac|pcm|flac"?,"flacLevel":0..8=5,"width":u32?,"height":u32?,"fps":f64?,"bitrateKbps":u32?,"bitrateMode":"cbr|vbr1Pass|vbr2Pass|crf"?,"crf":0..51=23,"hardwareEncoding":"off|auto"?,"scale":f32=1,"audio":bool=true,"quality":0..100,"burnCaptions":bool=false,"alpha":bool=false,"exrCompression":"none|rle|zips|zip"?,"captionSidecar":"srt|vtt"?,"loudnessLufs":f64?,"proresProfile":"proxy|lt|standard|hq|4444|4444xq"?,"dnxProfile":"lb|sq|hq|hqx"?,"apvProfile":"422-10|422-12|444-10|444-12"?,"mxfVideoCodec":"dnxhr|proRes|h264"?,"sequence":id?,"range":"entire|inOut|workArea|custom"?,"startSeconds":f64?,"endSeconds":f64?,"wait":bool=false}"#,has_seq,crate::export_tools::export_media),diff --cc crates/export/src/settings.rsindex dee3da932,70831e9ca..a59f481e1--- a/crates/export/src/settings.rs+++ b/crates/export/src/settings.rs@@@ -160,47 -160,8 +160,48 @@@ impl MxfVideoCodec}}+/// Compression of OpenEXR stills (the file's `compression` attribute). Every mode is lossless.+#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Serialize, Deserialize)]+#[serde(rename_all = "camelCase")]+pub enum ExrCompression {+ /// Uncompressed.+ #[default]+ None,+ /// Run-length coded bytes (RLE_COMPRESSION), one scan line per chunk.+ Rle,+ /// zlib (deflate) per scan line (ZIPS_COMPRESSION).+ Zips,+ /// zlib (deflate) per block of 16 scan lines (ZIP_COMPRESSION).+ Zip,+}++impl ExrCompression {+ pub const ALL: [ExrCompression; 4] = [ExrCompression::None, ExrCompression::Rle, ExrCompression::Zips, ExrCompression::Zip];+ pub fn label(self) -> &'static str {+ match self {+ ExrCompression::None => "None",+ ExrCompression::Rle => "RLE",+ ExrCompression::Zips => "ZIP (1 scan line)",+ ExrCompression::Zip => "ZIP (16 scan lines)",+ }+ }+ /// The value of the OpenEXR `compression` attribute.+ pub(crate) fn code(self) -> u8 {+ match self {+ ExrCompression::None => 0,+ ExrCompression::Rle => 1,+ ExrCompression::Zips => 2,+ ExrCompression::Zip => 3,+ }+ }+ /// Scan lines per chunk.+ pub(crate) fn lines(self) -> usize {+ if self == ExrCompression::Zip { 16 } else { 1 }+ }+}+- /// Audio codec. `Auto` = AAC in MP4 and AAC Audio, PCM in QuickTime / WAV / AIFF.+ /// Audio codec. `Auto` = AAC in MP4 and AAC Audio, PCM in QuickTime / WAV / AIFF, FLAC in FLAC.+ /// MP4 and QuickTime can also carry FLAC; MXF is always PCM.#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Serialize, Deserialize)]#[serde(rename_all = "camelCase")]pub enum AudioCodec {@@@ -530,18 -499,18 +539,21 @@@ impl ExportSettingsFormat::TgaSequence => px * if self.keeps_alpha() { 4.0 } else { 3.0 } * 8.0 * fps,// 10-bit RGB in one 32-bit word per pixelFormat::DpxSequence => px * 4.0 * 8.0 * fps,- // two bytes per half-float channel- Format::ExrSequence => px * if self.keeps_alpha() { 8.0 } else { 6.0 } * 8.0 * fps,+ // two bytes per half-float channel; lossless compression roughly halves it+ Format::ExrSequence => {+ let k = if self.exr_compression == ExrCompression::None { 1.0 } else { 0.5 };+ px * if self.keeps_alpha() { 8.0 } else { 6.0 } * 8.0 * fps * k+ }Format::Gif => px * 0.6 * 8.0 * fps,- Format::Wav | Format::Aiff | Format::MxfOp1a | Format::MxfOpAtom => 0.0,+ Format::Wav | Format::Aiff | Format::Flac | Format::MxfOp1a | Format::MxfOpAtom => 0.0,};let audio_bps = if self.has_audio() || self.format.is_audio_only() {+ let pcm = r.sample_rate as f64 * r.channels as f64 * if self.audio.bits >= 24 { 24.0 } else { 16.0 };match self.audio_codec() {AudioCodec::Aac => self.audio.bitrate_kbps as f64 * 1000.0,- _ => r.sample_rate as f64 * r.channels as f64 * if self.audio.bits >= 24 { 24.0 } else { 16.0 },+ // typical of music and dialogue; noise compresses less, silence far more+ AudioCodec::Flac => pcm * 0.6,+ _ => pcm,}} else {0.0diff --cc crates/ui-egui/src/i18n/es.tsvindex 55d1e5b76,c2e1529ed..6119ccc99--- a/crates/ui-egui/src/i18n/es.tsv+++ b/crates/ui-egui/src/i18n/es.tsv@@@ -3556,6 -3570,16 +3570,19 @@@Edit Project Notes Editar notas del proyectoNotes for this project: to-dos, instructions, frame numbers… Saved with the project. Notas de este proyecto: tareas pendientes, instrucciones, números de fotograma… Se guardan con el proyecto.Use Effect Shutter Angle Usar el ángulo de obturación del efecto+ Compression Compresión+ ZIP (1 scan line) ZIP (1 línea de exploración)+ ZIP (16 scan lines) ZIP (16 líneas de exploración)+ Safe graphics mode: {mode} Modo gráfico seguro: {mode}+ An earlier start failed with the default graphics. Updating the graphics driver usually fixes this. Un inicio anterior falló con los gráficos predeterminados. Actualizar el controlador gráfico suele solucionarlo.+ Use Default Graphics Usar gráficos predeterminados+ The default graphics are used from the next start. Los gráficos predeterminados se usarán a partir del próximo inicio.+ DirectX 12 only Solo DirectX 12+ software rendering renderizado por software+ Label Color Presets Ajustes preestablecidos de color de etiqueta+ {name} (Modified) {name} (modificado)+ Revert to the preset's colors and names Volver a los colores y nombres del ajuste preestablecido+ Import a preset file… Importar un archivo de ajuste preestablecido…+ Export the labels to a preset file… Exportar las etiquetas a un archivo de ajuste preestablecido…+ Show the presets folder Mostrar la carpeta de ajustes preestablecidos+ Delete this preset Eliminar este ajuste preestablecidodiff --cc crates/ui-egui/src/i18n/fr.tsvindex 0db318758,ef315bda6..edcba88a6--- a/crates/ui-egui/src/i18n/fr.tsv+++ b/crates/ui-egui/src/i18n/fr.tsv@@@ -3545,6 -3546,16 +3546,19 @@@Notes for this project: to-dos, instructions, frame numbers… Saved with the project. Notes pour ce projet : tâches, instructions, numéros d'image… Enregistrées avec le projet.Use Effect Shutter Angle Utiliser l'angle d'obturation de l'effetSettings Préférences+ Compression Compression+ ZIP (1 scan line) ZIP (1 ligne de balayage)+ ZIP (16 scan lines) ZIP (16 lignes de balayage)+ Safe graphics mode: {mode} Mode graphique sans échec : {mode}+ An earlier start failed with the default graphics. Updating the graphics driver usually fixes this. Un démarrage précédent a échoué avec les graphismes par défaut. Mettre à jour le pilote graphique résout généralement le problème.+ Use Default Graphics Utiliser les graphismes par défaut+ The default graphics are used from the next start. Les graphismes par défaut seront utilisés au prochain démarrage.+ DirectX 12 only DirectX 12 uniquement+ software rendering rendu logiciel+ Label Color Presets Paramètres prédéfinis de couleur d'étiquette+ {name} (Modified) {name} (modifié)+ Revert to the preset's colors and names Revenir aux couleurs et aux noms du paramètre prédéfini+ Import a preset file… Importer un fichier de paramètre prédéfini…+ Export the labels to a preset file… Exporter les étiquettes dans un fichier de paramètre prédéfini…+ Show the presets folder Afficher le dossier des paramètres prédéfinis+ Delete this preset Supprimer ce paramètre prédéfinidiff --cc crates/ui-egui/src/i18n/ja.tsvindex cc3879d26,450c44fb5..d142b44b8--- a/crates/ui-egui/src/i18n/ja.tsv+++ b/crates/ui-egui/src/i18n/ja.tsv@@@ -3544,6 -3552,36 +3552,39 @@@Edit Project Notes プロジェクトメモを編集Notes for this project: to-dos, instructions, frame numbers… Saved with the project. このプロジェクトのメモ: やること、指示、フレーム番号など… プロジェクトと一緒に保存されます。GPU acceleration is unavailable; preview renders on the CPU GPU アクセラレーションを利用できません。プレビューは CPU でレンダリングされます+ Compression 圧縮+ ZIP (1 scan line) ZIP(1 スキャンライン)+ ZIP (16 scan lines) ZIP(16 スキャンライン)++ Caption Tracks キャプショントラック+ Delete Caption Track キャプショントラックを削除+ Delete Caption Tracks キャプショントラックを削除+ Delete Empty Caption Tracks 空のキャプショントラックを削除+ Dock Panel パネルをドッキング+ Undock Panel パネルのドッキングを解除+ Docking Action ドッキング操作+ Resize floating panel フローティングパネルのサイズを変更+ Eyedropper (pick a color from the Program monitor) スポイト (プログラムモニターから色を取得)+ Eyedropper: no picture to sample スポイト: 色を取得できる画像がありません+ In イン+ Out アウト+ More transport controls その他の再生コントロール+ Ripple Trim In リップルトリム (イン)+ Ripple Trim Out リップルトリム (アウト)+ Roll Edit ロール編集+ Trim In トリム (イン)+ Trim Out トリム (アウト)+ Use Effect Shutter Angle エフェクトのシャッター角度を使用+ Safe graphics mode: {mode} セーフグラフィックモード: {mode}+ An earlier start failed with the default graphics. Updating the graphics driver usually fixes this. 以前の起動がデフォルトのグラフィックで失敗しました。グラフィックドライバーを更新すると、通常は解決します。+ Use Default Graphics デフォルトのグラフィックを使用+ The default graphics are used from the next start. 次回の起動からデフォルトのグラフィックが使用されます。+ DirectX 12 only DirectX 12 のみ+ software rendering ソフトウェアレンダリング+ Label Color Presets ラベルカラープリセット+ {name} (Modified) {name} (変更あり)+ Revert to the preset's colors and names プリセットのカラーと名前に戻す+ Import a preset file… プリセットファイルを読み込み…+ Export the labels to a preset file… ラベルをプリセットファイルに書き出し…+ Show the presets folder プリセットフォルダーを表示+ Delete this preset このプリセットを削除diff --cc crates/ui-egui/src/i18n/zh-cn.tsvindex ef6c20a84,75df54ee6..15bc785fd--- a/crates/ui-egui/src/i18n/zh-cn.tsv+++ b/crates/ui-egui/src/i18n/zh-cn.tsv@@@ -3537,6 -3548,16 +3548,19 @@@Delete Caption Track 删除字幕轨道Delete Caption Tracks 删除多个字幕轨道Delete Empty Caption Tracks 删除空字幕轨道+ Compression 压缩+ ZIP (1 scan line) ZIP(1 条扫描线)+ ZIP (16 scan lines) ZIP(16 条扫描线)+ Safe graphics mode: {mode} 安全图形模式:{mode}+ An earlier start failed with the default graphics. Updating the graphics driver usually fixes this. 上次启动时默认图形模式失败。更新显卡驱动程序通常可以解决此问题。+ Use Default Graphics 使用默认图形+ The default graphics are used from the next start. 下次启动时将使用默认图形。+ DirectX 12 only 仅 DirectX 12+ software rendering 软件渲染+ Label Color Presets 标签颜色预设+ {name} (Modified) {name}(已修改)+ Revert to the preset's colors and names 恢复为预设的颜色和名称+ Import a preset file… 导入预设文件…+ Export the labels to a preset file… 将标签导出为预设文件…+ Show the presets folder 显示预设文件夹+ Delete this preset 删除此预设diff --cc docs/file-format-parity.mdindex aedbe2409,b7a64326d..44dd11922--- a/docs/file-format-parity.md+++ b/docs/file-format-parity.md@@@ -55,8 -55,8 +55,8 @@@ only). "Tested" names the evidence| PNG, JPEG, TIFF, BMP, GIF | read + write | yes | PNG / TIFF / BMP / JPEG sequences, GIF | 90% || WebP | — | yes | no | ahead || **PSD** (layers as sequence) | read (layered) | no | — | 0% |-| **OpenEXR** | read + write | no | sequences (half float, linear RGB / premultiplied RGBA, uncompressed; #806) | 35% |+| **OpenEXR** | read + write | no | sequences (half float, linear RGB / premultiplied RGBA; uncompressed, RLE, ZIPS or ZIP; #806, #874) | 35% |- | **DPX** | read + write | yes: luma / RGB / RGBA, 8–16-bit, filled 10/12-bit, either byte order (#821); no packed 10/12-bit, RLE or Y'CbCr | sequences (10-bit RGB, BT.709; #779) | 80% |+ | **DPX** | read + write | yes: luma / RGB / RGBA, 8–16-bit, filled 10/12-bit, either byte order (#821); packed 10/12-bit, Y'CbCr 4:2:2 / 4:4:4 with or without alpha (#841); no RLE | sequences (10-bit RGB, BT.709; #779) | 90% || Targa | read + write | yes: every image type, RLE, colour maps, 15–32-bit (#821) | sequences (24-bit, 32-bit with alpha; #779) | 95% || HEIF / HEIC | read | no | — | 0% || Radiance HDR, AI / EPS, ICO, PTL | read | no | — | 0% |