Skip to content

Last caption missing from ts file using ts2srt #63

@ScottAtBlankCanvas

Description

@ScottAtBlankCanvas

I will apologize for the ridiculousness of the test case in advance. Inserting captions every 50 ms is stupid, but the missing caption is easiest to repro from my side this way. This was part of a test for a client to try and identify missing captions and not a normal use case.

Steps I used:

  1. Using Wowza Media Server, injected AMF onTextData captions every 50 ms.
  2. Used Wowza's onTextData to CEA608 caption conversion
  3. Captured first HLS ts segment (attached media_1.ts)
  4. Ran ts2srt on ts segment (output in ts2srt.txt)

I noticed caption 199 is missing. It is the last one in the ts file.
I also ran caption-inspector, which did find the 199 caption. (media_1-C1.608 attached)

As a side note, the times from caption inspector and libcaption seem different by 33 ms.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions