Todas as Tools›Video Thumbnail Extractor
Vídeo e áudio

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
ID da Toolvideo-thumbnail-extractor
Versão1
ExecuçãoCLIENT
ModosHeadless, Interactive, Embedded

Ações rápidas

Arquivos de entrada 1Arquivos de saída 1–50

Entrada

Formatos de entrada e quantidade de arquivos aceitos por esta Tool.

Tipo de entradafile
N.º de arquivos1 – 1
MIME aceitosvideo/mp4, video/webm, video/quicktime

Parâmetros

Passe estes valores por request.options.

Parâmetro Tipo Obrigatório Padrão Valores / Faixa Descrição
extractionMode enum Opcional single single | interval | even single extracts one timestamp, interval extracts every N seconds, and even extracts N frames across the video.
timestamp number Opcional 0 0 – ∞ Thumbnail time in seconds. Used when input.data.times is not provided.
intervalSeconds number Opcional 5 0.1 – 3600 For interval mode, extract one frame every N seconds.
frameCount integer Opcional 10 1 – 50 For even mode, extract this many evenly spaced frames.
format enum Opcional jpg jpg | png Output thumbnail format.
quality number Opcional 0.9 0.5 – 1 JPG output quality from 0.5 to 1.0.
maxLongSide integer Opcional 0 0 – 4096 Maximum thumbnail long side in pixels. 0 keeps the video resolution.

Saída

Formato do resultado retornado após o processamento.

Tipofiles
N.º de arquivos1 – 50
MIME de saídaimage/jpeg, image/png
Metadatawidth, height, duration, inputBytes, outputBytes, outputCount
Arquivo ZIPSuportado · threshold 2

Uso básico

Escolha um modo suportado e copie o código inicial gerado.

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.