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

Fix the issue that duplicate AUDs are added and can't be played normally in MacOS. #94

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

keicotu
Copy link

@keicotu keicotu commented Sep 12, 2016

[What] Fix the issue that duplicate AUDs are added when the input H.264 already has AUD. And the output HLS stream or the ts files can't be played normally in Safari/QuickTime player. (the frame display order becomes incorrect.)
[Why] The size of AUD in the samples are 3 and "nalu_size != 2" is always true, so AUDs are added.
[How] Remove the nalu_size checking and only check unit type.

… And the output HLS stream or the ts files can't be played normal in Safari/QuickTime player. (the frame display becomes incorrect.)

[Why] The size of AUD in the sample are 3 and "nalu_size != 2" is always true, so AUDs are added.
[How] Remove the nalu_size checking and only check unit type.
@barbibulle
Copy link
Contributor

According to the AVC spec, AccessUnit delimiter NAL units are always 2 bytes long. Can you share an example stream where you have AUD NAL units that are not 2 bytes long?

@keicotu
Copy link
Author

keicotu commented Sep 19, 2016

The stream is transcoded and output by using Edius. I transcoded 15 sec. video (bbb_720p.mp4) from Big Buck Bunny. Using the file as the input for mp42hls will reproduce the issue.
[bbb_720p.mp4.zip](https://github.com/axiomatic-systems/Bento4/files/479662/bbb_720p.mp4.zip

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

2 participants