vaapipostproc: upstream caps negotiation fails
Submitted by Tomas Rataj
Link to original bug (#785706)
Description
Created attachment 356755
GST_DEBUG=5
Hi,
Following pipelines are not working:
gst-launch-1.0 appsrc is-live=true caps="video/x-raw,format=BGRx,width=1280,height=1024,framerate=20/1" ! videorate ! vaapipostproc ! video/x-raw,format=NV12,framerate=10/1 ! fakesink
gst-launch-1.0 appsrc is-live=true caps="video/x-raw,format=BGRx,width=1280,height=1024,framerate=20/1" ! videorate ! video/x-raw,framerate=10/1 ! vaapipostproc ! video/x-raw,format=NV12 ! fakesink
with warning:
WARN basetransform gstbasetransform.c:1346:gst_base_transform_setcaps:<videorate0>
transform could not transform video/x-raw, format=(string)BGRx, width=(int)1280, height=(int)1024, framerate=(fraction)20/1 in anything we support
Pipeline with swapped vaapipostproc and videorate is working correctly:
gst-launch-1.0 appsrc is-live=true caps="video/x-raw,format=BGRx,width=1280,height=1024,framerate=20/1" ! vaapipostproc ! videorate ! video/x-raw,format=NV12,framerate=10/1 ! fakesink
Attachment 356755, "GST_DEBUG=5":
GST_DEBUG_5.zip
Version: 1.12.x