Skip to main contentIBM Video Streaming Developers

Set video thumbnail

You can set a video thumbnail by uploading an image or selecting a frame.

Upload image for video thumbnail

You can upload a thumbnail via multipart requests (multipart/form-data). The field name must be thumbnail. JPG, PNG and GIF file formats are supported. The image should be less than 10 MB in size and smaller than 4,000 × 4,000 pixels in dimension.

POST https://api.video.ibm.com/videos/{video_id}/thumbnail.json

Example request with CURL:

curl \
-X POST 'https://api.video.ibm.com/videos/123456/thumbnail.json' \
-H 'Authorization: Bearer abcdef123456' \
-F 'thumbnail=@thumbnail.jpg;type=image/jpeg'

You can use the -v or the --trace thumbnail.jpg options to debug your request.

Parameters

This request has no parameters.

Success response

Upon success, a response with HTTP status “204 No Content” is returned.

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
401 UnauthorizedThe provided access token is missing, revoked, expired or malformed
404 Not Foundnot_foundVideo was not found
503 Service UnavailableThere is a temporary error on the server which makes it impossible to serve the request

Select a frame for the video thumbnail

Set a frame of the video as the thumbnail image.

POST https://api.video.ibm.com/videos/{video_id}/thumbnail/frame.json

Parameters

The parameters for the POST request:

PARAMETERTYPEIMPORTANCEDESCRIPTION
positionfloatREQUIREDThe position of the selected frame in seconds

Success response

Upon success, a response with HTTP status “204 No Content” is returned.

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
401 Unauthorizedinvalid_tokenThe provided access token is missing, revoked, expired or malformed
403 Forbiddenlack_of_ownershipThe API user is not allowed to manage the given video
404 Not Foundnot_foundVideo was not found
503 Service UnavailableThere is a temporary error on the server which makes it impossible to serve the request