UNPKG

@juspay/neurolink

Version:

The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002

29 lines (28 loc) • 1.04 kB
/** * 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>;