Help Center/ Media Processing Center/ FAQs/ Snapshot Capturing/ How Do I Capture Snapshots of Videos?
Updated on 2026-02-27 GMT+08:00

How Do I Capture Snapshots of Videos?

You can capture snapshots of videos by sampling interval and save them as image files by calling APIs or the transcoding SDK.

For details, see Snapshot Capturing Facilitates the Setup of Media Processing Platform for Your Video Website.

API Calling

MPC allows you to capture snapshots from source videos directly or during transcoding.

Solution 1: Capturing snapshots during transcoding

  1. Upload a source video to OBS.

    For details, see Uploading Media Files.

  2. Call the API for creating a transcoding task. Configure input, output, IDtrans_template_id, and thumbnail to start transcoding.

  3. Call the API for querying transcoding tasks. If the transcoding is successful, log in to the OBS console to download the output file based on its path.

Solution 2: Capturing snapshots from a source video directly

  1. Upload a source video to OBS.

    For details, see Uploading Media Files.

  2. Call the API for creating a snapshot task and configure input and output parameters to capture snapshots.

  3. Call the API for querying snapshot tasks. If the task is successful, log in to the OBS console to download the output file based on its path.

SDK Calling

You can capture snapshots from source videos directly or during transcoding.

Solution 1: Capturing snapshots during transcoding

  1. Upload a source video to OBS. For details, see Uploading Media Files.
  2. Create a transcoding task and configure snapshot parameters.
  3. Query the transcoding task. If the transcoding is successful, log in to the OBS console and download snapshots based on the path. For details, see Downloading an Object.

Solution 2: Capturing snapshots from a source video directly

  1. Upload a source video to OBS. For details, see Uploading Media Files.
  2. Create a snapshot task and configure output and snapshot parameters.
  3. Query the snapshot task. If the task is successful, log in to the OBS console and download snapshots based on the path. For details, see Downloading an Object.