Video Time Stretch Calculator
Use our free Video time stretch Calculator to learn and practice. Get step-by-step solutions with explanations and examples.
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer
Video Time Stretch Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser โ no data is sent to any server.
Formula: Speed Factor = Original Duration / Target Duration
Worked example โ 25 sec output | 360 new frames via interpolation | Quality: Significant impact
Formula
Speed Factor = Original Duration / Target Duration
Where speed factor greater than 1 means faster playback and less than 1 means slower. Target frames = target duration times target FPS. Pitch shift (semitones) = 12 x log2(speed factor). Duration change = target - original. New frames needed = max(0, target frames - original frames).
Worked Examples
Example 1: Creating Slow Motion from Standard Footage
Problem:A 10-second clip shot at 24 fps needs to be slowed to 40% speed for a dramatic slow-motion effect, output at 24 fps.
Solution:Speed factor = 0.40 (40%) New duration = 10 / 0.40 = 25 seconds Original frames = 10 x 24 = 240 Target frames = 25 x 24 = 600 New frames needed = 600 - 240 = 360 interpolated frames Pitch shift (if no correction) = 12 x log2(0.40) = -15.86 semitones
Result:25 sec output | 360 new frames via interpolation | Quality: Significant impact
Example 2: Speed Ramp for Action Sequence
Problem:A 30-second fight scene needs to be compressed to 20 seconds while maintaining 30 fps output from 30 fps source.
Solution:Speed factor = 30 / 20 = 1.50 (150% speed) Original frames = 30 x 30 = 900 Target frames = 20 x 30 = 600 Frames to remove = 900 - 600 = 300 (every 3rd frame dropped) Pitch shift = 12 x log2(1.50) = +7.02 semitones With pitch lock: audio maintains original pitch
Result:150% speed | 300 frames dropped | Pitch shift: +7.02 semitones (correctable)
Frequently Asked Questions
What is video time stretching and how does it work?
Video time stretching (also called time remapping or speed ramping) changes the playback duration of video content without changing its frame rate. When slowing down video, new intermediate frames must be created through interpolation because the original footage does not contain enough frames to fill the extended duration. When speeding up, frames are selectively dropped or blended. Modern time stretching algorithms use optical flow analysis to generate intermediate frames by tracking motion between existing frames. This produces much smoother results than simple frame duplication or dropping. Time stretching is distinct from simply changing playback speed, which would also alter the frame rate.
What is the difference between time stretching and speed change?
A pure speed change alters both the duration and the effective frame rate of playback. Playing a 24 fps clip at double speed shows it at effectively 48 fps worth of content in the time of 24 fps, halving the duration but using all original frames. Time stretching changes the duration while maintaining the original frame rate output, requiring frame interpolation or removal. Additionally, a simple speed change without pitch correction alters audio pitch proportionally, while time stretching with pitch lock maintains the original audio pitch using algorithms like phase vocoding or granular synthesis. The distinction matters in professional post-production where maintaining consistent frame rate and audio quality is essential.
How does time stretching affect video quality?
Quality degradation depends on the stretch amount and algorithm used. Small changes (under 10%) typically produce nearly invisible artifacts. Moderate changes (10-30%) may show minor motion interpolation artifacts like ghosting around fast-moving objects or warping at object edges. Large changes (over 50%) often produce noticeable artifacts including swimming textures, object splitting, and morphing distortions. Optical flow-based interpolation (used in tools like Twixtor, DaVinci Resolve, and Adobe Premiere) produces the best results but can still struggle with complex motion, occlusion, and fine details like hair or particle effects. Recording at higher frame rates (120+ fps) and then slowing down produces the cleanest slow motion.
What happens to audio when video is time-stretched?
Without pitch correction, changing playback speed proportionally changes audio pitch. Speeding up raises pitch, slowing down lowers it. A 2x speed increase raises pitch by one octave (12 semitones). Pitch-locked time stretching uses algorithms to maintain the original pitch while changing duration. Phase vocoder algorithms divide audio into overlapping windows and adjust phase relationships, but can introduce metallic artifacts. Granular synthesis chops audio into tiny grains and rearranges them, which can cause subtle rhythmic artifacts. Formant-preserving algorithms additionally maintain vocal characteristics. For small speed changes (under 20%), modern algorithms produce nearly transparent results. Larger changes may require manual audio sweetening.
How do frame rate conversions interact with time stretching?
When the source and target frame rates differ, time stretching becomes more complex. Converting 24 fps to 30 fps without speed change requires creating 25% more frames (6 new frames per second). Converting with speed change compounds the requirements. For example, slowing 24 fps footage by 50% to play at 30 fps requires generating 36 new frames for every 24 original frames (150% new frame creation). The classic 24-to-29.97 fps conversion for NTSC broadcast uses 3:2 pulldown, which is not true time stretching but rather field duplication. Modern workflows increasingly avoid pulldown in favor of native frame rate delivery, but frame rate conversion remains necessary for certain broadcast and cinema distribution requirements.
What tools are used for professional video time stretching?
Professional time stretching tools include RE:Vision Effects Twixtor (the industry standard plugin, using optical flow with per-pixel motion estimation), DaVinci Resolve Speed Warp (built-in optical flow retiming), Adobe Premiere Pro Optical Flow (frame interpolation retiming), After Effects Time Warp and Pixel Motion (two levels of quality), Final Cut Pro Optical Flow (integrated retiming), and Nuke Kronos (high-end compositing retiming tool). Hardware solutions like Cintel Film Scanners and Blackmagic Design products also offer real-time retiming. Each tool has different strengths. Twixtor excels at extreme slow motion, DaVinci Resolve offers excellent quality in an integrated color grading workflow, and Nuke provides the most control for VFX shots.
What is speed ramping and how is it calculated?
Speed ramping (also called variable speed or time remapping) gradually changes playback speed within a single clip, creating smooth transitions between normal speed, slow motion, and fast motion. The calculation involves defining speed keyframes and interpolating between them. If speed ramps from 100% to 50% over 2 seconds, the total frames played during that transition equals the integral of the speed curve. For a linear ramp from 100% to 50%, the average speed is 75%, so 2 seconds of output uses 1.5 seconds of source material. Bezier curves create smoother easing in and out of speed changes. Professional editors often use ease-in and ease-out curves to prevent jarring speed transitions.
How do you calculate pitch shift from speed change?
Pitch shift in semitones from a speed change equals 12 times the logarithm base 2 of the speed factor. A speed factor of 2.0 (double speed) shifts pitch up by 12 semitones (one octave): 12 times log2(2) = 12. A speed factor of 0.5 (half speed) shifts pitch down by 12 semitones: 12 times log2(0.5) = -12. A speed factor of 1.5 (50% faster) shifts pitch up by about 7.02 semitones. Converting to cents (hundredths of a semitone): multiply semitones by 100. These calculations are important for music production where tempo changes must be precise and any unintended pitch shift could take instruments out of tune. Pitch-locked time stretching algorithms counteract this shift.
What are best practices for achieving clean slow motion?
The best slow motion comes from shooting at high frame rates rather than time-stretching normal footage. For 2x slow motion, shoot at 48+ fps. For 4x, use 96+ fps. For ultra-slow motion (8x-40x), cameras like the Phantom shoot at 1000+ fps. When time stretching is necessary, use the highest quality source material possible, as compression artifacts become more visible. Avoid stretching footage with heavy compression (like H.264 at low bitrates). Shoot with fast shutter speeds (typically 1/frame rate times 4 or faster) to reduce motion blur, which helps interpolation algorithms track motion. Content with simple, predictable motion (like a ball flying) stretches much better than complex motion (like crowds or water splashing).
How does time stretching work in digital audio workstations for video scoring?
In DAWs used for film and video scoring, time stretching is essential for fitting music cues to specific scene timings. Composers often write to a temporary timing and then adjust to match the final edit. DAWs like Pro Tools, Logic Pro, and Cubase offer real-time time stretching of audio regions with pitch lock. The Elastique algorithm (used in Cubase and many other DAWs) and Complex Pro (in Ableton Live) produce high-quality results for small to moderate changes. For film scoring, musicians may also adjust tempo maps instead of stretching audio, having the DAW follow a tempo track that accelerates or decelerates to hit specific cue points. This avoids audio artifacts entirely since the performance adapts naturally.
References
Background & Theory
History
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer ยท Editorial policy
Related Calculators
๐งฎExam Time Allocation Calculator
Calculate exam time allocation with inputs, formulas, and instant results.
๐งฎHomework Time Planner Calculator
Calculate homework time planner with inputs, formulas, and instant results.
๐งฎAnimation Frame Time Calculator
Calculate animation frame time with inputs, formulas, and instant results.
๐งฎFrame Interpolation Time Calculator
Calculate frame interpolation time with inputs, formulas, and instant results.
๐งฎTempo to Time Signature Calculator
Calculate tempo to time signature with inputs, formulas, and instant results.
๐งฎVideo Bitrate Estimator
Calculate video bitrate estimator with inputs, formulas, and instant results.
๐งฎVideo Frame Size Calculator
Calculate video frame size with inputs, formulas, and instant results.
๐งฎGPA Trend Analyzer โ Track Your Grades Over Time
Calculate gpa trend analyzer with inputs, formulas, and instant results.