h264-reader icon indicating copy to clipboard operation
h264-reader copied to clipboard

Support l1 weights in B slice header

Open Yang2096 opened this issue 10 months ago • 2 comments

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

Yang2096 avatar Feb 20 '25 13:02 Yang2096

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

scottlamb avatar Feb 21 '25 17:02 scottlamb

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?

Yang2096 avatar Feb 24 '25 11:02 Yang2096