Commit Graph
102 Commits
Author SHA1 Message Date
Meisoftcoltd 4fc4fec43d feat(video): add source_fps float output to VideoAnalyzerWithAudio
- Added `source_fps` float extraction using OpenCV (`cv2.CAP_PROP_FPS`).
- Updated `RETURN_TYPES`, `RETURN_NAMES`, and the function's return payload.
- Printed detected FPS smoothly to the console debug stream.
2026-03-30 19:52:58 +00:00
Meisoft 3c55c21ba4 Merge pull request #43 from Meisoftcoltd/feature/v1.5.0-dynamic-engine-and-tools-14187832195967987532
Upgrade to v1.5.0: Dynamic Engine & Tools Suite
2026-03-30 21:11:08 +02:00
Meisoftcoltd 1c13d37fbc feat: implement Dynamic Engine and Tools suite for v1.5.0
This commit introduces the Hybrid Identity Architecture's Dynamic Engine:
- `tools.py`: Adds new Math constraint nodes (`ResTool 8x, 16x, 32x, 64x`) to calculate safe resolutions dynamically, preventing VRAM overflow.
- `loop.py`: Replaces the legacy static mathematical state machine with a dynamic performance-based state using `global_accumulated_frames` to progress accurately based on successful generations.
- `image.py`: Overhauls `SessionImageSender` to dynamically truncate generated image tensors using OpenCV if faces are lost, saving the last valid frame, and correctly adjusting the loop progression. `SessionImageReceiver` updated to log dynamic progression.
- `video.py`: Refactors `AutoLoopCalculator` and `IncrementalVideoStitcher` to work under the new dynamic state machine logic.
- `__init__.py`: Registered new nodes, updated imports to include `tools`, and bumped version to v1.5.0.
- `README.md` & `README_EN.md`: Updated documentation to detail the new Dynamic Engine functionality and Tools suite.
2026-03-30 19:03:16 +00:00
Meisoft f780a63a07 Merge pull request #42 from Meisoftcoltd/feat/tools-resolution-nodes-3416685684358741616
feat: add dedicated ResTool suite for safe resolutions
2026-03-30 20:19:41 +02:00
Meisoftcoltd 64172b5c64 feat: add dedicated ResTool suite for safe resolutions
This commit introduces a new `tools.py` module containing a `BaseResolutionTool` and its specific derived classes (`ResTool8x`, `ResTool16x`, `ResTool32x`, `ResTool64x`). These nodes calculate safe, model-specific dimensions that strictly conform to divisibility rules using provided aspect ratios and base resolutions.

