Here is my pipeline:
appsrc name=jpeg_src ! omx_scaler ! video/x-raw-yuv,width=720,height=480 ! fakesink
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 appsrc):

But I want (see src of decodebin2):
Jeff Lancaster