Change playback speed
speed_rampAdjust clip playback speed with independent video and audio control. Preserve pitch via time-stretching, or change pitch for tape-style effects, and optionally discard audio.
Instructions
Speed a clip up or slow it down, video and audio independently.
By default the audio is time-stretched so pitch is preserved, chained through as many atempo stages as the factor needs. Set keep_pitch false for a tape speed-up sound, or drop_audio to discard the track. Set audio_speed to hold audio at a different rate from the video.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| speed | Yes | Playback multiplier: 2.0 is twice as fast, 0.5 is half. | |
| encode | No | ||
| drop_audio | No | Discard the audio track entirely. | |
| input_path | Yes | Path to the source media file. | |
| keep_pitch | No | Preserve pitch by time-stretching the audio. When false the audio is resampled instead, so it changes pitch like a tape speed-up. | |
| audio_speed | No | Independent audio multiplier. Defaults to matching 'speed'. | |
| output_path | No | Destination file. If omitted, the output is written into the job's workspace directory and its path is returned by job_result. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | ||
| job_id | Yes | ||
| status | No | queued | |
| message | No | Job queued. Poll job_status for progress, then job_result. |