0053-00000107

Updated at:

Problem description

The f parameter in a video snapshot request is invalid.

Causes

The f parameter specifies the image format of the captured frame. Valid values are jpg and png. Any other value causes the request to fail.

Examples

The following request fails because f_32 is not a valid format value:

GET /video.mp4?x-oss-process=video/snapshot,t_3000,f_32,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 f to jpg or png. The following request is valid:

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