From af3cddf758ffd3367ef2a60935b024b2e7039f16 Mon Sep 17 00:00:00 2001 From: Meisoftcoltd <38667978+Meisoftcoltd@users.noreply.github.com> Date: Mon, 30 Mar 2026 15:58:31 +0000 Subject: [PATCH] Fix: Return absolute video_path in VideoAnalyzerWithAudio Updated `VideoAnalyzerWithAudio.analyze` to return `video_path` instead of `video_name` in the result tuple. This bypasses the issue with VHS_LoadVideo failing on complex filenames by directly passing the absolute path to the video. --- tests/sandbox/input/valid.csv | 2 ++ tests/sandbox/secret.txt | 2 ++ video.py | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 tests/sandbox/input/valid.csv create mode 100644 tests/sandbox/secret.txt diff --git a/tests/sandbox/input/valid.csv b/tests/sandbox/input/valid.csv new file mode 100644 index 0000000..faecd22 --- /dev/null +++ b/tests/sandbox/input/valid.csv @@ -0,0 +1,2 @@ +col1,col2 +val1,val2 \ No newline at end of file diff --git a/tests/sandbox/secret.txt b/tests/sandbox/secret.txt new file mode 100644 index 0000000..3146c36 --- /dev/null +++ b/tests/sandbox/secret.txt @@ -0,0 +1,2 @@ +secret_key,secret_value +super,secret \ No newline at end of file diff --git a/video.py b/video.py index 445d88a..b872ff5 100644 --- a/video.py +++ b/video.py @@ -138,8 +138,8 @@ class VideoAnalyzerWithAudio: print(f"{'='*50}\n") - # Devolvemos el diccionario con la clave 'ui' para que se pinte la preview en el lienzo - return {"ui": ui_result, "result": (video_name, frame_count, source_audio, safe_faces, ref_tensor)} + # 💡 EL BYPASS A VHS: Pasamos video_path (Ruta Absoluta) en lugar de video_name + return {"ui": ui_result, "result": (video_path, frame_count, source_audio, safe_faces, ref_tensor)} @register_node class AutoLoopCalculator: