From 42334e92a4821b013f09adfe6e17429f1120c38a Mon Sep 17 00:00:00 2001 From: JB Date: Tue, 7 Oct 2025 10:40:42 -0700 Subject: [PATCH] feat: Add format specification for m4b, mp4, and m4a files in metadata embedding --- abogen/web/conversion_runner.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/abogen/web/conversion_runner.py b/abogen/web/conversion_runner.py index ed4da55..7359a31 100644 --- a/abogen/web/conversion_runner.py +++ b/abogen/web/conversion_runner.py @@ -517,6 +517,8 @@ def _embed_m4b_metadata( command += ["-movflags", "+faststart+use_metadata_tags"] temp_output = audio_path.with_suffix(audio_path.suffix + ".tmp") + if audio_path.suffix.lower() in {".m4b", ".mp4", ".m4a"}: + command += ["-f", "mp4"] command.append(str(temp_output)) process = create_process(command, text=True)