Trimming, cropping and compressing video in your browser: what to expect
How StillKit edits video by playing and recording it on your device, which formats come out, how picture size and data rate set the file size, and the limits.
StillKit's video editors do not cut your file apart. They play the video once, in real time, and draw every frame onto a hidden canvas with your crop, rotation or captions applied. The recorder built into your browser records that canvas. A three-minute clip therefore takes about three minutes, and every result is a newly compressed copy. Its format and size depend on the browser and device you use.
Why a clip takes as long as it plays
The editing tools trim, compress, crop and rotate video, remove its sound, burn in subtitles or add music. All of them follow the same steps. They open your file in a player you do not see and play it from the start time. Each new frame is drawn onto the canvas as it appears, and the browser's recorder captures the canvas at up to 30 frames per second. The sound is mixed into the recording separately, so you hear nothing while it works. When playback reaches the end time, the recording stops and is saved under a name such as holiday-trim.mp4.
Recording in real time has consequences you can plan for:
- Keep the tab visible. Browsers slow down hidden tabs. StillKit therefore stops the job when you switch tabs, minimize the window or let a phone screen turn off, rather than save a faulty copy.
- Video filmed at 60 frames per second comes out at no more than 30.
- A slow or busy device may skip frames to keep up, so the copy can look less smooth than the original. Closing other apps and tabs gives it more room.
Tools that need only a few frames work differently. Video information only reads the file's details. Video frame grabber, Video thumbnail sheet and Video to GIF jump straight to the moments they need instead of playing. They finish much faster and are not limited to 5 minutes.
MP4 or WebM: your browser decides
StillKit asks the recorder for formats in a fixed order and uses the first one your browser supports: MP4 with H.264 video and AAC sound, then WebM with VP9 video, then WebM with VP8, both with Opus sound. Sound is recorded at 128 kbps. The result line names the format, and the file ending matches it.
If an app you use will not open WebM, run the same job in a browser that records MP4. WebM files recorded by a browser also often have no length written at the start. Some players then show no duration until they have read the whole file.
Picture size and data rate decide the file size
A video file's size is roughly its data rate multiplied by its length. StillKit sets the data rate it asks for from the picture size: more pixels, more data. Every edited copy is also limited to about 2 megapixels, which is 1920 × 1080 for a landscape video. A 4K clip therefore comes out as 1080p from any of these tools.
In Compress video, Size sets the height of a landscape video, or the width of a portrait one, and does not enlarge a smaller original. Quality scales the data rate: Smaller file asks for 55% of the Balanced rate, and Better quality for 160%. For a 16:9 landscape video, Balanced works out like this:
| Size | Picture | Video data rate | Per minute, with sound |
|---|---|---|---|
| 1080p (Full HD) | 1920 × 1080 | 5.4 Mbit/s | About 41 MB |
| 720p (HD) | 1280 × 720 | 2.4 Mbit/s | About 19 MB |
| 480p (smaller) | 854 × 480 | 1.1 Mbit/s | About 9 MB |
| 360p (smallest) | 640 × 360 | 0.6 Mbit/s | About 5.5 MB |
These are requests, not promises. Recorders follow them more or less closely, so the same settings can give a larger or smaller file on another browser or device. The result line reports the real size next to the original's.
Check your original first with Video information. It shows the average data rate: the file size divided by the length, sound included. If that is already close to or below the rate in the table for your chosen size, compressing gains little. The copy can even come out larger, and the tool tells you when that happens.
Cropping to a new shape costs pixels
Crop video for social media keeps the center of the picture and cuts the rest away, so the result has fewer pixels than the original. From a 1920 × 1080 landscape video, 1:1 square gives 1080 × 1080 and 4:5 portrait gives 864 × 1080. A 9:16 vertical crop leaves a strip only 608 × 1080 pixels, which looks soft when a phone fills its screen with it. From a 4K landscape video, the same crop comes out at 1080 × 1920. Rotate video turns the picture by 90, 180 or 270 degrees, swapping width and height for a quarter turn.
Every edit is a new generation
Because each tool records a new copy, Trim video compresses even the part you keep once more; it is not a lossless cut. Each pass loses a little detail, and the losses add up across tools. Plan the order: trim first, so later passes play only the part you keep, and compress last, once.
Why the same video gives different results
- Reading the file. A video can be edited only if the browser can play it. Some phones save video as HEVC, also called H.265, which not every browser decodes. The tool then asks for an MP4 (H.264) or WebM file.
- Writing the file. The formats on offer, and how closely the recorder follows the requested data rate, vary between browsers and between the video hardware of different devices.
- Sound. If the browser cannot read a video's sound, StillKit makes the copy without sound rather than stopping. Play the result before you delete anything.
Limits
The files for one job can total 300 MB. The editing tools record at most 5 minutes of video per job, so trim a longer recording into parts first. The page also stops any video job still running after 15 minutes. If playback stalls before the end, the job stops with a message after twice the clip's length plus 20 seconds.
Video to GIF takes up to 15 seconds, at 2 to 15 frames per second and 120 to 480 pixels wide. GIF allows at most 256 colors per frame. StillKit uses a fixed set of 252 and a regular dot pattern to suggest the shades in between, which is why smooth gradients look speckled. For the sound of a video on its own, see WAV, Opus and file size. For subtitle files, see SRT, VTT and LRC.