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

Support l1 weights in B slice header #95

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

Conversation

Yang2096
Copy link
Contributor

According to the H264 specification 7.3.3.2 Prediction weight table syntax, there is two layers of luma/chroma weight in B slice header.
image

@scottlamb
Copy link
Collaborator

Thanks! The code looks correct to me. Could you throw in a test and a "BREAKING CHANGE:" entry in CHANGELOG.md?

@Yang2096
Copy link
Contributor Author

It is hard to find or create a video that contains such slice header, i tried to encode a video using ffmpeg with -c:v libx264 -x264-params weightp=2:weightb=1, but the best i can get is l0 prediction weight.
Any suggestion?

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.

2 participants