The Image Service not only processes the existing image content but also captures the image at a specified point of the video to complete the video frame capturing.

Parameters

Operation type: video

Operation name: snapshot

Parameter Description Value range
t Screenshot time Unit: ms. [0, video duration]
w Screenshot width. If it is specified as 0, the value is automatically calculated. Pixel value: [0, video width]
h Screenshot height. If it is specified as 0, the value is automatically calculated. If both w and h are 0, the video is outputted in the original width and height. Pixel value: [0, video width]
m Screenshot mode. If not specified, use the default mode. The screenshot is captured accurately at a specified time. If it is set as fast, the most recent key frame before the specific time is captured. Enumeration value: fast
f Output image format Enumeration value: jpg and png

Example