Torch Object Storage
Field name | Location | Type | Required | Example value | Description |
Field name | Location | Type | Required | Example value | Description |
x-tos-async-process | Query | String | Yes | - | Special identifier for video-to-GIF requests. |
Field name | Type | Required | Example value | Description |
Field name | Type | Required | Example value | Description |
ss | Integer | No | 0 | Start time for video-to-GIF conversion, in milliseconds. Values:
|
f | String | Yes | gif | Output animation format, value: gif. |
num | Integer | No | 100 | Number of GIF frames, default is unlimited (frames are extracted until the video ends). warning If the video is shorter than expected, the actual number of extracted frames will be less than the set parameter value. |
inter | Integer | No | 1 | Frame extraction interval for GIFs, in milliseconds. By default, all video frames are extracted. warning When this value is less than the source video's frame interval (the inverse of the frame rate), frames are extracted according to the source video's frame interval. |
fps | Integer | No | 30 | Animation frame rate, default is inter inverse. Value range is [0, 240]. tip This parameter controls the playback speed of the animation. When set to the default value, it matches the source video playback speed. A value greater than the default speeds up playback; a value less than the default slows it down. |
w | Integer | No | 1024 | Output gif width in px, range [32, 4096]. tip If set to 0, scale automatically according to source video resolution ratio. |
h | Integer | No | 1024 | Output GIF height in px, range [32,4096]. tip If set to 0, it will auto-calculate based on the source video's resolution ratio. |
scaletype | String | No | crop | Scaling mode. The options are as follows:
|
Field name | Type | Example value | Description |
Field name | Type | Example value | Description |
status | String | OK | Status code. |