Multi-language VobSub idx/sub files are merged into one track

Open
#83 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
macos, swift
Domain
backend

Research direction

Start by locating VobSubIDX and VobSubParser, then trace how idx id: and delay: directives and packet substream IDs are handled. The issue identifies three changes across parsing and packet collection; done means each language becomes its own track, packets from other substreams are excluded, and the delay is applied.

Written by the indexing model from the issue text.

Description

bug

VobSubIDX collects every timestamp: line regardless of the id: block it belongs to, and keeps the last id: as the language. VobSubRip commonly writes several languages into one .idx/.sub pair, so all of them are OCR'd into one interleaved SRT.

VobSubParser also skips the substream ID byte without checking it, so a subpicture whose packets interleave with another stream's gets mixed data. The delay: directive is ignored too.

Fix: parse the idx per id: block (one track each), check the substream ID when collecting packets, and apply delay:.

Dominant language
Swift
Stars
42
Forks
9
Avg merge
9h 30m
Merged PRs (30d)
4

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ecdye/macSubtitleOCR

All issues in ecdye/macSubtitleOCR

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.