AI-generated Key Takeaways
-
A VideoThumbnail resource provides information for generating a video thumbnail from an ImageCollection.
-
The VideoThumbnail can be configured with parameters such as name, the expression to compute, video options, file format, and grid.
-
VideoOptions allow setting the frame rate, maximum number of frames, and maximum pixels per frame for the video.
-
Currently, only GIF is supported as a video file format, though MP4 and VP9 are also listed as enums.
-
A method is available to create an ID for rendering an animation from a collection.
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. |

