What is Video Scrubbing?
Video scrubbing is dragging the playhead along a video’s timeline to move quickly to another moment, often with a preview of each point as you go.
How Video Scrubbing works
When you drop the playhead, the player has to start decoding from the nearest keyframe, a frame that holds a complete picture. If keyframes are far apart, each jump is slow or lands seconds away from where you aimed. The player also needs to fetch just that part of the file, which for a single video file works only if the server accepts HTTP range requests. Preview pictures above the timeline are separate small thumbnails, loaded from an image sheet.
Key facts
- A keyframe every 2 seconds is a common setting that keeps seeking responsive without making the file much larger.
- For MP4 files, putting the index at the front (“fast start”) lets the player start and seek before the whole file has downloaded.
- Timeline previews are usually one large image holding many small thumbnails, with a WebVTT file that maps each time range to its position in the image.
When Video Scrubbing matters
Make video scrub well when viewers need to find a moment fast, as in tutorials, recordings and editing tools. That takes a server that supports range requests, regular keyframes, and ideally preview thumbnails.
How Transloadit helps with Video Scrubbing
Transloadit’s /video/thumbs Robot extracts still images from a video at a set count or at specific offsets, which is the raw material for timeline previews. The /video/encode Robot produces MP4 files prepared for web playback.