ComfyTV/Videogenerated

Video Rotate(VideoRotateStage)

Video Rotate applies a quarter-turn rotation and optional mirroring to a video clip.

Video Rotate Stage

video
video
rotate_deg
0
flip_h
flip_v
ComfyTV

Description

Video Rotate applies a quarter-turn rotation and optional mirroring to a video clip. It is part of the ComfyTV video stage nodes (category ComfyTV/Video) and outputs a transformed COMFYTV_VIDEO for use downstream.

Rotation is restricted to right angles: the rotate_deg widget steps in 90-degree increments from 0 to 270, so the available orientations are 0, 90, 180, and 270 degrees. Horizontal and vertical flips can be enabled independently and combined with any rotation.

With the default settings (rotate_deg = 0, flip_h = false, flip_v = false) the node performs no visible transformation and simply passes the clip through, which makes it safe to leave in a workflow while testing.

Inputs

rotate_deg

  • Type: INT
  • Default: 0
  • Range: 0 to 270
  • Step: 90

The rotation to apply, in degrees. Because the widget steps by 90 and is capped at 270, the valid values are 0, 90, 180, and 270. Use 0 to disable rotation.

flip_h

  • Type: BOOLEAN
  • Default: false

Mirrors the video horizontally (left to right). Enable this to flip the image along the vertical axis.

flip_v

  • Type: BOOLEAN
  • Default: false

Mirrors the video vertically (top to bottom). Enable this to flip the image along the horizontal axis.

video

  • Type: COMFYTV_VIDEO
  • Required: no

The video clip to transform. This input is optional, so the node can be placed in workflows without an explicit connection; connect a COMFYTV_VIDEO when you want a specific clip to be rotated or flipped.

Outputs

  • COMFYTV_VIDEO: the transformed clip, with the selected rotation and flips applied. The output type matches the input type, so it can be chained directly into other ComfyTV video nodes.

Usage Notes

  • Combine rotate_deg with flip_h and/or flip_v to achieve all eight axis-aligned orientations of a rectangular frame (four rotations, each with or without mirroring).
  • Rotation by 90 or 270 degrees swaps the clip's width and height. Keep this in mind when downstream nodes expect a particular resolution or aspect ratio.
  • The node's default state is an identity operation, so it can be added to an existing graph without changing the visual result until a rotation or flip is selected.
  • Only right-angle rotations are supported by this widget. For arbitrary angles, use a dedicated rotate or transform node that accepts continuous angle values.

Comments

Sign in with GitHub to join the discussion.

Loading comments…