Skip to content

Generating captions fails with "Failed to open video file: Is a directory" #1955

Description

@moelkomy

Description

Generating captions for a recording fails immediately with the following error:

Failed to generate captions: Failed to extract audio from video: Failed to open video file: Is a directory

When Cap tries to extract the audio track from the recording (the first step of caption generation), it attempts to open a path that is a directory rather than the actual video file, so the call fails with "Is a directory" (EISDIR). No audio is extracted and no captions are generated. It looks like the recording's folder path is being passed to the audio-extraction step instead of the path to the video file inside it.

Reproduction

  1. Open a recording in the Cap editor
  2. Go to the Captions tab
  3. Click Generate Captions
  4. The operation fails immediately with the error above — no captions are produced

Additional Context

  • Cap version: 0.5.2 (0.5.2)
  • Operating system, version: Mac OS Tahoe 26.5.1
  • Device (optional): Macbook Air M5
Image

Activity

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions