Nodes/comfyui-AGSoft/🎬⏱️AGSoft Video Speed Ramp
ComfyUI Node

🎬⏱️AGSoft Video Speed Ramp

Start slow, end fast — or the whole clip at double time

By Art-xmaster·Created about a year ago·Updated a day ago· 24
🎬⏱️AGSoft Video Speed Ramp
  • video
  • video_path
  • duration_seconds
  • duration_timecode
  • file_size_mb
  • width
  • height
  • fps
  • frames_est
output_namespeed_ramp.mp4
output_path
video_path
speed_start1.00
speed_end2.00
ramp_time0.0
audio_modekeep_original
encoder_modeauto
quality_presetbalanced

🎬⏱️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 after ramp_time and 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_pathComfyUI/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.

CategoryAGSoft/Video

Inputs (10)

NameTypeDefaultDescription
output_nameSTRINGspeed_ramp.mp4Output filename. The extension is kept as entered (.mp4 by default). --- Имя итогового файла. Расширение сохраняется как введено (по умолчанию .mp4).
output_pathSTRINGOutput directory. If empty, ComfyUI/output is used. --- Папка сохранения. Если пусто, используется ComfyUI/output.
video_pathSTRINGPath to the source video. Used only if video input is not connected. --- Путь к исходному видео. Используется, только если вход video не подключен.
speed_startFLOAT1.000.1–10Speed at the beginning of the ramp. < 1 = slow-motion, > 1 = timelapse. --- Скорость в начале ramp. < 1 = замедление, > 1 = ускорение.
speed_endFLOAT2.000.1–10Speed at the end of the ramp. The clip reaches this speed after ramp_time. --- Скорость в конце ramp. Клип достигает этой скорости через ramp_time.
ramp_timeFLOAT0.00–86400Seconds 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_modeCOMBOkeep_originalkeep_original = copy the original audio unchanged (possible desync with a variable ramp). mute = no audio. --- keep_original = копировать оригинальное аудио без изменений (возможен рассинхрон с переменным ramp). mute = без звука.
encoder_modeCOMBOautoauto = NVENC if available, otherwise CPU. nvenc = force NVENC. cpu = force libx264. --- auto = NVENC, если доступен, иначе CPU. nvenc = принудительно NVENC. cpu = принудительно libx264.
quality_presetCOMBObalancedEncoding quality preset. / Пресет качества кодирования.
videooptVIDEOOptional source video from ComfyUI. Has priority over video_path. --- Опциональное исходное видео из ComfyUI. Имеет приоритет над video_path.

Outputs (8)

NameTypeDescription
video_pathSTRING
duration_secondsFLOAT
duration_timecodeSTRING
file_size_mbFLOAT
widthINT
heightINT
fpsFLOAT
frames_estINT