Skip to content

Re-Run the Full Cleanup After a Re-Encode Repair #1075

Closed

Description

@ptr727

Behavior

After VerifyAndRepair(), Process.ProcessFile() repeats only RepairMetadataErrors(), SetUnknownLanguageTracks(), RemoveTags() and RepairDefaultFlags(). A Tier 2 repair re-encodes the whole file with FfMpeg or HandBrake, and the steps below do not run again:

  • RemoveUnwantedLanguageTracks() and RemoveDuplicateTracks()
  • RemoveClosedCaptions(), since a re-encode can carry captions forward
  • RemoveCoverArt()
  • RepairMatroskaStructure()

The IETF tag loss after FfMpeg and HandBrake is already tracked in #148 and #149.

Reproduction shape

  1. Process a file whose verify fails with a decode error, so RepairAndReVerify() reaches the FfMpeg re-encode.
  2. Inspect the result for tracks or attachments the earlier steps removed or would remove.

Expected

Every cleanup step that a re-encode can undo runs again after a Tier 2 repair.

Found while drawing the process command diagrams, ARCHITECTURE.md "Process Command Logic", suspect branch S8.

Activity

  1. added
    bug
    pre-existing
    on Oct 29, 2026
  2. added a commit that references this issue on Oct 30, 2026
    8ec732f
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

    bugpre-existing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions