Back to APIs (Backend)
    APIs (Backend)Open source2026

    Vidannotate

    Author

    Vidannotate takes a video and returns a timestamped, action-by-action description of what happens in it, as text, JSON and SRT. It exists because watching footage to find one moment is a linear cost that scales with the length of the video, while reading a transcript is not.

    The problem

    Anyone sitting on hours of footage, whether gameplay, recorded sessions, lectures or security review, pays in real time to find anything inside it. The naive fix, handing the whole video to a model, fails twice: long videos exceed what a model will take in one pass, and a model asked to transcribe audio buried under music and effects will confidently invent lines that were never spoken.

    How I built it

    • 1Split the work into four independently resumable stages: transcribe, split, annotate, stitch, so a failure at minute forty does not restart the job.
    • 2Transcribe locally with faster-whisper off a 16kHz mono track pulled by ffmpeg, then pass that transcript to the annotator as ground truth so the model quotes rather than guesses.
    • 3Cut fixed-length segments in a single encode pass, forcing keyframes at every boundary so cuts land exactly on time instead of drifting.
    • 4Send each segment to Gemini with its own slice of the transcript, rebased so the segment starts at zero, and validate the returned JSON before adding each offset back during stitching.
    • 5Key every run by the video's content hash rather than its filename, so a job resumes even after the file is moved or renamed.
    • 6Resolve credentials across Vertex AI and the Gemini Developer API, with a backend command that prints which one resolves and why.

    Outcome

    A free, self-hostable CLI that converts an unsearchable video into a searchable written record, turning hours of scrubbing into a text search.

    Next in APIs (Backend)

    Telex Monitor