0053-00000101

Updated at:

Problem description

The t parameter in a video snapshot request is invalid.

Causes

The t parameter specifies the time offset, in milliseconds, at which OSS captures the snapshot frame. Its value must be a non-negative integer no greater than the total duration of the video.

Examples

The following request fails because t_-32 is negative, which is outside the valid range:

GET /video.mp4?x-oss-process=video/snapshot,t_-32,f_jpg,w_800,h_600 HTTP/1.1
Host: example-bucket.oss-cn-hangzhou.aliyuncs.com
Date: Thu, 13 Apr 2023 03:17:58 GMT
Authorization: OSS qn6q**************:77Dv****************

Solutions

Set t to a valid value and resubmit the request:

  • Set t to a non-negative integer (0 or greater).

  • Set t to a value no greater than the video duration in milliseconds.

The following request uses t_3000 (3,000 ms), which is a valid value:

GET /video.mp4?x-oss-process=video/snapshot,t_3000,f_jpg,w_800,h_600 HTTP/1.1
Host: example-bucket.oss-cn-hangzhou.aliyuncs.com
Date: Thu, 13 Apr 2023 03:17:58 GMT
Authorization: OSS qn6q**************:77Dv****************

References

Video snapshots