The snapshot service for real-time media processing lets you capture snapshots from live streams and save them to Alibaba Cloud OSS. This topic explains how to use the snapshot feature.
Snapshot features
Features
You can capture snapshots from a live stream at a specified interval and save them to Alibaba Cloud OSS. This feature offers two storage modes:
|
Mode |
Description |
|
Overwrite snapshot |
Each new snapshot overwrites the previous snapshot. |
|
Real-time snapshot |
New snapshots are saved without overwriting previous files and are named using a UNIX timestamp. |
Limitations
-
A single account can run a maximum of 100 concurrent snapshot jobs. If you need a higher limit, contact your account manager.
-
The input live stream for a snapshot job must use RTMP.
-
Snapshots can only be saved to Alibaba Cloud OSS. The only supported output format is JPG.
Create a snapshot template
Console
API
Create a snapshot job
Console
API
Query snapshot job details
Callback notifications
API
Retrieve snapshots
After a snapshot job starts, you can retrieve the generated snapshots and process them as needed.
Console
API
Query snapshot job usage
-
Log in to the Intelligent Media Service console.
-
In the left-side navigation pane, choose Data Center > Usage Query.
-
On the Real-time Job Usage tab, in the Live Snapshot section, view the duration usage of jobs or export the details.
NoteTo ensure data security, the download link for the exported file is valid for 30 minutes. If the link expires, refresh the page to generate a new one.