0053-00000102

Updated at:

Problem description

The l parameter in a video snapshot request has an invalid value.

Causes

The l parameter specifies the longer side length of the snapshot in pixels. Its value must be a non-negative integer that does not exceed the longer side length of the source video. A value outside this range, such as -800, causes the request to fail.

Examples

The following request fails because the value of l is -800, which is outside the valid range.

GET /video.mp4?x-oss-process=video/snapshot,t_3000,f_jpg,l_-800,s_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 l to a non-negative integer that does not exceed the longer side length of the source video. The following request uses l_800 as a valid value.

GET /video.mp4?x-oss-process=video/snapshot,t_3000,f_jpg,l_800,s_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