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)