ComfyUI Node
⭐ Star Video Compressor
Compress videos to a chosen quality or a desired file size - handy for Discord's 10 MB limit. Standalone, no Video Helper Suite required. See web/docs/StarVideoCompressor.md
⭐ Star Video Compressor
- video
- images
- audio
- Filenames
- info
◄quality60►
◄formatvideo/h264-mp4►
◄presetmedium►
◄filename_prefixStarVideo►
◄target_size_mb0.0►
◄video_path►
◄frame_rate30.00►
◄save_audiotrue►
◄save_outputtrue►
◄drop_first_frames0►
◄drop_last_frames0►
Category⭐StarNodes/Video
Inputs (14)
| Name | Type | Default | Description |
|---|---|---|---|
| quality | INT | 600–100 | Compression quality (0 = smallest file, 100 = best quality). IGNORED when target_size_mb is greater than 0. |
| format | COMBO | video/h264-mp4 | 11 options: video/h264-mp4, video/h265-mp4, video/vp9-webm, video/av1-mp4, video/h264-mkv, video/h265-mkv, +5 |
| preset | COMBO | medium | Encoder speed vs efficiency. Slower = smaller file at the same quality, but takes longer. |
| filename_prefix | STRING | StarVideo | Output filename. May contain subfolders, e.g. 'discord/my_clip' - missing folders are created inside the ComfyUI output folder. |
| target_size_mb | FLOAT | 0.00–1000000 | Desired output size in MiB. 0 = off (quality slider is used). When > 0 this WINS over the quality slider: the bitrate is calculated from the duration (two-pass where supported). |
| video_path | STRING | Optional: direct path to a video file (absolute, or relative to the ComfyUI input folder). Used when no 'video' input is connected. Leave empty to use the 'images' input. | |
| frame_rate | FLOAT | 30.001–240 | Only used when compressing an IMAGE batch. Tip: right-click the node to convert this widget into an input and connect the loader's fps output. |
| save_audio | BOOLEAN | true | — |
| save_output | BOOLEAN | true | True = ComfyUI output folder, False = temp folder. |
| drop_first_frames | INT | 00–1000 | Skip this many frames from the start of the output (e.g. 10 = the output starts at frame 11). 0 = off. Any connected/embedded audio is shifted by the same amount to stay in sync. |
| drop_last_frames | INT | 00–1000 | Cut this many frames from the end of the output (e.g. 10 = the last 10 frames are removed). 0 = off. Works together with drop_first_frames. Any connected/embedded audio is trimmed to match so it stays in sync. |
| videoopt | STAR_FILENAMES | Video file(s) from the 'Star Video Loader' node. | |
| imagesopt | IMAGE | Alternative: encode + compress an image batch directly (uses frame_rate). | |
| audioopt | AUDIO | Optional external audio track (ComfyUI core audio, e.g. from the 'LoadAudio' node or the Star Video Loader). |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| Filenames | STAR_FILENAMES | — |
| info | STRING | — |