ComfyUI Node

H3 Context Trim

Remove the leading pinned frames from a decoded H3 clip, trimming picture and sound by the same duration.

By Adudeguyman·Created 16 days ago·Updated 6 days ago· 15
H3 Context Trim
  • images
  • audio
  • images
  • audio
trim_frames0
fps24.000
match_tailtrue
Categoryconditioning/minimax

Inputs (5)

NameTypeDefaultDescription
imagesIMAGE
trim_framesINT00–4096
audiooptAUDIODecoded audio for the same clip. Trimmed by the matching duration so sound stays locked to picture. Leave unwired for silent clips.
fpsoptFLOAT24.0001–240Frame rate used to convert the trim into an audio duration. Must match what you feed Create Video.
match_tailoptBOOLEANtrueTruncate or zero-pad audio so its duration equals frames/fps exactly. H3 rounds its 40 Hz audio grid to the nearest step, producing about 8ms of excess or shortage on some lengths.

Outputs (2)

NameTypeDescription
imagesIMAGE
audioAUDIO