Skip to content

Captions: transcribe (FFmpeg 8 Whisper filter) and burn_subtitles #120

Closed

Description

@TMHSDigital

What and who

Two ROADMAP Phase 5 tools that have no issue yet:

  • transcribe { input, model, language? } -> SRT sidecar, using FFmpeg 8's built-in whisper filter (runs locally, no cloud).
  • burn_subtitles { input, subtitles, style? } -> SRT/ASS burned into the video with the bundled font.

For narrated demos, social clips (most are watched muted), and accessibility.

Why

FFmpeg 8.0 added a Whisper filter (whisper.cpp) that writes SRT directly, so transcription can stay inside the same ffmpeg dependency. It fits the "local only" threat model and the opt-in, no-bundled-model plan in ROADMAP. Competitors ship captions as a headline feature (Screen Studio's Whisper captions: https://daveswift.com/screen-studio/; Cap's AI transcripts: https://cap.so/llms-full.txt).

Approach

  • Detect support with ffmpeg -filters (needs a --enable-whisper build); give a clear error with setup guidance otherwise.
  • User supplies the ggml model path (env var SCREENCAST_WHISPER_MODEL); nothing is downloaded automatically.
  • burn_subtitles via the subtitles filter with fontsdir pointing at the bundled font; style presets (clean, social large centered).
  • Escape subtitle paths with the two-level escaping helpers.

Done when

transcribe produces a valid SRT on a Whisper-enabled build and fails cleanly on others. burn_subtitles renders an SRT with each preset, and integration tests use a fixture SRT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort: mediumfeatureimpact: high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions