ComfyUI Node
Video Crop & Trim (FFmpeg)
A ComfyUI node in video/processing with 15 inputs and 2 outputs.
Video Crop & Trim (FFmpeg)
- video
- frames
- audio
◄crop_x0►
◄crop_y0►
◄crop_width512►
◄crop_height512►
◄trim_mode▾►
◄trim_start0.00►
◄trim_end0.00►
◄output_format▾►
◄codec▾►
◄quality23►
◄audio_mode▾►
◄video_path►
◄fps30.000►
◄extra_ffmpeg_args►
Categoryvideo/processing
Inputs (15)
| Name | Type | Default | Description |
|---|---|---|---|
| crop_x | INT | 00–8192 | Left edge of the crop region (pixels, even numbers only) |
| crop_y | INT | 00–8192 | Top edge of the crop region (pixels, even numbers only) |
| crop_width | INT | 5122–8192 | Width of the crop region (pixels, even numbers only) |
| crop_height | INT | 5122–8192 | Height of the crop region (pixels, even numbers only) |
| trim_mode | COMBO | How trim_start / trim_end are interpreted | |
| trim_start | FLOAT | 0.000–86400 | Start of the kept region (seconds or frame index) |
| trim_end | FLOAT | 0.000–86400 | End of the kept region (seconds or frame index). 0 = until end of video. |
| output_format | COMBO | 4 options: mp4, webm, avi, mov | |
| codec | COMBO | 4 options: libx264, libx265, libvpx-vp9, prores | |
| quality | INT | 230–51 | CRF value - lower = better quality / larger file |
| audio_mode | COMBO | strip – discard audio entirely (video frames only). extract – trim audio to match the video clip and output it as a separate AUDIO tensor compatible with VHS Video Combine. | |
| videoopt | IMAGE | Connect IMAGE frames here (takes priority over video_path) | |
| video_pathopt | STRING | Video file path. Can be filled automatically using the Upload Your Video button. | |
| fpsopt | FLOAT | 30.0001–240 | Output framerate (also used to convert frame-based trim values) |
| extra_ffmpeg_argsopt | STRING | Extra ffmpeg output arguments passed verbatim |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| frames | IMAGE | — |
| audio | AUDIO | — |