From b3ac9ab22f92e8d44dc1f9e5e15cf5041a9f44c9 Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Fri, 27 Mar 2026 21:19:26 +0100 Subject: [PATCH] feat: log MP4 conversion time before subprocess spawn Shows how long PIL+ffmpeg video export takes so we can see if that's contributing to the gap before [extract] output appears. Co-Authored-By: Claude Sonnet 4.6 --- nodes/feature_extractor.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nodes/feature_extractor.py b/nodes/feature_extractor.py index 200d6ef..2c199fb 100644 --- a/nodes/feature_extractor.py +++ b/nodes/feature_extractor.py @@ -153,9 +153,14 @@ class PrismAudioFeatureExtractor: return loader.load_features(cached_path) # Save video to temp file + import time + t0 = time.perf_counter() + frames = video.shape[0] + print(f"[PrismAudio] Converting {frames} frames to MP4 (fps={fps})...", flush=True) with tempfile.NamedTemporaryFile(suffix=".mp4", delete=False) as tmp: tmp_video = tmp.name _save_video_tensor_to_mp4(video, tmp_video, fps=fps) + print(f"[PrismAudio] MP4 ready in {time.perf_counter() - t0:.1f}s ({tmp_video})", flush=True) # Build subprocess command script_path = os.path.join(