Closed slifty closed 3 years ago
While we're here -- instead of having processMpegtsStreamData
generate empty packets in the beginning of a stream we can have it only start generating when getMostRecentDemuxedPacket
actually returns a value.
Oh I'm silly -- the payloads being emitted contain the raw data, the mostRecentDemuxedPacket is only being used to extract timestamp.
We may want to change that some day for some reason but not right now.
Closing this issue.
Bug
Current Behavior
The current logic defined in the
AbstractVideoIngestionAppliance
(in particular inprocessMpegtsStreamData
) will emit a payload every time there is new mpegts data. The problem is that mpegts data does not have a 1:1 relationship with packets!Suggested Behavior
I believe we should have it (1) emit a payload ONLY when there is a new packet to emit and (2) emit every un-emitted packet in the buffer.
This would mean that the transform stream occasionally returns null (whether that is literally the recommended approach is not clear to me)