-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The AbstractVideoIngestionAppliance keeps track of the position associated with the stream; however, in MPEG-TS there is more than one stream (e.g. audio and video) which means there is actually more than one stream position. This was causing issues where position was jumping around back and forth because all positions were treated as being from a single stream. We now only care about the video stream. It may be that an MPEG-TS stream can contain multiple video streams, which will break this code; that said, TV Kitchen is fairly built around an assumption that a given video stream has a single video in it. In the long run we may want to also track audio stream position, but honestly at that stage we would probably want the ingestor to output multiple demuxed and remuxed streams instead of simply forwarding the stream. Issue #132
- Loading branch information
Showing
4 changed files
with
54 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
packages/core/src/__test__/data/processMpegtsStreamData.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[ | ||
{ | ||
"data": [ | ||
0, 0, 1, 0, 0, 215, 255, 251, 128, 0, 0, 1 | ||
], | ||
"pts": 1255128, | ||
"dts": 1252125, | ||
"frame_ticks": 3003, | ||
"program": 1, | ||
"stream_number": 1, | ||
"stream_id": 224, | ||
"type": 1, | ||
"content_type": 2, | ||
"frame_num": 377 | ||
} | ||
] |