The `__init__.py` file is updated to import and register these tools along with emojis for UI display. Both the English and Spanish READMEs are updated to document the new `Tools` suite.
2026-03-30 18:16:48 +00:00
Meisoft d0339ee6c7 Merge pull request #41 from Meisoftcoltd/feature/dynamic-margin-v1.4.3-3601289385715301537
feat(AutoLoopCalculator): implement dynamic +/- 10% margin and bump to v1.4.3
2026-03-30 19:46:18 +02:00
Meisoftcoltd b91831ab11 feat: apply +/- 10% dynamic margin to AutoLoopCalculator
Update `calculate` method in `video.py` to dynamically adjust loop lengths
by a 10% margin, absorbing remainders safely and preventing inefficient
micro-cycles at the end of videos. Update both README.md and README_EN.md
to reflect this new capability and bump the version to 1.4.3.
2026-03-30 17:24:45 +00:00
Meisoft f35a06d867 Merge pull request #40 from Meisoftcoltd/fix-video-analyzer-absolute-path-9584550515842607860
Fix absolute video path return in VideoAnalyzerWithAudio
2026-03-30 18:01:04 +02:00
Meisoftcoltd af3cddf758 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.
2026-03-30 15:58:31 +00:00
Meisoft 2e497b4894 Merge pull request #39 from Meisoftcoltd/update-videoanalyzer-ui-17617168194567367529
Update VideoAnalyzerWithAudio Node for Cleaner UI and Previews
2026-03-30 17:20:34 +02:00
Meisoftcoltd 51a3f58bf1 docs: update documentation to reflect VideoAnalyzerWithAudio v1.4.1 changes
- Bumped version number in README.md and README_EN.md from 1.4.0 to 1.4.1.
- Updated the "Explorer" (`VideoAnalyzerWithAudio`) node description to highlight its new clean interface, native VHS widget integration, and visual Reference Frame generation.
2026-03-30 15:18:24 +00:00
Meisoftcoltd 2cd9b13f4c feat: update VideoAnalyzerWithAudio UI and preview logic
- Replaced VideoAnalyzerWithAudio class with improved UI handling logic.
- Implemented reference frame preview generation within the node.
- Added IS_CHANGED and VALIDATE_INPUTS class methods for correct caching and validation.
- Output formatting changed to return both UI payload and specific results tuple.
2026-03-30 14:42:34 +00:00
Meisoft e4d091df59 Merge pull request #38 from Meisoftcoltd/feat/hybrid-identity-architecture-2472698231588164134
feat: Hybrid Identity Architecture (OpenCV + Smart Cuts)
2026-03-30 15:53:31 +02:00
Meisoftcoltd e9dda4f3e2 docs: update README to reflect the new Hybrid Identity Architecture
- Updates README.md and README_EN.md.
- Replaces legacy loader references with the new "Explorer", "Brain", and "Worker" logic.
- Adds OpenCV dependency requirement instructions.
- Provides step-by-step setup guides to connect the updated 3-node structure.
2026-03-30 13:04:29 +00:00
Meisoftcoltd bc9fb05e2d feat: implement Hybrid Identity Architecture with VideoAnalyzerWithAudio
- Replaces LoadVideoWithSourceAudio with VideoAnalyzerWithAudio (the "Explorer").
- Introduces OpenCV-based frame scanning to detect sharp and frontal faces.
- Updates AutoLoopCalculator (the "Brain") to utilize safe_faces_list for asymmetric intelligent cuts.
- Updates __init__.py to register the new node correctly with the corresponding display name mapping ("🕵️ Video Analyzer + Audio").
2026-03-30 12:56:10 +00:00
Meisoft 78ab6ea866 Merge pull request #37 from Meisoftcoltd/feature/lazy-evaluation-cycle-0-3427900761752346966
feat: Lazy evaluation via Explorer Cycle 0
2026-03-29 18:19:21 +02:00
Meisoftcoltd c9187b69ef feat: Implement lazy evaluation Cycle 0 architecture and update READMES
- Introduced global state memory (`global_source_frame_count`, `global_target_frames`, `global_stride`) in `loop.py`.
- Removed visual `source_frame_count` wire from `AutoLoopCalculator` in `video.py`
- Upgraded `AutoLoopCalculator` to execute as a blind "Explorer" in Cycle 0.
- Updated `LoadVideoWithSourceAudio` to intercept real `source_frame_count` directly from VHS payloads.
- Added dynamic calculation of total cycles based on intercepted frames at the end of Cycle 0.
- Updated both README.md and README_EN.md with v1.3.1 documentation reflecting the new Cycle 0 features.
2026-03-29 16:19:02 +00:00
Meisoftcoltd bb703951d5 feat: Implement lazy evaluation Cycle 0 architecture
- Introduced global state memory (`global_source_frame_count`, `global_target_frames`, `global_stride`) in `loop.py`.
- Removed visual `source_frame_count` wire from `AutoLoopCalculator` in `video.py`
- Upgraded `AutoLoopCalculator` to execute as a blind "Explorer" in Cycle 0.
- Updated `LoadVideoWithSourceAudio` to intercept real `source_frame_count` directly from VHS payloads.
- Added dynamic calculation of total cycles based on intercepted frames at the end of Cycle 0.
2026-03-29 16:08:21 +00:00
Meisoft 18f5041640 Merge pull request #36 from Meisoftcoltd/update-loop-calculator-v1.3.0-11365687735615672106
feat: Add AutoLoopCalculator and global ghost loop variables
2026-03-29 17:02:21 +02:00
Meisoftcoltd d6d29f998e feat: Add AutoLoopCalculator and remove circular loop wires\n\n- Replace WanFrameValidator with AutoLoopCalculator in video.py\n- Introduce global_total_loops in loop.py to track loops implicitly\n- Eliminate total_loops parameter from SequentialLoopStart, SequentialLoopTrigger, IncrementalVideoStitcher, SessionImageReceiver, and SessionImageSender to prevent ComfyUI wire clutter and avoid circular dependencies.\n- Add support for striding (select_every_nth) in frame distribution calculations.\n- Update README.md and README_EN.md to match the new architecture. 2026-03-29 14:58:28 +00:00
Meisoft e4cc1be979 Merge pull request #35 from Meisoftcoltd/fix/incremental-video-stitcher-tensor-init-8551476164075642520
fix(video): Prevent tensor dimension mismatch in post-processing nodes
2026-03-29 13:00:12 +02:00
Meisoftcoltd 8a37c8272c fix(video): Prevent tensor dimension mismatch in post-processing nodes
- Replaced 8x8 zero tensor initialization in IncrementalVideoStitcher intermediate steps.
- Sliced the actual tensor input (`images[0:1]`) to send the first frame as preview instead.
- This maintains active cables and properly initializes cache resolutions for downstream RIFE/Upscale nodes.
2026-03-29 10:58:17 +00:00
Meisoft a1398edab5 Merge pull request #34 from Meisoftcoltd/feat/v1.2.0-sequential-batcher-update-7177647917115546157
feat(nodes): update sequential batcher architecture for v1.2.0
2026-03-28 23:14:38 +01:00
Meisoftcoltd 7c858643e6 feat: v1.2.0 global update for Sequential Batcher nodes
- Update WanFrameValidator to dynamically calculate skip_frames based on current_loop_index.
- Update LoadVideoWithSourceAudio to extract and output the first frame safely.
- Add total_loops tracking and detailed debug logs to SequentialLoopStart.
- Add total_loops to SessionImageReceiver and SessionImageSender for progressive tracking.
- Enhance print logs with visible Spanish banners across modified nodes.
2026-03-28 22:12:23 +00:00
Meisoft e15f0ad26b Merge pull request #33 from Meisoftcoltd/jules-2851335323260380883-8873c9d0
Fix VHS inheritance issue via Lazy Evaluation Wrapper
2026-03-28 21:07:05 +01:00
Meisoftcoltd 22ef1bd2c9 fix(video): implement lazy evaluation wrapper for VHS inheritance
- Replaced `vhs_load_video_class` inheritance at import time with a Lazy Evaluation Wrapper that dynamically fetches inputs and instantiates the class at runtime.
- Removed legacy technical debt from `video.py`.
- Cleaned up local Python cache files to prevent `__pycache__` ghosts from interfering.
2026-03-28 20:06:38 +00:00
Meisoft afee0ffc6e Merge pull request #32 from Meisoftcoltd/feature/vhs-load-video-inheritance-2223059013720671906
Refactor video nodes to inherit from VHS and improve audio passthrough
2026-03-28 20:37:15 +01:00
Meisoftcoltd 1bed6fbcbb Refactor LoadVideoWithSourceAudio to inherit from VHS_LoadVideo.
Implement safe audio passthrough in `IncrementalVideoStitcher`.
Update README files to reflect VHS as a mandatory dependency.
2026-03-28 19:36:51 +00:00
Meisoft 6825022800 Merge pull request #31 from Meisoftcoltd/fix-video-unpacking-kwargs-1896346447845060005
Fix video node kwargs and unpacking issues
2026-03-28 18:11:51 +01:00
Meisoftcoltd 30a51aebae fix(video): resolve kwargs and unpacking errors in LoadVideoWithSourceAudio
- Fixes `ValueError: not enough values to unpack` by safely handling the `video` param from VHS_LoadVideo whether it is a string or tuple.
- Adds strict filtering for `kwargs` to prevent `force_rate` unexpected keyword argument crashes in newer versions of VHS.
- Modifies `IS_CHANGED` to return `time.time()` to forcefully bypass ComfyUI caching.
- Optimizes `IncrementalVideoStitcher` to return an 8x8 micro-tensor during intermediate loops to prevent missing input errors.
2026-03-28 17:08:50 +00:00
Meisoft 265ac2615b Merge pull request #30 from Meisoftcoltd/update-video-py-architecture-11899055623373293907
Refactor: Replace video.py Architecture and Fix Cache & Type Handling
2026-03-28 17:47:03 +01:00
Meisoftcoltd 0c00b7c1c0 refactor: replace video.py architecture and fix caching bugs
- Overwrite `video.py` with entirely new architecture.
- Add `WanFrameValidator` node.
- Update `LoadVideoWithSourceAudio` to use `time.time()` for cache invalidation instead of `float("NaN")`.
- Update `IncrementalVideoStitcher` to return a `torch.zeros((1, 8, 8, 3))` micro-tensor during intermediate loops to keep ComfyUI's strictly typed pipelines valid.
2026-03-28 16:46:26 +00:00
Meisoft bdd650ff69 Merge pull request #29 from Meisoftcoltd/fix-vhs-video-loader-kwargs-9842839560735093901
fix(video): handle kwargs strictly in LoadVideoWithSourceAudio to prevent VHS queue crash
2026-03-28 17:26:18 +01:00
Meisoftcoltd 9711831bb5 Fix ComfyUI queue crash in LoadVideoWithSourceAudio node
- Ensure `IS_CHANGED` and `VALIDATE_INPUTS` are fully utilizing `@classmethod` logic.
- Filter `**kwargs` before passing them to the native `VHS_LoadVideo` instance to prevent "unexpected keyword argument" crashes.
- Update internal Spanish comments to align with user requested format.
2026-03-28 16:25:47 +00:00
Meisoft 5e412b9a37 Merge pull request #28 from Meisoftcoltd/replace-vhs-validator-with-native-logic-4322568155129062363
Update LoadVideoWithSourceAudio validation and cache checking
2026-03-28 16:43:35 +01:00
Meisoftcoltd d7c671aff8 Replace VHS validation in LoadVideoWithSourceAudio with native file checking
- Removed dependency on VHS_LoadVideo cache and validation methods
- Replaced IS_CHANGED to check modification time instead of slow SHA256
- Replaced VALIDATE_INPUTS to check file existence directly and absorb kwargs
- These changes improve the node's independence and speed for large files
2026-03-28 15:43:06 +00:00
Meisoft 8b60e818fa Merge pull request #27 from Meisoftcoltd/fix-video-nodes-10941441744767870842
Arreglar nodos LoadVideoWithSourceAudio e IncrementalVideoStitcher
2026-03-28 16:09:20 +01:00
Meisoftcoltd 2f4a329478 Actualizar READMEs y restablecer tests
- Se actualizaron las descripciones en README.md y README_EN.md para reflejar las nuevas capacidades de LoadVideoWithSourceAudio (widget UI intacto, upload directo) y el Stitcher (INPUT_IS_LIST=False, passthrough directo de audio al último frame).
- Se restauraron los scripts de testing en `tests/` que se habían eliminado accidentalmente.
2026-03-28 15:08:50 +00:00
Meisoftcoltd 91a80b1169 Fix y mejoras en nodos de video para el manejo de UI, subida y batching
- Se reimplementó `LoadVideoWithSourceAudio` para envolver adecuadamente `VHS_LoadVideo`, añadiendo la directiva de UI "video_upload", y métodos para la verificación de cambios (IS_CHANGED, VALIDATE_INPUTS) mientras se conserva el widget de UI.
- Se ha expuesto explícitamente `INPUT_IS_LIST = False` en `IncrementalVideoStitcher` para forzar el tratamiento de imágenes como tensores puros.
- El passthrough de audio en `IncrementalVideoStitcher` ya funciona correctamente de forma predeterminada sin cambios adicionales.
- Se agregó el nuevo alias de nodo en `__init__.py` para su registro en ComfyUI.
2026-03-28 15:01:44 +00:00
Meisoft d6e1b997b8 Merge pull request #26 from Meisoftcoltd/refactor-incremental-stitcher-and-add-source-audio-loader-17321561639295743240
Refactor IncrementalVideoStitcher and Add LoadVideoWithSourceAudio
2026-03-28 15:37:49 +01:00
Meisoftcoltd def18e6390 Update README documentation for new video capabilities
Changes:
- Documented zero-OOM tensor handling and audio passthrough for IncrementalVideoStitcher in README.md and README_EN.md.
- Added documentation for the new LoadVideoWithSourceAudio node explaining dynamic VHS integration and uncropped audio extraction.
2026-03-28 14:34:05 +00:00
Meisoftcoltd 10bf229175 Refactor IncrementalVideoStitcher to handle raw image tensors and add LoadVideoWithSourceAudio node.
Changes:
- Modified IncrementalVideoStitcher to process IMAGE tensors directly instead of MP4 lists.
- Implemented RAM/VRAM saving mechanism by saving tensor state dynamically to `.pt` files and cleaning them manually via `gc`.
- Introduced LoadVideoWithSourceAudio mapping to extract complete original tracks dynamically.
2026-03-28 14:26:11 +00:00
Meisoft 18eb230109 Merge pull request #25 from Meisoftcoltd/feat/input-validations-16278556174992080220
feat: Add explicit input validations and Spanish error messages to key nodes
2026-03-23 21:57:43 +01:00
Meisoftcoltd e87cad300c feat: add explicit input validations to key nodes
- `loop.py`: Added check for `trigger_dependency` in `SequentialLoopTrigger.trigger_next`.
- `image.py`: Added checks for `generated_images` and `current_loop_index` in `SessionImageSender.set_image`.
- `video.py`: Added list-aware checks for `trigger` and `current_loop_index` in `IncrementalVideoStitcher.stitch_incremental` due to `INPUT_IS_LIST = True`.

