Login  Register

gstappsrc NV12 buffer data

classic Classic list List threaded Threaded
4 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

gstappsrc NV12 buffer data

jlancaster
21 posts
This post was updated on Dec 05, 2012; 11:35pm.
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
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: gstappsrc NV12 buffer data

jlancaster
21 posts
Sorry I meant to attach this image:
<http://gstreamer-devel.966125.n4.nabble.com/file/n4657266/i_get2.png>



-----
Jeff Lancaster
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/gstappsrc-NV12-buffer-data-tp4657265p4657266.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Jeff Lancaster
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: gstappsrc NV12 buffer data

Nicolas Dufresne
104 posts
In reply to this post by jlancaster
Le mercredi 05 décembre 2012 à 15:28 -0800, jlancaster a écrit :

>
> 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

Custom stride support has been introduced in GStreamer 1.0. Introducing
a new media type will most likely take a long time since it would
require modifying all existing elements.

regards,
Nicolas

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: gstappsrc NV12 buffer data

jlancaster
21 posts
OK, that makes sense why the rest of the pipeline would not react as I thought it should.
Jeff Lancaster