Skip to content

Regression: five edit tools still skip the #187 output-container check #287

Closed

Description

@TMHSDigital

Summary

#187 added assertEditContainer so a .webm output gets a clear error instead of a cryptic libx264/AAC-into-WebM ffmpeg failure. Five tools that encode H.264/AAC never got the check.

Where

  • src/tools/xfadeTransition.ts:53
  • src/tools/assembleHighlights.ts:53
  • src/tools/titleCard.ts:43
  • src/tools/exportPreset.ts:51
  • src/tools/pipeline.ts:181
  • src/utils/media.ts:277-288 (assertEditContainer)

Details

Other edit tools call assertEditContainer(args.output) before resolveOutput. These five go straight to ffmpeg with libx264/AAC args.

Impact

output: "x.webm" on these tools fails with a raw ffmpeg error instead of the #187 message.

Steps to reproduce

  1. title_card { text: "Hi", output: "x.webm" }
  2. Observe an ffmpeg encoder/muxer error rather than the container message

Suggested fix

Call assertEditContainer(args.output) in each of the five handlers (pipeline: on the final output). Add a table-driven tool-layer test over every edit tool with a .webm output.

Acceptance criteria

Regression of #187

Getting started

  • Relevant files: src/tools/xfadeTransition.ts, src/tools/assembleHighlights.ts, src/tools/titleCard.ts, src/tools/exportPreset.ts, src/tools/pipeline.ts, src/utils/media.ts
  • How to run tests: npm run build && npm test (also npm run typecheck and npm run lint)
  • Related docs: CONTRIBUTING.md, AGENTS.md

Filed by repo-audit/full-audit at f2fda28. Severity: low. Effort: S. audit-key: bug|src/tools/titleCard.ts|assertEditContainer

Activity

  1. added
    bug
    good first issue
    priority: low
    on Nov 9, 2026
  2. added a commit that references this issue on Nov 9, 2026
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

    buggood first issuepriority: low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions