diff --git a/src/cluster/ffmpeg_apps/subtitle_apply.py b/src/cluster/ffmpeg_apps/subtitle_apply.py index f53b0c3..582798e 100644 --- a/src/cluster/ffmpeg_apps/subtitle_apply.py +++ b/src/cluster/ffmpeg_apps/subtitle_apply.py @@ -44,6 +44,7 @@ with ffmpeg_worker_image.imports(): subtitle_path = f"{s3_mount}/{subtitle.cache_filepath}" if subtitle else None embed_subtitle_path = f"{s3_mount}/{embed_subtitle.cache_filepath}" if embed_subtitle else None output_path = f"{output_path_prefix}/{config.modal_environment}/subtitle_apply/{func_id}/output.mp4" + os.makedirs(os.path.dirname(output_path), exist_ok=True) if fonts: font_dir = f"{output_path_prefix}/{config.modal_environment}/subtitle_apply/{func_id}/fonts" os.makedirs(font_dir, exist_ok=True)