🎬⏱️AGSoft Video Speed Ramp
Start slow, end fast — or the whole clip at double time
- video
- video_path
- duration_seconds
- duration_timecode
- file_size_mb
- width
- height
- fps
- frames_est
🎬⏱️AGSoft Video Speed Ramp is the node for shots that should change speed. Not uniformly fast or slow - that's the simpler time-effects node - but ramping from one speed to another, the way an action sequence accelerates into its payoff or a reveal slows down as it lands.
The three controls are dead simple:
speed_start- speed at the beginning of the ramp. Below 1 is slow-motion, above 1 is timelapse.speed_end- the speed the clip reaches afterramp_timeand then holds.ramp_time- how many seconds it takes to go from start to end. Here's the subtle one: 0 means ramp across the whole clip, not "no ramp." If you want an instant change... honestly, use Time Effects instead. This node is about the gradual shift.
So a classic setup: speed_start 0.5 (slow), speed_end 2 (double speed), ramp_time 0 - the whole clip accelerates from half-speed to double. Or speed_start 1, speed_end 1 with any ramp_time - that's just a constant-speed re-encode, which is not what this node is for, but it works.
audio_mode defaults to keep_original - the original audio is copied unchanged. The tooltip is upfront that a variable ramp can leave the audio desynced from the picture, because the video's timeline is being warped while the audio isn't. For music beds and effects shots that's usually fine; for anything with sync'd dialog, be careful or mute it.
The source is the optional video input (priority) or video_path. encoder_mode (auto / nvenc / cpu) and quality_preset (fast / balanced / quality) round out the shared pack controls.
Outputs
The standard set: video_path (STRING), duration_seconds, duration_timecode, file_size_mb, width, height, fps, frames_est. Empty output_path → ComfyUI/output.
Install
Part of the comfyui-AGSoft pack. ComfyUI Manager → search "comfyui-AGSoft" → Install → restart, or:
cd ComfyUI/custom_nodes
git clone https://github.com/Art-xmaster/comfyui-AGSoft
Restart. No models; it drives the bundled FFmpeg (or a system ffmpeg on PATH).
If ramp_time trips you up - and it will - just remember the "0 = across the whole clip" rule and check the duration_seconds output after the run. It's the fastest way to see whether your ramp actually happened or you accidentally built a constant-speed clip.
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| output_name | STRING | speed_ramp.mp4 | Output filename. The extension is kept as entered (.mp4 by default). --- Имя итогового файла. Расширение сохраняется как введено (по умолчанию .mp4). |
| output_path | STRING | Output directory. If empty, ComfyUI/output is used. --- Папка сохранения. Если пусто, используется ComfyUI/output. | |
| video_path | STRING | Path to the source video. Used only if video input is not connected. --- Путь к исходному видео. Используется, только если вход video не подключен. | |
| speed_start | FLOAT | 1.000.1–10 | Speed at the beginning of the ramp. < 1 = slow-motion, > 1 = timelapse. --- Скорость в начале ramp. < 1 = замедление, > 1 = ускорение. |
| speed_end | FLOAT | 2.000.1–10 | Speed at the end of the ramp. The clip reaches this speed after ramp_time. --- Скорость в конце ramp. Клип достигает этой скорости через ramp_time. |
| ramp_time | FLOAT | 0.00–86400 | Seconds to ramp from speed_start to speed_end. 0 = ramp across the whole clip. After ramp_time the speed stays constant at speed_end. --- Секунды для разгона от speed_start до speed_end. 0 = ramp на весь клип. После ramp_time скорость остаётся постоянной speed_end. |
| audio_mode | COMBO | keep_original | keep_original = copy the original audio unchanged (possible desync with a variable ramp). mute = no audio. --- keep_original = копировать оригинальное аудио без изменений (возможен рассинхрон с переменным ramp). mute = без звука. |
| encoder_mode | COMBO | auto | auto = NVENC if available, otherwise CPU. nvenc = force NVENC. cpu = force libx264. --- auto = NVENC, если доступен, иначе CPU. nvenc = принудительно NVENC. cpu = принудительно libx264. |
| quality_preset | COMBO | balanced | Encoding quality preset. / Пресет качества кодирования. |
| videoopt | VIDEO | Optional source video from ComfyUI. Has priority over video_path. --- Опциональное исходное видео из ComfyUI. Имеет приоритет над video_path. |
Outputs (8)
| Name | Type | Description |
|---|---|---|
| video_path | STRING | — |
| duration_seconds | FLOAT | — |
| duration_timecode | STRING | — |
| file_size_mb | FLOAT | — |
| width | INT | — |
| height | INT | — |
| fps | FLOAT | — |
| frames_est | INT | — |