Simple video filter, changing pixel values

Kiran Kumar kirank3240 at gmail.com
Wed Jun 15 18:06:31 UTC 2016


Hi,

Since I am getting the input from filesrc, I had to change the blocksize of
filesrc. Now it is working according to my requirement.

Thank you very much for your inputs :)

On Wed, Jun 15, 2016 at 3:31 AM, Thornton, Keith <keith.thornton at zeiss.com>
wrote:

> 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>
> 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
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> 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/c396a26d/attachment.html>


More information about the gstreamer-devel mailing list