Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Extract frames, audio, and metadata from a video.
const { data, error } = await vj.extractMedia({ mediaUrl: "https://cdn.example.com/video.mp4", frames: "auto", audio: true, });
mediaUrl
string
frames
number[] | "auto" | "last"
[0, 75, 150]
"auto"
"last"
audio
boolean
metadata
true
{ "frames": [ { "index": 0, "url": "https://cdn.vidjutsu.ai/..." }, { "index": 75, "url": "https://cdn.vidjutsu.ai/..." }, { "index": 150, "url": "https://cdn.vidjutsu.ai/..." } ], "audio": { "url": "https://cdn.vidjutsu.ai/...", "duration": 10.2 }, "metadata": { "width": 1080, "height": 1920, "fps": 30, "duration": 10.0 } }
extract