Skip to content

[Bug]: Got incorrect bitstream in encoding VP9 8K #1847

Closed

Description

@Shao-Feng

Which component impacted?

Encode

Is it regression? Good in old configuration?

No, this issue exist a long time

What happened?

On Android,
with media-driver intel-media-24.1.5, and intel-gmmlib-22.3.18

Running oneVPL example "hello-encode" with the change projectceladon/libvpl#16
for encoding VP9 7680x4320 video. The bitstream is incorrect.
The input is generated with ffmpeg cmd below

ffmpeg -v verbose -f lavfi -i testsrc=size=7680x4320:rate=1 -pix_fmt yuv420p -vframes 5 -y test.yuv

On Ubuntu with the media-driver and gmmlib, this issue can not be reproduced.

The Codec dump on Android and Ubuntu is below
T1829561088_ubuntu_8k.zip
T1389417720_android_8K.zip

What's the usage scenario when you are seeing the problem?

Video Conference

What impacted?

Fail to encode VP9 video in 8K.
No problem to encode VP9 video in 4K
and no problem to encode H264 and H265 video

Debug Information

No response

Do you want to contribute a patch to fix the issue?

None

Activity

  1. Shao-Feng commented on Aug 27, 2024

    @Shao-Feng
    ContributorAuthor
  2. deleted a comment from on Aug 27, 2024
  3. deleted a comment from on Aug 27, 2024
  4. Shao-Feng commented on Aug 28, 2024

    @Shao-Feng
    ContributorAuthor

    After disable scalability as below, this issue is not reproduced.

    diff --git a/media_driver/agnostic/common/codec/hal/codechal_hw.h b/media_driver/agnostic/common/codec/hal/codechal_hw.h
    index 6d3c07ac7..590e830be 100644
    --- a/media_driver/agnostic/common/codec/hal/codechal_hw.h
    +++ b/media_driver/agnostic/common/codec/hal/codechal_hw.h
    @@ -1634,7 +1634,8 @@ public:
    bool IsDisableScalability()
    {
    - return m_disableScalability;
    + return true;
    }

    This issue is caused by enabling scalability for 8K VP9 encoding.

  5. leyu-yao commented on Aug 28, 2024

    @leyu-yao
    Contributor

    @Shao-Feng May I know which platform you are working on?

  6. Shao-Feng commented on Aug 28, 2024

    @Shao-Feng
    ContributorAuthor

    On RPL, Gen12

  7. 5 remaining items

  8. intel-mediadev commented on Sep 2, 2024

    @intel-mediadev
    Contributor

    Auto Created VSMGWL-75955 for further analysis.

  9. Jexu commented on Sep 9, 2024

    @Jexu
    Contributor

    Pls check the release note, RPL starts fron kernel 6.2.

    ADL-N/RPL-S/RPL-P: starting from kernel 6.2

  10. Shao-Feng commented on Sep 9, 2024

    @Shao-Feng
    ContributorAuthor

    Thanks for checking it. Probably this issue is caused by the GuC of SRIOV VF. Close this one. I will check on local

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Encodevideo encode relatedKMDKMD related, or has dependenceVP9VP9

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions