From 2deb9b96cffe5ca84aff7467f6ab21abf1fcd4c6 Mon Sep 17 00:00:00 2001 From: Nicholas Tindle Date: Wed, 4 Feb 2026 21:58:04 -0600 Subject: [PATCH] fix(blocks): strip chapter metadata from audio files in add_audio block Audio files (especially audiobooks, podcasts) can have chapter metadata that causes MoviePy to crash with IndexError. Co-Authored-By: Claude Opus 4.5 --- autogpt_platform/backend/backend/blocks/video/add_audio.py | 1 + 1 file changed, 1 insertion(+) diff --git a/autogpt_platform/backend/backend/blocks/video/add_audio.py b/autogpt_platform/backend/backend/blocks/video/add_audio.py index 6f327e278d..8108fad3ff 100644 --- a/autogpt_platform/backend/backend/blocks/video/add_audio.py +++ b/autogpt_platform/backend/backend/blocks/video/add_audio.py @@ -78,6 +78,7 @@ class AddAudioToVideoBlock(Block): # 2) Load video + audio with moviepy strip_chapters_inplace(video_abspath) + strip_chapters_inplace(audio_abspath) video_clip = None audio_clip = None final_clip = None