libcaption icon indicating copy to clipboard operation
libcaption copied to clipboard

Last caption missing from ts file using ts2srt

Open ScottAtBlankCanvas opened this issue 4 years ago • 0 comments

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.

ScottAtBlankCanvas avatar Feb 15 '21 14:02 ScottAtBlankCanvas