Measured guide

How to speed up a video without breaking the sound

Updated Measured November 1, 2026Big Buck Bunny footage, CC BY 3.0Free, no signup

A video timeline showing an audio waveform misaligned on the left and perfectly synchronized on the right, with a glowing.

Short answer

Change the picture timing with setpts and the sound with atempo in one ffmpeg command, and add fps=30 (or your clip's own rate) after setpts. Without it, ffmpeg 6.1.1 wrote two extra frames and the picture landed 2 frames (67 ms at 30 fps) after the sound at every speed from 1.5x to 10x in our test. The sound keeps its pitch: a 440 Hz tone measured 440.0 Hz at 2x, 4x and 10x. Past 2x, ffmpeg's documentation says atempo skips samples, so we chain it.

Speed a clip up to 2x in your browser

Key takeaways

  • One command does both streams: setpts=PTS/2,fps=30 for the picture and atempo=2 for the sound (full command below). Our 20 second clip became 10.010 s at 2x with exactly 300 frames. The plain setpts recipe gave 302.
  • We put a white flash and a 1 kHz beep at 6.0 s in a 12 second clip. After 2x with setpts only, the flash started at 3.067 s and the beep at 2.995 s, so the picture ran 2.0 frames late. With fps=30 the flash started at 3.000 s.
  • Pitch survives: atempo measured 440.0 Hz for a 440 Hz tone at 2x, at 4x with two chained filters, and at 4x and 10x with one filter. Retiming by resampling instead measured 880.0 Hz at 2x.
  • Speeding up only the picture leaves the sound alone: at 2x the video stream was 10.067 s and the audio stream still 20.010 s, so the file plays for 20 seconds. Speed up both, or drop the sound with -an.
  • Files shrink less than the length does. At 2x the 20 second clip became 10 seconds but the file kept 77% of its size (3957 KB against 5121 KB), and at 10x it kept 38%, because each second holds more motion.
  • The Koldflux speed tool had the same two frame lag, and we fixed it on November 1, 2026 after this test found it. Its choices stop at 2x.

Speeding up in the browser with Koldflux

The quickest way, with no terminal: the free speed tool below covers 0.5x to 2x. For faster speeds or exact control of sync and frame rate, use the ffmpeg commands after it.

The free speed tool offers 0.5x, 0.75x, 1.5x and 2x and runs ffmpeg inside your browser, so the file is not uploaded. We ran it in headless Chromium on the same 20 second clip: 2x returned 300 frames and 10.000 s after 34.1 s of processing, and 1.5x returned 400 frames and 13.333 s after 40.1 s. Anything faster than 2x needs a second pass, which re-encodes the picture again, or the ffmpeg command above.

Free tools:Speed a clip up to 2x in your browserSpeed and duration calculator

The command that keeps picture and sound together

Speeding up a video is two retimes that must match. The picture needs new timestamps and the sound needs to be squeezed in time without changing its pitch. In ffmpeg the first is the setpts filter and the second is atempo. For a factor S, setpts=PTS/S makes every frame arrive S times sooner and atempo=S plays the audio S times faster.

The command below speeds a clip up 2x. The part most recipes leave out is fps=30 after setpts. It tells ffmpeg to hold the output at 30 frames per second by duplicating or dropping frames. Our reference, the ffmpeg filter documentation, describes fps as "Convert the video to specified constant frame rate by duplicating or dropping frames as necessary." Use your clip's own rate in place of 30; recent builds also accept fps=source_fps, which the documentation defines as "The input's frame rate", and we ran that form in our tool tests.

ffmpeg -i in.mp4 \
  -filter_complex "[0:v]setpts=PTS/2,fps=30[v];[0:a]atempo=2[a]" \
  -map "[v]" -map "[a]" \
  -c:v libx264 -crf 20 -pix_fmt yuv420p -c:a aac -b:a 128k out.mp4
Speed up picture and sound 2x. Replace 2 with your factor and 30 with your frame rate.
ffmpeg -i in.mp4 -vf "setpts=PTS/2,fps=30" -an -c:v libx264 -crf 20 -pix_fmt yuv420p out.mp4
The same speed up for a clip with no sound track.

For slowing down use a factor under 1. setpts=PTS/0.5 is the same as setpts=2*PTS, and atempo accepts 0.5 as its lowest value. Our slow motion guide covers what slowing down does to smoothness.

Both commands re-encode the picture. We also tried a filter with -c:v copy; ffmpeg 6.1.1 refused with "Filtering and streamcopy cannot be used together." So there is no copy-only way to speed up with these filters, and we did not test any other method.

Why the picture ended up two frames late

We expected the plain setpts recipe to give exact results, so we checked it. The clip is 12 seconds at 30 fps with a black picture, a white flash from 6.0 s to 7.0 s and a 1 kHz beep over the same second. After each speed, a script found the first frame whose average brightness passed half scale and the first loud audio sample, and compared both with the expected time of 6 seconds divided by the speed.

The 1x row is the control. It reproduced the 360 frames and the 6.000 s flash, so the measuring setup reads the clip honestly before it is used on the sped up files.

SpeedExpected (s)Beep at (s)Flash at, setpts only (s)Frames, setpts onlyFlash at, fps=30 (s)Frames, fps=30
1x (control)6.0005.9936.0003606.000360
1.5x4.0003.9944.0672424.000240
2x3.0002.9953.0671823.000180
4x1.5001.4861.567921.50090
10x0.6000.5740.667380.60036

Flash and beep timing after speeding up a 12 second clip.

Every sped up row with setpts only holds two frames more than the same row with fps=30, and the flash sits 2.0 frames (about 67 ms) after the beep. With fps=30 the flash is on time and the frame counts are exact. The beep starts 5 to 26 ms before the expected time in every row, including the 1x control, so that offset belongs to the measuring setup and not to the speed; we did not investigate it.

On the 20 second Big Buck Bunny excerpt the same thing showed up as frame counts: 402, 302, 152 and 62 frames at 1.5x, 2x, 4x and 10x with setpts only, and 400, 300, 150 and 60 with fps=30. We do not know why ffmpeg 6.1.1 writes the two extra frames; we only know that adding fps removes them in every row we ran.

The same bug was in the Koldflux speed tool, which runs ffmpeg in your browser. It returned 302 frames for the 20 second clip at 2x and a flash at 3.067 s. We fixed the command, added a test that runs real ffmpeg, and ran the tool again: 300 frames, 10.000 s, flash at 3.000 s.

Bar chart: with setpts only the picture starts 66.7 ms (2 frames) late at 1.5x, 2x, 4x and 10x; with fps=30 added the lag is 0 ms
The picture lag in our flash and beep test, with and without fps=30.

Does the sound keep its pitch?

Yes, with atempo. We generated a 12 second 440 Hz tone and counted zero crossings in the output to get its pitch. The source measured 440.0 Hz, which is the control. Retiming the sound by resampling (asetrate) is the other common recipe, and it behaves like playing a tape faster: the pitch doubles.

Measured pitch of a 440 Hz tone after speeding up.
MethodSpeedMeasured pitch
Source tone (control)1x440.0 Hz
atempo=22x440.0 Hz
atempo=2.0,atempo=2.0 (chained)4x440.0 Hz
atempo=4 (single)4x440.0 Hz
atempo=10 (single)10x440.0 Hz
asetrate=88200,aresample=441002x880.0 Hz

The documentation states the limit this way: "Tempo must be in the [0.5, 100.0] range." Our ffmpeg 6.1.1 build accepted 0.5, 2, 4 and 100 and rejected 0.4 and 101. The same page adds: "Note that tempo greater than 2 will skip some samples rather than blend them in." and suggests chaining several atempo filters for a higher tempo.

We measured pitch only, with a pure tone. A tone cannot show whether skipped samples sound rough on speech or music, so we cannot say the single atempo=10 sounds as clean as a chain. To follow the documentation, split a large factor into steps of at most 2: for 4x write atempo=2.0,atempo=2, and for 10x write atempo=2.0,atempo=2.0,atempo=2.0,atempo=1.25, which is the form our script builds.

What happens to the frames

At 30 fps output, 2x means half the frames must go. Our 600 frame clip came out with 300 when held at 30 fps. The alternative is to keep all 600 frames and let them play faster. We tried that too, with the command below, and the file reports a higher frame rate instead of dropping any frame. Those two rows were made without sound, so their length is the picture alone.

ApproachSpeedFramesAverage frame rateLengthFile size
Hold 30 fps with fps=302x30030 fps10.010 s3950 KB
Keep every frame2x60059.8 fps10.033 s4382 KB
Hold 30 fps with fps=3010x6030 fps2.018 s1900 KB
Keep every frame10x600295.1 fps2.033 s3635 KB

Frame handling at 2x and 10x on a 20 second clip.

ffmpeg -i in.mp4 -vf "setpts=PTS/2" -an -fps_mode passthrough -c:v libx264 -crf 20 -pix_fmt yuv420p out.mp4
Keep every frame and let the file play faster (picture only, shown for 2x).

Keeping every frame keeps the most timing detail of the source, but at 10x it is a 295 fps file, and how smooth it looks depends on the player and the screen's refresh rate, which we did not test. ffprobe reported a stored rate of 240 fps for it, which differs from the 295.1 we got by dividing frames by length, so we report the second figure. We did not test how any player, editor or upload site handles a file with a rate that high, so check yours before you rely on it. Holding the rate at the source's own value is the safe default, and that is what the first command does.

How big is the sped up file?

A shorter video is a smaller file, but not in proportion. We encoded each speed with x264 at CRF 20, which keeps the quality target the same, so the encoder spent whatever bits the motion needed.

Length and size of a 20 second clip by speed.
SpeedLengthFramesFile sizeAverage bitrateSize with fps=30
1x (control)20.002 s6005121 KB2097 kbpsnot run
1.5x13.400 s4024431 KB2709 kbps4426 KB
2x10.067 s3023957 KB3220 kbps3950 KB
4x5.067 s1522930 KB4737 kbps2898 KB
10x2.067 s621928 KB7641 kbps1900 KB

The 2x file kept 77% of the size for 50% of the length, and the 10x file kept 38% of the size for 10% of the length. The first four columns come from the plain setpts command, so each of those files has two frames more than it needs; the last column is the size of the fps=30 run. The average bitrate rises with the speed, which fits more motion in every second of output; we did not test that explanation.

Bar chart of length and file size as a share of the 1x clip: 2x is 50 percent of the length and 77 percent of the size, 10x is 10 percent and 38 percent
Length against file size at CRF 20, from our test log.

Speeding up only the picture

A recipe that appears everywhere is -vf setpts=PTS/2 on its own. It does speed up the picture, but nothing touches the sound. In our test the 2x video stream was 10.067 s while the audio stream stayed 20.010 s, and the container reported 20.010 s. The file is about 20 seconds long and only its first 10 seconds of picture move. We did not test what any player shows after the picture ends. If you do not want sound, add -an; if you do, use the full command above.

Limits and what we did not test

  • We tested one video, a 20 second excerpt of the cartoon Big Buck Bunny at 1080p and 30 fps, and one synthetic 12 second clip. Another clip, frame rate or codec will give different sizes and times.
  • We tested ffmpeg 6.1.1 on Linux and the ffmpeg build inside the Koldflux tool. We did not test other ffmpeg versions, so we cannot say whether the two extra frames appear in every build.
  • We did not test any editor, phone app or website that speeds up video, and we did not test how a platform treats a sped up upload.
  • Pitch was measured with a pure tone. We did not listen to or score speech or music at high factors.
  • We tested clips with a constant frame rate. A clip recorded by a phone at a variable frame rate was not in the test.
  • The sync check uses one flash and one beep. It measures the start of the event to one frame, not the drift over a long clip.

Do it in your browser

Free Koldflux tools, no account needed.

Speed a clip up to 2x in your browserSpeed and duration calculatorTrim a video by timestamp

Questions people ask

How do I speed up a video 2x with ffmpeg?

Use one filter graph for both streams: setpts=PTS/2,fps=30 on the picture and atempo=2 on the sound, mapped to the output (the full command is in the first section). In our test a 20 second 30 fps clip came out at 10.010 s with 300 frames. Use your clip's own frame rate instead of 30.

How do I speed up a video without changing the pitch?

Use atempo for the sound. A 440 Hz tone measured 440.0 Hz after atempo at 2x, 4x and 10x. Retiming by changing the sample rate (asetrate) raised it to 880.0 Hz at 2x.

How do I speed up a video 10x?

Set setpts=PTS/10 and chain atempo in steps of at most 2: atempo=2.0,atempo=2.0,atempo=2.0,atempo=1.25. Keep fps=30 after setpts. Our 20 second clip became 2.018 s with exactly 60 frames. The documentation says tempo greater than 2 skips some samples, which is why we chain.

Why is the picture behind the sound after I speed up a video?

The common setpts-only command wrote two extra frames in ffmpeg 6.1.1, which put the picture 2 frames (67 ms at 30 fps) after the sound at every speed from 1.5x to 10x in our test. Add fps=30 after setpts and the flash and beep matched. We do not know the cause.

Why does my file play for 20 seconds when the picture is only 10?

The sound was not sped up. With -vf setpts=PTS/2 alone, our video stream was 10.067 s and the audio stream 20.010 s. Add atempo for the sound or -an to drop it.

Can I speed up a video without re-encoding it?

Not with these filters. ffmpeg 6.1.1 refused setpts together with -c:v copy and said "Filtering and streamcopy cannot be used together." We did not test any other method.

Why is the sped up file not half the size?

The same motion is packed into fewer seconds, so the bitrate rises. At CRF 20 our 2x file kept 77% of its size for half the length and the 10x file kept 38% for a tenth.

Related

More guides on this topic

Sources and how we checked

  1. atempo audio filter (FFmpeg Filters Documentation) (checked 2026-11-01)
  2. fps video filter and its source_fps constant (FFmpeg Filters Documentation) (checked 2026-11-01)
  3. Big Buck Bunny, CC BY 3.0 (Blender Foundation, source of the test clip) (checked 2026-11-01)
  4. Our test run log, November 1, 2026 (Koldflux, plain text) (checked 2026-11-01)
  5. Our test script for ffmpeg (Koldflux, Python) (checked 2026-11-01)
  6. How to run the test (Koldflux, shell) (checked 2026-11-01)
  7. Our browser check of the speed tool, before and after the fix (Koldflux, plain text) (checked 2026-11-01)
  8. Our browser check script (Koldflux, JavaScript) (checked 2026-11-01)

We cut a 20 second excerpt at 90 seconds from the 1080p, 30 fps cartoon Big Buck Bunny (Blender Foundation, CC BY 3.0) and sped it up with ffmpeg 6.1.1 on Linux at 1.5x, 2x, 4x and 10x, with x264 at CRF 20 and AAC at 128k. A script (speed_test.py, shipped with the log) computed each expected length and frame count from the speed and printed PASS or FAIL against it, and ran a control at 1x. Pitch was measured by counting zero crossings in a 440 Hz tone. Sync was measured with a 12 second synthetic clip that has a white flash and a 1 kHz beep from 6.0 s to 7.0 s. The Koldflux speed tool was run in headless Chromium before and after its fix. The ffmpeg documentation quotes were read on November 1, 2026.