Open kozmaz87 opened 8 years ago
Is this a duplicate of #269 ?
There are two things going on here. Firstly the request for the segment that 570 occupies comes before it is available, so it is completely reasonable not to output it, though we should avoid configuring scenarios in which that can happen.
Secondly the segment period is requested around 1.5s after it has begun but around 3.5s before it has ended. This means that on output, the availability time of the output will be at least 1.5s after it has begun, plus the time it took to compute and save that segment, and that the latter 3.5s worth of subtitle text will be missing. So if there is a packager looking for that segment assuming that it is available at its begin time then it will fail. And if there is one looking for it at its end time then it will succeed and get incomplete content.
If there is a bug here it is that there is no warning on requests for a segment before that segment has ended, and possibly that the segment request scheduling is mistimed - the first request comes in around 0.001s after the document sequence is created, when the sequence interval is 5s - the first request should be made at the document sequence creation time + the interval, at the earliest, to ensure that any content destined for the segment has actually arrived.
This bug was filed some time ago - I'm not sure if this behaviour has now been fixed - @kozmaz87 do you know?
One (obvious) operational consequences from this too:
The following is possible:
In the above example document 570 never gets into the encoder because it is missing its place.