@juspay/neurolink
Version:
Universal AI Development Platform with working MCP integration, multi-provider support, voice (TTS/STT/realtime), and professional CLI. 58+ external MCP servers discoverable, multimodal file processing, RAG pipelines. Build, test, and deploy AI applicatio
29 lines (28 loc) • 1.04 kB
TypeScript
/**
* Frame Extractor for Director Mode
*
* Extracts first and last frames from MP4 video buffers using FFmpeg.
* Used by Director Mode to obtain boundary frames for Veo 3.1
* first-and-last-frame interpolation transitions.
*
* Uses the shared FFmpeg adapter for binary resolution, temp file management,
* and process execution — following the adapter pattern in `adapters/tts/`.
*
* @module adapters/video/frameExtractor
*/
/**
* Extract the first frame from a video buffer as JPEG.
*
* @param videoBuffer - MP4 video buffer
* @returns JPEG image buffer of the first frame
* @throws {VideoError} If buffer validation or extraction fails
*/
export declare function extractFirstFrame(videoBuffer: Buffer): Promise<Buffer>;
/**
* Extract the last frame from a video buffer as JPEG.
*
* @param videoBuffer - MP4 video buffer
* @returns JPEG image buffer of the last frame
* @throws {VideoError} If buffer validation or extraction fails
*/
export declare function extractLastFrame(videoBuffer: Buffer): Promise<Buffer>;