This topic describes a sample Intelligent Media Services (IMS) snapshot template and the template parameters.
| Parameter | Data type | Required | Description | Example |
| Type | string | Yes | The type of the snapshot template. Valid values:
| Sprite |
| FrameType | string | Yes | The frame type. Default value: intra. Valid values:
| intra |
| Time | Long | Yes | The time at which the system starts to capture snapshots. Unit: milliseconds. | 1000 |
| Count | Long | Yes | The number of snapshots to be captured. | 5 |
| Interval | Long | No | The interval at which snapshots are captured. Unit: seconds. | 10 |
| Width | integer | No | The width of a captured snapshot. | 720 |
| Height | integer | No | The height of a captured snapshot. | 480 |
| BlackLevel | integer | No | The threshold that is used to filter out black frames for the first snapshot to be captured. This feature is available if you request the system to capture multiple snapshots. | 30 |
| PixelBlackThreshold | integer | No | The color value threshold that determines whether a pixel is black. | 70 |
| SpriteSnapshotConfig | SpriteSnapshotConfig | No | The configuration of the sprite snapshot. | For more information, see SpriteSnapshotConfig. |
| IsSptFrag | boolean | No | Specifies whether to tile the Web Video Text Tracks (WebVTT) snapshots. Valid values:
| true |
SpriteSnapshotConfig
| Parameter | Data type | Required | Description | Example |
| CellWidth | integer | No | The width of a snapshot. Unit: pixels. The default value is the width of the output snapshot. | 720 |
| CellHeight | integer | No | The height of a snapshot. Unit: pixels. The default value is the height of the output snapshot. | 480 |
| Padding | integer | No | The spacing between two adjacent snapshots. Default value: 0. Unit: pixels. | 20 |
| Margin | integer | No | The margin width of the snapshot. Default value: 0. Unit: pixels. | 20 |
| Columns | integer | No | The number of columns that the tiled snapshot contains. | 20 |
| Lines | integer | No | The number of rows that the tiled snapshot contains. | 20 |
| Color | string | No | The background color. | #000000 |
Sample template
{
"Type": "Normal",
"FrameType": "normal",
"Time": 10000,
"Count": 8,
"Interval": 3
}该文章对您有帮助吗?