This commit is contained in:
sean bradley
2025-10-10 07:49:18 +01:00
parent 6e78c83410
commit 0c49ad33fa
2 changed files with 41 additions and 0 deletions
+15
View File
@@ -1,2 +1,17 @@
# ComfyUI Video Reverse
A tool to reverse the frames of a video using CompfyUI.
# Install ComfyUI Video Reverse
1. Navigate to your ComfyUI/custom_nodes folder.
2. Run,
git clone https://github.com/Sean-Bradley/ComfyUI-Image-Compare.git
3. Restart ComfyUI
You will find the new Video Reverse node in the Nodes menu item under SBCODE.
Or you can double click the workspace and search for `video reverse`.
+26
View File
@@ -0,0 +1,26 @@
class VideoReverseNode:
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
"frames": ("IMAGE",),
}
}
RETURN_TYPES = ("IMAGE",)
FUNCTION = "reverse"
CATEGORY = "SBCODE"
def reverse(self, frames):
if frames is None or len(frames) == 0:
return {}
frames.reverse()
print("The video frames have now been reversed.")
return (frames,)
NODE_CLASS_MAPPINGS = {"VideoReverseNode": VideoReverseNode}
NODE_DISPLAY_NAME_MAPPINGS = {"VideoReverseNode": "Video Reverse"}