ComfyTV/Videogenerated

Video Volume(VideoVolumeStage)

Video Volume adjusts the audio level of a video and optionally ramps the sound in and out at the start and end of the clip.

Video Volume Stage

video
video
volume
1.00
fade_in_s
0.0
fade_out_s
0.0
ComfyTV

Description

Video Volume adjusts the audio level of a video and optionally ramps the sound in and out at the start and end of the clip. It takes a COMFYTV_VIDEO input, applies the requested gain and fades, and returns the processed result as a COMFYTV_VIDEO for use by downstream nodes in the ComfyTV video pipeline.

Inputs

volume

A floating point gain multiplier applied to the video's audio track.

  • Default: 1.0 (unity gain, the original level is unchanged)
  • Range: 0.0 to 8.0
  • Step: 0.05

Set this to 0.0 to mute the clip, values between 0.0 and 1.0 to reduce the level, and values above 1.0 to boost it. The maximum of 8.0 corresponds to roughly +18 dB of gain. Because the slider step is 0.05, the level can be trimmed in fine increments.

fade_in_s

Length of the fade-in at the beginning of the clip, in seconds.

  • Default: 0.0 (no fade-in)
  • Range: 0.0 to 60.0
  • Step: 0.1

The audio starts silent and ramps up to the target volume over this duration.

fade_out_s

Length of the fade-out at the end of the clip, in seconds.

  • Default: 0.0 (no fade-out)
  • Range: 0.0 to 60.0
  • Step: 0.1

The audio ramps down from the target volume to silence over this duration ending at the close of the clip.

video

The COMFYTV_VIDEO clip whose audio should be adjusted. This input is optional, so the node can be placed in a graph before a video source is connected.

Outputs

COMFYTV_VIDEO

The processed clip with the volume and fade settings applied. It can be passed to any other ComfyTV node that accepts a COMFYTV_VIDEO input.

Usage Notes

  • Leave volume at 1.0, fade_in_s at 0.0, and fade_out_s at 0.0 to pass a clip through without changing its audio.
  • Use only a fade-in or only a fade-out by setting the other fade duration to 0.0.
  • Fades are specified in seconds rather than frames, so the same settings stay consistent when clips have different frame rates.
  • Combine a low volume with a fade-in for a gentle opening, or use a longer fade_out_s to avoid an abrupt cut at the end of the clip.
  • The video input is optional, so the node can be added and configured before a clip is wired in.

Comments

Sign in with GitHub to join the discussion.

Loading comments…