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

Add hacky NALU completion handling #39

Merged
merged 2 commits into from
Aug 10, 2023
Merged

Conversation

Qizot
Copy link
Member

@Qizot Qizot commented Aug 8, 2023

This PR adds support for AU completion detection that works in mysterious ways (taken from GStreamer).

https://github.com/GStreamer/gst-plugins-bad/blob/ca8068c6d793d7aaa6f2e2cc6324fdedfe2f33fa/gst/videoparsers/gsth264parse.c#L1183C45-L1185C49

@Qizot Qizot requested a review from varsill as a code owner August 8, 2023 14:53
@Qizot Qizot requested a review from bblaszkow06 August 8, 2023 14:53
Copy link
Contributor

@varsill varsill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe we can leave it that way, as after some inspection I've came to the conclusion that it shouldn't break the existing cases.
Please address the Mateusz's comment and optionally bump the version, if the release is needed now.

@Qizot Qizot requested review from mat-hek and varsill August 10, 2023 08:06
@Qizot Qizot merged commit 8b14257 into master Aug 10, 2023
3 checks passed
@Qizot Qizot deleted the add-hacky-au-completion-handling branch August 10, 2023 09:46
#
# It happens that some streams have broken frame numbers (that are either non-monotically
# increasing or just reset on a key frame) but the `first_mb_in_slice` set to zero can mean that
# we are dealin with a new AU (given a proper `nal_unit_type`). It seems that it is sufficient
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# we are dealin with a new AU (given a proper `nal_unit_type`). It seems that it is sufficient
# we are dealing with a new AU (given a proper `nal_unit_type`). It seems that it is sufficient

#
# NOTE: The following check is not a part of the original H264 specification unlike the other checks below.
#
# It happens that some streams have broken frame numbers (that are either non-monotically
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# It happens that some streams have broken frame numbers (that are either non-monotically
# It happens that some streams have broken frame numbers (that are either non-monotonically

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.

None yet

4 participants