vaapipostproc: upstream caps negotiation with qtdemux fails
Hi,
I built gstreamer-vaapi 1.16 from the source code in my docker image (Ubuntu18.04 with GStreamer1.16.2 and MediaSDK19.3.1 already installed) using the following command:
meson -Dpackage_origin="${PACKAGE_ORIGIN}" --prefix=${PREFIX} --libdir=${LIBDIR} --buildtype=debug --libexecdir=${LIBEXECDIR} build/ && ninja -C build && DESTDIR=/home/build meson install -C build/ && meson install -C build/
I'm trying to convert to BGRx format using vaapipostproc, but following pipelines are not working:
GST_DEBUG=4
gst-launch-1.0 filesrc location=/path/to/video.mp4 ! qtdemux ! vaapih264dec ! vaapipostproc ! video/x-raw,format=BGRx ! fakesink sync=false
gst-launch-1.0 -v videotestsrc pattern=snow ! video/x-raw,width=1280,height=720 ! vaapipostproc ! video/x-raw,format=BGRx ! fakesink sync=false
Excerpts from the log:
0:00:01.216180627 1440 0x55f96f3c04f0 WARN basetransform gstbasetransform.c:1364:gst_base_transform_setcaps: transform could not transform video/x-raw(memory:VASurface), format=(string)NV12, width=(int)1280, height=(int)720, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)24000/1001 in anything we support 0:00:01.216195149 1440 0x55f96f3c04f0 WARN qtdemux qtdemux.c:6605:gst_qtdemux_loop: error: Internal data stream error. 0:00:01.216199268 1440 0x55f96f3c04f0 WARN qtdemux qtdemux.c:6605:gst_qtdemux_loop: error: streaming stopped, reason not-negotiated (-4)