[Bug 796179] New: Setting keyframe-period for the vaapih265enc element higher than 1024 causes decoder parse errors

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed May 16 20:28:21 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=796179

            Bug ID: 796179
           Summary: Setting keyframe-period for the vaapih265enc element
                    higher than 1024 causes decoder parse errors
    Classification: Platform
           Product: GStreamer
           Version: 1.14.0
                OS: Linux
            Status: NEW
          Severity: major
          Priority: Normal
         Component: gstreamer-vaapi
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: bgiles at sorenson.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
                CC: bsreerenj at gmail.com, vjaquez at igalia.com
     GNOME version: ---

I am creating several bitstreams to evaluate the encoder quality of the Apollo
Lake. I ran some tests with GStreamer 1.12 but needed to increase the
keyframe-period parameter to a large number so only one I-Frame is used in the
output stream. The 1.14.0 release has the required change to set the
keyframe-period parameter higher than the previous 300. I set the
keyframe-period to more frames than my filesrc and created a bitstream. When I
put that bitstream through our Video Quality Measurement Tool it complained
about missing references and the PSNR score dropped in half. I tried running a
pipeline on the board that would encode and decode the video and it froze with
a h265 parse error codes 8.

Running the following pipeline:

GST_DEBUG=3,"*vaapi*" gst-launch-1.0 filesrc location=Torture_Test_512x288.m4v
! decodebin3 ! vaapih265enc rate-control=2 bitrate=1024 keyframe-period=1025
max-bframes=0 ! vaapih265dec !
"video/x-raw,format=I420,width=512,height=288,framerate=30/1" ! vaapisink

I get the following errors from the decoder:

0:00:10.181935933 14105 0x7efe4c004720 WARN       codecparsers_h265
gsth265parser.c:807:gst_h265_parser_parse_short_term_ref_pic_sets: value
greater than max. value: -1024, max 32767
0:00:10.181969187 14105 0x7efe4c004720 WARN       codecparsers_h265
gsth265parser.c:845:gst_h265_parser_parse_short_term_ref_pic_sets: error
parsing "ShortTermRefPicSet Parameters"
0:00:10.181986382 14105 0x7efe4c004720 WARN       codecparsers_h265
gsth265parser.c:2181:gst_h265_parser_parse_slice_hdr: error parsing "Slice
header"
0:00:10.182002670 14105 0x7efe4c004720 ERROR            vaapidecode
gstvaapidecode.c:1178:gst_vaapidecode_parse_frame: parse error 8


Hardware: Apollo Lake N3350
OS: Yocto Rocko 2.4.2
Build Configuration:
BB_VERSION           = "1.36.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal-4.8"
TARGET_SYS           = "x86_64-poky-linux"
MACHINE              = "intel-corei7-64"
DISTRO               = "poky"
DISTRO_VERSION       = "2.4.2"
TUNE_FEATURES        = "m64 corei7"
TARGET_FPU           = ""
meta
meta-poky
meta-yocto-bsp       = "rocko:342fbd6a3e57021c8e28b124b3adb241936f3d9d"
meta-intel           =
"meta-intel-rocko-2.4.2:92d66730fba1fdc71d2548332c8ff57160e31b05"
meta-qt5             = "rocko:7a52f924a0298857db99be20aca1484bb2b4e163"
meta-sorenson        = "master:35e3d0317fa829aac68c66c98140f1e7514544ea"

Note: meta-sorenson updates GStreamer from 1.12 to 1.14

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list