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 function to find sync frames and store avc1 codec information #34

Open
wants to merge 24 commits into
base: master
Choose a base branch
from

Conversation

fabioarnold
Copy link

These are actually 3 commits. The first fixes warnings (mainly signedness comparisons and unused stuff). The second adds MP4D_nearest_sync_frame which lets you find the nearest key/sync frame given any frame in the video stream. This is useful when implementing random access functionality and you want to start on a key frame. The third commit stores avc1 codec information. The WebCodecs API requires a valid codec string. To build this string you need the three bytes from the AVCDecoderConfigurationRecord. Maybe in the future we could also add a function to generate this string. :)

Please let me know if this ok or I should submit separate PRs.

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.

1 participant