すべての Tool›Video Thumbnail Extractor
動画・音声

Video Thumbnail Extractor

video-thumbnail-extractor

Use Video Thumbnail Extractor through the Zavilo SDK. Check input limits, parameters, output and supported modes below.

H · HeadlessI · InteractiveE · Embedded
Tool IDvideo-thumbnail-extractor
バージョン1
実行方式CLIENT
対応モードHeadless, Interactive, Embedded

クイック操作

入力ファイル 1出力ファイル 1–50

入力

この Tool が受け付ける入力形式とファイル数です。

入力種類file
ファイル数1 – 1
対応 MIMEvideo/mp4, video/webm, video/quicktime

パラメータ

これらの値は request.options で渡します。

パラメータ 型 必須 既定値 許可値 / 範囲 説明
extractionMode enum 任意 single single | interval | even single extracts one timestamp, interval extracts every N seconds, and even extracts N frames across the video.
timestamp number 任意 0 0 – ∞ Thumbnail time in seconds. Used when input.data.times is not provided.
intervalSeconds number 任意 5 0.1 – 3600 For interval mode, extract one frame every N seconds.
frameCount integer 任意 10 1 – 50 For even mode, extract this many evenly spaced frames.
format enum 任意 jpg jpg | png Output thumbnail format.
quality number 任意 0.9 0.5 – 1 JPG output quality from 0.5 to 1.0.
maxLongSide integer 任意 0 0 – 4096 Maximum thumbnail long side in pixels. 0 keeps the video resolution.

出力

処理完了後に返される結果形式です。

型files
ファイル数1 – 50
出力 MIMEimage/jpeg, image/png
Metadatawidth, height, duration, inputBytes, outputBytes, outputCount
ZIP アーカイブ対応 · threshold 2

基本例

対応する統合モードを確認し、生成された開始コードをコピーできます。

Headless

const result = await client.run("video-thumbnail-extractor", {
  file,
  options: { extractionMode: "single", timestamp: 0, intervalSeconds: 5, frameCount: 10 }
});
console.log(result.files, result.data, result.metadata);

Interactive

await client.open({
  tool: "video-thumbnail-extractor",
  input: { file },
  options: { extractionMode: "single", timestamp: 0, intervalSeconds: 5, frameCount: 10 },
  onComplete(result) { console.log(result.files, result.data, result.metadata); }
});

Embedded

await client.mount({ tool: "video-thumbnail-extractor", target: "#zavilo-tool", mode: "embedded" });
This page is generated from the SDK Tool Definition used by the runtime.