Getting Started

​ ​Welcome

Blitline Job

Job Response

Job Options

Functions

Polling and Postbacks

Gotchas

Development Recommendations

Service Limits

Examples List

List of Available Functions

Output Options

S3 Destination

IAM Users

S3 Signed Url

Azure Destination

FTP Destination

Other Service Signed Urls

CDN

Advanced

Metadata

Colorspace

Color Extraction

Static IPs

Signed Jobs

Formats

Pipelines

Image Optimization

Smart Image

PDF

Fonts

Subimage

Special (Non-Image) Processing

AWS Rekognition/Facial Recognition

Apache Tika

Vector Processing

Animated GIFs

Screenshots of Websites

IM Scripts

Video Keyframes

Zipping

​ ​Trancoding Video Presets

​ ​Video Transcoding

Video Keyframes

Updated a month ago ​by Blitline Support

VIDEO KEYFRAMES

Blitline supports the extraction of keyframes from video files.

The video formats that are supported are: avimovmp4mpegmpg3gpasflvswfm4v , webm

To extract keyframes, simply denote pages your wish to extract from the video file. The pages indicate offset in seconds from the beginning of the video. So, for example, page 0 would be the initial image at 0 seconds, page 1 would be the frame at 1 second, etc.

So for example:

{
    "application_id":"YOUR_APP_ID",
    "src":"https://s3.amazonaws.com/blitdoc/movies/webm.webm",
    "src_data" : { "pages" : [1]},
    "functions":[
        {
            "name":"resize_to_fit",
            "params":{
                "width":300
            },
            "save":{
                "image_identifier":"MY_CLIENT_ID"
            }
        }
    ]
}

The above JSON would generate an image of the video frame at 1 second into the video, then resize it to fit within 300 pixels.

Example:  Video Keyframes:

How did we do?