Reverse Video
Operator: Abdulla Al Fahad. How tools are built and checked
Playing a video backwards is harder than it looks, because video is stored to be read forwards. Each frame depends on earlier ones, so a player cannot simply start at the end. To reverse a clip you have to decode the frames, keep them somewhere, and play them back in the opposite order. That costs memory, and this is why most free reversers limit length and resolution without saying how much.
This tool says it plainly: at most 60 seconds of a clip, at most 720 pixels on the shorter side, between 12 and 30 frames per second, and a frame count of at most 1800. It also makes a boomerang that runs forward and then back, and it can reverse the sound as well. Compared with the Video Speed Changer, which changes how fast frames play, this one changes their order.
Key features
- Reverse mode, or boomerang mode that runs forward and then back
- Reversed sound, decoded from the file and played backwards, or a silent result
- A frame rate of 12, 15, 24 or 30 frames per second and a size cap of 720, 480 or 360 pixels
- A memory plan shown before you start: how many frames fit as raw bitmaps and how many fall back to JPEG
- Progress in two phases, reading frames and then recording, with cancel
- A range of up to 60 seconds, set with start and end times
Why reversing is capped, how frames are stored and how the sound is flipped
Input is a video the browser can play. Only the chosen range is used, which defaults to the first 60 seconds. A range longer than 60 seconds is refused with a message; so is one that would need more than 1800 frames, which at 30 frames per second is exactly 60 seconds and at 12 frames per second is 150 seconds' worth, so the 60 second limit is the one that applies.
The picture is scaled so its shorter side is at most 720 pixels by default (480 or 360 on request) and is never enlarged, so a 1920 by 1080 clip becomes 1280 by 720. The saved file is MP4 or WebM at 12, 15, 24 or 30 frames per second, with the quality presets of the other video tools. The page works out the bit rate from the picture size and the frame rate, and the estimated size is shown before you start.
A boomerang plays frames 1 to N forward and then N-1 down to 2 backwards, leaving out the end frames the second time so the loop is seamless when repeated. A clip of N frames therefore makes a boomerang of 2N-2 frames. Sound follows the same plan: the soundtrack forward, then reversed, cut to the length of the picture.
How it works
The first phase reads the frames. For each frame the page seeks the hidden video to a time half a frame after the frame's start, draws it on a canvas at the output size and stores a copy. Frames are held as ImageBitmaps while they fit in a memory budget, and as JPEG images at 92 percent quality after that. The budget is 640 MiB on a machine that reports 8 GB or more, an eighth of the reported memory on smaller ones (never under 128 MiB), and 384 MiB where the browser does not report it. A 1280 by 720 bitmap takes 3,686,400 bytes, so at 640 MiB 182 frames fit as bitmaps and the rest go to JPEG. This phase is shown as the first 40 percent of the progress bar.
The second phase plays the stored frames in reverse order on a canvas, driven by a clock so the speed is right whether or not decoding keeps up, while a reversed copy of the soundtrack is played through Web Audio into the recorder. The canvas and sound are recorded with MediaRecorder in real time, so the recording takes as long as the finished video.
The soundtrack is decoded by the browser in full, cut to your range and written backwards into a buffer. If the file has no sound track, or the sound cannot be decoded, the page carries on with a silent result and shows the reason.
Common use cases
- Reversing a clip of someone jumping into water so they leap out of it
- Making a looping boomerang of a pour, a spin or a hat toss for a post
- Reversing a clip of a closing door to get a reveal shot with matching sound
- Checking how a sequence reads backwards before cutting it into an edit in another program
How to use this tool
- Drop a short video and wait for its length and size to appear.
- Set the start and end so the range is at most 60 seconds.
- Tick Boomerang if you want forward and back, and choose whether the sound is included.
- Choose the frame rate and the largest size, then the quality and file type.
- Read the memory line, then click Reverse video. Reading frames comes first; recording follows.
- Play the result and download it.
Example
A 10 second 1920 x 1080 clip at 24 frames per second, size cap 720, boomerang on
Range 10.00 s
Frame rate 24 fps -> 240 frames
Output size 1280 x 720 (scaled down)What the page plans
Boomerang order 240 forward + 238 back = 478 frames = 19.9 s
Memory (640 MiB) 182 frames as bitmaps (about 671 MB), 58 as JPEG; a phone with a smaller budget gets fewer bitmaps
Progress reading frames 0-40%, recording 40-100%
Recording time about 20 sTips for best results
- Choose 15 or 24 frames per second for a long range: the number of stored frames, and the wait, scale with the rate, and a calm shot hardly shows the difference.
- A boomerang looks best on a clip of a few seconds with a clear action in the middle. The loop is seamless in position, but the sound plays forward then backward, so a spoken word will be reversed in the second half.
- To keep every frame as a lossless bitmap, pick the 480 pixel cap: at 854 by 480 about 409 frames fit, which is roughly 17 seconds at 24 frames per second.
- Pick a range that ends on a still moment if you want the reversed version to start from calm, since the last frame becomes the first.
Common pitfalls
Frames are sampled by seeking, so a 60 fps clip rendered at 24 fps drops frames, and fast motion may look less fluid than the source.
Frames beyond the memory budget are stored as JPEG, so they are slightly softer than the bitmap ones. The page tells you how many that is. On busy footage the difference between the two groups is hard to see, but on flat colours you may notice slight banding.
Reversed speech is gibberish and reversed music has its decay at the start. That is how the effect works; it is not a bug.
The soundtrack is decoded from the whole file, so a long source video needs memory for all of its sound before your range is cut out.
Common errors and how to fix them
- Reversing holds every frame in memory, so the range is limited to 60 seconds.
- Trim the start and end fields so that the range is shorter.
- That is more frames than the limit.
- Lower the frame rate or shorten the range.
Why a reverse tool needs a limit
A forward player decodes a few frames at a time and throws each away. A reverse needs all of them at once, uncompressed, because the last frame has to be shown first. One 1280 by 720 frame is 3.7 megabytes uncompressed, so a minute at 24 frames per second would be over 5 gigabytes. Storing most frames as JPEG shrinks that to a few hundred kilobytes each, which is how the 60 second cap becomes workable on an ordinary laptop.
The limits are therefore set by memory, not by the encoder, and the line under the settings shows how the budget is being spent for your range.
Frequently asked questions
Why 720 pixels?
The memory for stored frames grows with the picture area. At 720 pixels on the shorter side a 60 second range stays within what a typical browser tab can hold with the JPEG fallback.
Can I keep the original sound unreversed?
No. The sound either plays reversed with the picture or is left out. Mix the original sound back in with an editor if you need it forward.