Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only track video streams #134

Merged
merged 2 commits into from
Jul 2, 2021
Merged

Only track video streams #134

merged 2 commits into from
Jul 2, 2021

Conversation

slifty
Copy link
Member

@slifty slifty commented Jul 2, 2021

Description

This PR fixes an issue where both video and audio stream positions were tracked, resulting in false rollovers.

Related Issues

Resolves #132

There was a mistake where the test data for two tests were flipped in
a way that resulted in data being accessed that wasn't really there.
The test still passed because it was comparing the unknown value with
itself.
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
@slifty slifty merged commit b60427e into main Jul 2, 2021
@slifty slifty deleted the 132-fix-stream-tracking branch July 2, 2021 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rollover gets confused by multiple streams
1 participant