AI-generated Key Takeaways
-
A VideoThumbnail resource provides information needed to generate a video thumbnail from an ImageCollection.
-
Key properties include the expression to compute the ImageCollection, video options like frame rate and maximum frames, and the desired output file format.
-
Currently, only GIF is supported as an output file format for video thumbnails.
-
The
VideoOptionsspecify parameters for the animation, such asframesPerSecond,maxFrames, andmaxPixelsPerFrame. -
The
createmethod allows generating an ID to render an animation from a collection of images.
Resource: VideoThumbnail
Information about a video thumbnail.
| JSON representation |
|---|
{ "name" : string , "expression" : { object ( |
| Fields | |
|---|---|
name
|
The resource name representing the video thumbnail, of the form "projects/*/videoThumbnails/**" (e.g. "projects/earthengine-legacy/videoThumbnails/ |
expression
|
The expression to compute. Must evaluate to an ImageCollection. |
videoOptions
|
Options for the animation. |
fileFormat
|
The output encoding in which to generate the resulting video thumbnail. Currently only GIF is supported. |
grid
|
An optional pixel grid describing how the images computed by |
VideoOptions
Basic options for generating videos.
| JSON representation |
|---|
{ "framesPerSecond" : number , "maxFrames" : integer , "maxPixelsPerFrame" : string } |
| Fields | |
|---|---|
framesPerSecond
|
The frame rate of the exported video. Must be a value between 0.1 and 120. Defaults to 5.0. |
maxFrames
|
The maximum number of video frames to compute and export. This is a safety guard to prevent you from accidentally starting a larger export than you had intended. The default value is 1000 frames, but you can set the value explicitly to raise or lower this limit. |
maxPixelsPerFrame
|
The maximum number of pixels to compute and export per frame. This is a safety guard to prevent you from accidentally starting a larger export than you had intended. The default value is 1e8 pixels, but you can set the value explicitly to raise or lower this limit. |
VideoFileFormat
Selects a video file format in which to encode a sequence of images.
| Enums | |
|---|---|
VIDEO_FILE_FORMAT_UNSPECIFIED
|
Unspecified. |
MP4
|
MPEG-4 Part 14 format. |
GIF
|
Animated GIF. |
VP9
|
WEBM/VP9 |
Methods |
|
|---|---|
|
Creates an ID that can be used to render an image containing an animation of multiple images from a collection. |

