The snapshot service for media processing for VOD includes features for generating regular snapshots, creating dynamic images, and setting smart covers. This topic describes the available snapshot features and their usage.
Snapshot types
Regular snapshots
Regular snapshots are image files captured from specified points in a video. The regular snapshot feature in media processing for VOD supports the following three types:
|
Type |
Description |
|
Static snapshot |
Captures a specified number of images from a video. You can configure settings such as the start time, total number of snapshots, interval, and dimensions (width and height). |
|
WebVTT |
Generates a VTT file containing basic information about all snapshots, such as timestamps and URLs. For example, to display thumbnails on a player's progress bar, you must first retrieve the VTT file content, parse the snapshot information, and then display the corresponding thumbnails. Snapshots can be stored in the following ways:
|
|
Image sprite |
First, regular snapshots are taken. Then, these snapshots are arranged and stitched into a single large image, known as an image sprite. Using an image sprite lets you retrieve information for multiple snapshots in a single request, reducing request frequency and improving performance. |
Dynamic images
A dynamic image is an animated file created by capturing a specific time range from a video. The dynamic image feature of media processing for VOD supports the following two formats:
|
Format |
Description |
|
GIF |
Highly compatible and commonly used for web decoration. |
|
WEBP |
WEBP files are significantly smaller than GIFs. However, some browsers do not support it, such as Internet Explorer, Safari, iOS Safari (versions 3.2 to 13.7), and KaiOS Browser. |
-
Dynamic image jobs may fail if the source video contains only audio, the file is damaged, or its container information is invalid.
-
The time required to create a dynamic image depends on the size and duration of the source video and the duration of the captured segment.
Smart cover
The smart cover feature analyzes a video's content by using content understanding, visual aesthetics, and data analysis to select the best keyframe or clip for its cover. This helps improve video click-through rates and user experience. The smart cover feature of media processing for VOD supports the following three output types:
|
Type |
Description |
|
Image cover |
Selects the most visually optimal image from the video to serve as its static cover. |
|
Animated cover |
Extracts and combines multiple highlight frames from the video to generate a GIF file, which serves as the animated cover. |
|
Video summary |
Extracts highlight clips from the video and merges them to generate a representative 5-second short video to serve as the video cover. |