All validations throw a `ValueError` with clear Spanish instructions when inputs are missing to provide immediate user feedback on the ComfyUI canvas.
2026-03-23 20:49:22 +00:00
Meisoft 64596500b0 Merge pull request #24 from Meisoftcoltd/fix/loop-reverse-cache-16882262106205794182
Fix Reverse Cache & Add Progressive Video/Image Storage
2026-03-23 21:13:11 +01:00
Meisoftcoltd bfe40b1b65 Update README documentation to v1.1.0 and add new features
Updated README.md and README_EN.md to version 1.1.0. Documented the new
Anti-Cache Injection mechanism in the Loop Trigger, progressive keyframe
and MP4 saving features, and audio multiplexing using torchaudio and
FFmpeg. Also updated the setup instructions with the new wiring requirements.
2026-03-23 20:09:36 +00:00
Meisoftcoltd 08d7d2747d Add support for optional audio multiplexing
Updated video.py to accept an optional 'AUDIO' input in IncrementalVideoStitcher.
Uses torchaudio to save the waveform temporarily, and then applies ffmpeg with
the '-shortest' flag to seamlessly multiplex it with the concatenated mp4 segments.
2026-03-23 20:03:40 +00:00
Meisoftcoltd 9939314b2f Fix loop reverse cache with payload mutation and add debug logic
Replaced loop.py and image.py, and updated video.py to fix the 'reverse cache'
issue by injecting the new index directly into the ComfyUI API JSON payload.
Added large debug banners in Spanish, PNG keyframe extraction, and progressive MP4 saving.
2026-03-23 19:55:57 +00:00
Meisoft 3d5ec1646d Merge pull request #23 from Meisoftcoltd/feature/cache-breaking-seed-mutator-8604892349368461134
Add Seed Mutator to Loop Trigger
2026-03-23 18:36:51 +01:00
Meisoftcoltd e68d9026d1 Update READMEs to set Spanish as primary language
- Replaced README.md with the Spanish translation.
- Renamed the old English README to README_EN.md.
- Added cross-links between the two versions.
- Updated documentation to include the new Seed Mutator feature for v1.0.1.
2026-03-23 17:35:24 +00:00