Skip to content

Extract the audio track from videos #266

Duplicate

Description

@clbotdev

Summary

Extract the audio track from a video into an audio file (e.g. AAC or MP3) and store it as a derivative.

Part of Phase 2 (#259) of #247. Moved from Phase 1: nothing uses it until captions (#269), so it ships with them (see D10 in #291).

Notes

  • Transcription (Phase 2) uses this as its input, so it doesn't need the whole video.
  • Handle videos with no audio track: skip extraction without failing processing.
  • This is an internal step with no media setting. It runs when a feature needs it, e.g. when generateCaptions is on.

Activity

  1. added
    enhancement
    on Nov 17, 2026
  2. changed the title [-]Video step: extract the audio track[/-] [+]Extract the audio track from videos[/+] on Nov 17, 2026
  3. s3rot0n1n commented on Nov 28, 2026

    @s3rot0n1n
    Contributor

    Design decided in the phase 2 PRD (#297, docs/prds/pipelines-phase-2.md). This issue's scope changes:

    • The audio isn't stored as a derivative. Extraction is a step inside the captions job (Transcription and captions (WebVTT) #269): it downloads the original, extracts the first audio stream straight to a 16 kHz mono WAV in its work directory, and deletes it with the work directory. No audio derivative, no separate job, and nothing in the media response or storage. Extraction takes seconds next to minutes of transcription, so a separate derivative would add a waiting-derivative mechanism and cleanup for no gain.
    • It runs only when captions are on (generateCaptions, or the seal's per-upload override).
    • No audio stream fails captions with no_audio_stream; the media stays ready.
    • A downloadable audio derivative is listed as out of scope for now (PRD section 11). It can be added later if an app needs it.

    So this issue is delivered by step 4 of the PRD's order of work, together with #269.

  4. s3rot0n1n commented on Nov 28, 2026

    @s3rot0n1n
    Contributor

    Closing as folded into #269: audio extraction is now a step inside the captions job (see the comment above), so it ships with #269 and has no separate deliverable.

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions