Thumbnail Sprite & VTT Generator
Make the sprite images and WebVTT file that show preview thumbnails when viewers hover your player's progress bar. Your video stays on your computer.
Preview
Your video plays here, with its preview thumbnails on the progress bar.
Hover the progress bar to see your thumbnails
- Video
- –
- Length
- –
- Picture
- –
- Thumbnails
- –
- Thumbnail size
- –
- Images
- –
- Total size
- –
Choose a video to see the result here.
Choose a video to see the result here.
Each cue points at one thumbnail: the image's name, then #xywh= its left edge, top edge, width and height in pixels.
Choose a video to see the result here.
Put the VTT file and the images on your server, then point your player at the VTT file.
<script src="https://cdn.fluidplayer.com/v3/current/fluidplayer.min.js"></script>
<video id="my-video">
<source src="video.mp4" type="video/mp4" />
</video>
<script>
fluidPlayer('my-video', {
layoutControls: {
timelinePreview: {
type: 'VTT',
file: 'THUMBS_VTT',
spriteRelativePath: true
}
}
});
</script><script src="https://cdn.fluidplayer.com/v3/current/fluidplayer.min.js"></script>
<video id="my-video">
<source src="video.mp4" type="video/mp4" />
</video>
<script>
fluidPlayer('my-video', {
layoutControls: {
timelinePreview: {
type: 'VTT',
file: 'THUMBS_VTT'
}
}
});
</script><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@videojs/cdn@10.7.1/video.css">
<script type="module" src="https://cdn.jsdelivr.net/npm/@videojs/cdn@10.7.1/video.js"></script>
<video-player>
<video-skin>
<video src="video.mp4" playsinline>
<track kind="metadata" label="thumbnails" src="THUMBS_VTT" default>
</video>
</video-skin>
</video-player><script>
const player = new Plyr('#my-video', {
previewThumbnails: {
enabled: true,
src: 'THUMBS_VTT'
}
});
</script><script>
jwplayer('my-video').setup({
file: 'video.mp4',
tracks: [{
file: 'THUMBS_VTT',
kind: 'thumbnails'
}]
});
</script>How to add preview thumbnails to your player
Choose your video
Pick the video file on your computer. The generator takes a picture every few seconds and lays them out in sprite images.
Check the previews
Hover the progress bar of the player to see them. Change the interval, size or format and the result updates.
Add them to your player
Download the ZIP, put the files on your server and point your player at the VTT file. The code is ready to copy.
How preview thumbnails work
Players don’t take pictures of your video while viewers hover: they show small images you made in advance. Two files do the job.
Sprite images
Many small pictures of the video, side by side in one image, so the browser loads one file instead of hundreds.
A WebVTT file
The same format as subtitles. Each cue gives a time range and, instead of text, the image and the rectangle (
#xywh=left, top, width, height) to show for it.
WEBVTT
00:00:00.000 --> 00:00:02.000
spring-thumbs.jpg#xywh=0,0,160,66
00:00:02.000 --> 00:00:04.000
spring-thumbs.jpg#xywh=160,0,160,66
Fluid Player, Video.js, Plyr, JW Player, Flowplayer and most other players read this format.
Which settings to use
- Interval
- Auto picks one thumbnail every 1 s for clips under a minute, 2 s up to 10 minutes, 5 s up to 30 minutes, 10 s up to 2 hours and 20 s beyond. Shorter intervals feel smoother but make more and bigger files.
- Width
- 160 px suits most players. The player shows thumbnails at this size, so pick 120 px for small players and 240 px for wide ones. The height follows your video’s shape.
- Per image
- 10 × 10 puts 100 thumbnails in each image. Long videos get several images, so no file grows too large for phones.
- Format
- JPG works everywhere. WebP is a little smaller at the same quality (about 15 % on our demo video) and works in all current browsers.
- Quality
- 70 % is a good default: thumbnails appear small, so compression flaws are hard to see. Higher quality makes bigger files for viewers to download.
- Image address
- Leave it empty if the images sit next to the VTT file. Type their folder (such as
/thumbnails/) if they live somewhere else, such as a CDN.
Previews not showing?
- Open the VTT file’s address in your browser: it should show the file, not a 404 page.
- In Fluid Player, add
spriteRelativePath: truewhen the images sit next to the VTT file in another folder. Without it, image addresses are read from the page’s address. - A VTT file on another domain needs a CORS header (
Access-Control-Allow-Origin): players download it with JavaScript. - Keep file names free of spaces and brackets. The generator’s names are safe.
- If you edit the VTT by hand, keep each cue’s time range matching its thumbnail, or previews drift further off toward the end.
Questions
Is my video uploaded anywhere?
Which video files work?
How long does it take?
Can I use the thumbnails with an HLS or DASH stream?
Why several images instead of one?
Does it work with players other than Fluid Player?
#xywh= rectangles is the common format for preview thumbnails. The Code tab has ready-made settings for Fluid Player, Video.js 10 (no plugin needed), Plyr and JW Player.Can I make them with ffmpeg instead?
ffmpeg -i video.mp4 -vf "fps=1/10,scale=160:-2,tile=10x10" -q:v 5 thumbs-%d.jpg takes one picture every 10 seconds and tiles them 10 × 10. You then need a script to write the VTT file, with the same interval. The generator does both and shows the result.How do I turn on preview thumbnails in Fluid Player?
timelinePreview to layoutControls, with type: 'VTT', the VTT file’s address in file and spriteRelativePath: true. The Code tab has it ready to copy. See Previews in the Fluid Player documentation (opens in a new tab).More free tools
SRT to VTT Converter
Convert SRT subtitles to WebVTT for HTML5 video. Fixes broken accents, checks for errors and previews the result in Fluid Player.
VTT to SRT Converter
Convert WebVTT subtitles to SRT for YouTube, video editors and media players. Keeps positions, checks for errors and previews the result.
HLS & DASH Stream Tester
Play an .m3u8 or .mpd stream, check its quality levels and codecs, and find out why it doesn't play, CORS errors included.
VAST Tag Tester & Validator
Paste a VAST tag or its XML: follow every wrapper, find what's wrong in plain words and play the ad in Fluid Player.
Player Builder
Set up Fluid Player visually, with video ads, subtitles and your colors, and copy ready-to-use code.