intel/libva

Correct the av1 enc API; byte_offset_frame_hdr_obu_size is necessary

rosetta-jpn opened this issue · 5 comments

The libva states the offset values of VAEncPictureParameterBufferAV1 are ignored in CQP mode.
However, the produced bitstream is corrupted in fact if they are not filled in CQP mode.
As far as we talked with media-driver folks, byte_offset_frame_hdr_obu_size needs to be filled even in CQP mode.
Indeed, a driver can read the offset from the packed headers, but it seems to be reasonable for an app to fill it.

So I think it would be better to correct the API; byte_offset_frame_hdr_obu_size needs to be filled regardless bitrate modes.

thanks for reporting, will file PR to fix it ASAP

and there are one WA , which could work before libva fix merged.
intel/media-driver#1691

Any update?

#726 was merged, then this issue could be closed?

Yes, SGTM.