Skip to content

Bug: assemble_highlights silently drops audio when only some clips have a track #19

Closed

Description

@TMHSDigital

Summary

assemble_highlights includes audio only when every input clip has an audio track. If even one clip is video-only, the entire output loses audio with no warning.

Where

src/tools/assembleHighlights.ts: hasAudio = infos.every((i) => i.audioCodec !== null), consumed by buildAssembleArgs in src/utils/produce.ts.

Impact

A common case: stitching a title_card (has a silent track) with real clips works, but mixing an audio-bearing recording with any video-only clip drops all audio from the result. The user gets a silent video with no indication why.

Suggested fix

Normalize audio per clip: synthesize a silent track (anullsrc) for clips that lack one so the xfade/concat audio chain always has N audio inputs, OR surface a clear note/error when audio is dropped. Preferred: pad with silence so partial-audio sets keep their audio.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions