From 6a8d9903e9d6ca7890764a2c5fcfd67ded0cc87d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Mon, 16 Nov 2026 01:36:54 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20burn=5Fcaptions=20works=20with?= =?UTF-8?q?=20png=5Fsequence,=20still=20and=20gif=20exports=20instead=20of?= =?UTF-8?q?=20calling=20them=20audio=20only?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/engine/src/export.rs | 5 +++++ crates/mcp/src/tools/export.rs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/engine/src/export.rs b/crates/engine/src/export.rs index 3c22fc6..7a04e7c 100644 --- a/crates/engine/src/export.rs +++ b/crates/engine/src/export.rs @@ -315,6 +315,11 @@ impl Format { ) } + /// Whether it shows a picture at all: a video format, or the PNG and GIF ones. + pub fn shows_picture(self) -> bool { + self.has_video() || matches!(self, Self::PngSequence | Self::Still | Self::Gif) + } + /// Whether the picture in it is AV1 rather than H.264 -- which encoder runs /// and which of the two AV1 containers is being written are separate /// questions, and this is the first. diff --git a/crates/mcp/src/tools/export.rs b/crates/mcp/src/tools/export.rs index 9b3a766..0a563e8 100644 --- a/crates/mcp/src/tools/export.rs +++ b/crates/mcp/src/tools/export.rs @@ -1540,7 +1540,7 @@ fn export_start(srv: &mut Server, args: &Value) -> Reply { Ok(v) => v, Err(e) => return Reply::err(e), }; - if burn.is_some() && sound_only { + if burn.is_some() && (!format.shows_picture() || (!has_picture && format.ext() == "mp4")) { return Reply::err(format!( "burn_captions draws into the picture, and {} is audio only: drop burn_captions, or export a video format", format_name(format)