hevc 10bit vdenc: encode fail with vbr mode
- System Environment
- =======
- Platform: ICL
- Arch: Ubuntu 16.04 x86_64
- Kernel: 5.0.0+
- Libva: 93c52a17b8d2fdd22e92734caba0d462aef3bf55
- Gmmlib: 0e5e49651e7d4d427493df01611f18dd96c45b5d
- media-driver: 753ee1937e7c6e3cda6a500815eb77b74e179ea1
- gstreamer: f5ccb2215a75ce799e380d333acb43d72d8f69ed
- gst-plugin-base: f8bed33d4bf1fea7b5b2731b1802eb75fe84744d
- gst-plugin-bad: cae6b7112de7c9c7a70c629271c7ecfdb6a7a172
- gstreamer-vaapi: d38f0bbb
-
- Bug detailed description
- =======
- During doing hevc 10bit vdenc under vbr mode with iHD drvier, it will encode fail.
-
- Reproduce Steps
- ==============
-
- build env as above
-
-
- gst-launch-1.0 -vf filesrc location=/root/media/testing/assets/yuv/1080P_1920x1080.P010 num-buffers=150 ! rawvideoparse format=p010-10le width=1920 height=1080 framerate=25 ! videoconvert ! video/x-raw,format=P010_10LE ! vaapih265enc rate-control=vbr keyframe-period=30 quality-level=1 num-slices=1 bitrate=1428 refs=2 tune=low-power low-delay-b=1 ! video/x-h265,profile=main-10 ! h265parse ! filesink location=test.h265
-
-
- error info
- [CODEC]:CRITICAL - SetSliceStructs:1278: MOS returned error, eStatus = 0x2
- [CODEC]:CRITICAL - InitializePicture:2169: MOS returned error, eStatus = 0x2
- [CODEC]:CRITICAL - InitializePicture:2599: MOS returned error, eStatus = 0x2
- [CODEC]:CRITICAL - ExecuteEnc:4264: Encoding initialization failed.
- [CODEC]:CRITICAL - Execute:583: MOS returned error, eStatus = 0x2
- [LIBVA]:CRITICAL - EncodeInCodecHal:388: DDI:Failed in Codechal!
- [LIBVA]:CRITICAL - EndPicture:80: DDI:DdiEncode_EncodeInCodecHal return failure.
- 0:00:00.993113714 16387 0x1ee74a0 ERROR vaapi gstvaapiencoder.c:518:gst_vaapi_encoder_encode_and_queue: failed to encode frame (status = -1)
- 0:00:00.993148856 16387 0x1ee74a0 ERROR vaapiencode gstvaapiencode.c:731:gst_vaapiencode_handle_frame: failed to encode frame 2 (status -1)
- ERROR: from element /GstPipeline:pipeline0/GstRawVideoParse:rawvideoparse0: Internal data stream error.
- Additional debug info:
- gstbaseparse.c(3634): gst_base_parse_loop (): /GstPipeline:pipeline0/GstRawVideoParse:rawvideoparse0:
- streaming stopped, reason error (-5)
Edited by Tim-Philipp Müller