gstappsrc NV12 buffer data

jlancaster jeff_lancaster at
Wed Dec 5 15:28:11 PST 2012

Here is my pipeline:

appsrc name=jpeg_src ! omx_scaler ! video/x-raw-yuv,width=720,height=480 !

gst_app_src_push_buffer (GST_APP_SRC (source), my_gst_buffer);

The data that is on the src pad is reported as:

video/x-raw-yuv-strided, format: {NV12}, width: [1, 2147483647], height: [1,
2147483647], framerate: [ 0/1, 2147483647]

It should be, and I want it to be:

video/x-raw-yuv-strided, width: 720, height: 480, format: NV12, rowstride:
896, framerate: 1000/67, pixel-aspect-ratio: 1/1, interlaced: false

I tried to use gst_app_src_set_caps to set the caps in the appsrc element
but I still see the weird values in the first set of caps above.

How can I advertise the caps on the src pin of the appsrc element so that
the downstream plugin (a scaler) will handle the data correctly?

I get (see src of decodebin2):

But I want:

Jeff Lancaster
View this message in context:
Sent from the GStreamer-devel mailing list archive at

More information about the gstreamer-devel mailing list