AW: Simple video filter, changing pixel values

Thornton, Keith keith.thornton at zeiss.com
Wed Jun 15 10:31:13 UTC 2016


Now that you have let me know what you are trying, the filesrc element has a blocksize of 4096. Try increasing it to your 512 * 512 and see what happens

Von: gstreamer-devel [mailto:gstreamer-devel-bounces at lists.freedesktop.org] Im Auftrag von Kiran Kumar
Gesendet: Mittwoch, 15. Juni 2016 12:10
An: Discussion of the development of and with GStreamer
Betreff: Re: Simple video filter, changing pixel values

Thanks for the quick reply. I always get 4096 bytes.

GstMapInfo map;
static GstFlowReturn
gst_mynewplugin_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
{
      [....]

        gst_buffer_map (buf, &map, GST_MAP_READ);
        g_print("buffer size=%d\n", map.size);

       [.......]
}

The input image size is 512x512x8(bit depth)=2097152 bits. But, map.size is always = 4096 bytes.

I'm getting in terms of chunks where each chunk size is 4096 bytes. I need the entire frame.

Are you setting the buffer size of the pad?

Thanks

On Wed, Jun 15, 2016 at 2:22 AM, Lazar Todic <lazzar.d.todic at gmail.com<mailto:lazzar.d.todic at gmail.com>> wrote:
Hi, Kumar!

I'm getting size of 460800 bytes. The resolution of my input video is
640x480. I suppose that color space format that I'm working with is YUV420
or NV12, but it is yet to discover. :) Was I any of help?



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Simple-video-filter-changing-pixel-values-tp4678030p4678057.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org<mailto:gstreamer-devel at lists.freedesktop.org>
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160615/9305fc1f/attachment.html>


More information about the gstreamer-devel mailing list