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

Fix HEVC 10bit encoding on KBL. (GitHub issue #320) #333

Closed

Conversation

wangyan42164
Copy link
Contributor

  1. Make sure CODECHAL_HEVC_MBENC_PENC kernel state initialized.
  2. Add support format for 10bit.
  3. Make sure CODECHAL_HEVC_MBENC_DS_COMBINED kernel state initialized.
    But need disable it on BXT and SKL. It should not add condition check
    in CodechalEncHevcStateG9::InitKernelStateMbEnc(). It should return
    MOS_STATUS_INVALID_PARAMETER in GetKernelHeaderAndSize().

This patch can fix #320.

Confirmation:
Current gstream seems cannot display 10bit data by vaapidecodebin.
So after encoding into h265 file, I have to use ffmpeg to convert it
to 8bit and display it by gst-play-1.0. It seems OK.

Signed-off-by: Yan Wang yan.wang@linux.intel.com

1. Make sure CODECHAL_HEVC_MBENC_PENC kernel state initialized.
2. Add support format for 10bit.
3. Make sure CODECHAL_HEVC_MBENC_DS_COMBINED kernel state initialized.
But need disable it on BXT and SKL. It should not add condition check
in CodechalEncHevcStateG9::InitKernelStateMbEnc(). It should return
MOS_STATUS_INVALID_PARAMETER in GetKernelHeaderAndSize().

This patch can fix intel#320.

Confirmation:
Current gstream seems cannot display 10bit data by vaapidecodebin.
So after encoding into h265 file, I have to use ffmpeg to convert it
to 8bit and display it by gst-play-1.0. It seems OK.

Signed-off-by: Yan Wang <yan.wang@linux.intel.com>
@wangyan42164
Copy link
Contributor Author

I finished more confirmation.
The encoded HEVC stream by this fix can be decoded and displayed by the following command:
gst-launch-1.0 filesrc location=aa.h265 ! h265parse ! avdec_h265 ! videoconvert ! autovideosink

So the fix should work.
I will check vaapidecodebin issue for decoding the HEVC stream in the next steps. It should not related with this fix.

@wangyan42164
Copy link
Contributor Author

#351 will fix decoding issue of 10bit HEVC stream.

@XinfengZhang XinfengZhang added the verifying PR: fix ready and verifying with build/test label Oct 15, 2018
@wangyan42164
Copy link
Contributor Author

wangyan42164 commented Oct 19, 2018

@liangali This PR will cause ULT error when manual build on WIndows X64 Debug. So I refined it as #371. Could you please review it? Thanks.

@wangyan42164
Copy link
Contributor Author

Refine it by #371

@wangyan42164
Copy link
Contributor Author

Refine it by #371

3 similar comments
@wangyan42164
Copy link
Contributor Author

Refine it by #371

@wangyan42164
Copy link
Contributor Author

Refine it by #371

@wangyan42164
Copy link
Contributor Author

Refine it by #371

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
verifying PR: fix ready and verifying with build/test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[gstreamer-vaapi][hevc-10bit-enc]encoding fail with iHD driver
3 participants