<div dir="ltr"><span style="font-size:12.8px">Hi,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><span style="font-size:12.8px">Since I am getting the input from filesrc, I had to change the blocksize of filesrc. Now it is working according to my requirements.</span><br></div><div style="font-size:12.8px"><span style="font-size:12.8px"><br></span></div><div style="font-size:12.8px"><span style="font-size:12.8px">Thank you very much for your inputs :)</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 14, 2016 at 11:24 PM, Thornton, Keith <span dir="ltr"><<a href="mailto:keith.thornton@zeiss.com" target="_blank">keith.thornton@zeiss.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="DE" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif"">The API I am using to provide the buffers to my grabber card is proprietary to the grabber card so that won’t help you much<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif"">I am then creating a gst_buffer using<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif"">Gst_buffer_new_wrapped(GST_MEMORY_FLAG_PHYSICALLY_CONTIGUOUS, bufferAddress, bufferSize, 0, bufferUsedSize, freeAdress, freeFunction);<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif"">(the last two parameters are needed because the buffer has to be returned to the grabber card’s queue when the pipeline has finished with it)<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif"">Which takes the existing data and wraps it in a gst_buffer before calling gst_app_src_push_buffer.
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif"">Maybe you can achieve something here.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Von:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> gstreamer-devel [mailto:<a href="mailto:gstreamer-devel-bounces@lists.freedesktop.org" target="_blank">gstreamer-devel-bounces@lists.freedesktop.org</a>]
<b>Im Auftrag von </b>Kiran Kumar<br>
<b>Gesendet:</b> Mittwoch, 15. Juni 2016 08:12</span></p><div><div class="h5"><br>
<b>An:</b> Discussion of the development of and with GStreamer<br>
<b>Betreff:</b> Re: Grabbing frames from GStreamer pipeline<u></u><u></u></div></div><p></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Can you please explain me how you are doing this? I'm trying this from past 5 days.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Tue, Jun 14, 2016 at 11:05 PM, Thornton, Keith <<a href="mailto:keith.thornton@zeiss.com" target="_blank">keith.thornton@zeiss.com</a>> wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif"">I am not setting the size in my SampleCallback function but I am setting the size (and type of memory
 i.e.contiguous) where I provide the buffers to my grabber card.</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Von:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> gstreamer-devel [mailto:<a href="mailto:gstreamer-devel-bounces@lists.freedesktop.org" target="_blank">gstreamer-devel-bounces@lists.freedesktop.org</a>]
<b>Im Auftrag von </b>Kiran Kumar<br>
<b>Gesendet:</b> Mittwoch, 15. Juni 2016 07:49</span><u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><br>
<b>An:</b> Discussion of the development of and with GStreamer<br>
<b>Betreff:</b> Re: Grabbing frames from GStreamer pipeline<u></u><u></u></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Are you setting the size in your code?<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">On Tue, Jun 14, 2016 at 10:46 PM, Thornton, Keith <<a href="mailto:keith.thornton@zeiss.com" target="_blank">keith.thornton@zeiss.com</a>> wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif"">Hi,
</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif"">I don’t know what you are doing but when I call gst_buffer_map for my Full HD frames, I get info.size=8294400
 and one single block of memory which I can copy in a single operation.</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Von:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> gstreamer-devel [mailto:<a href="mailto:gstreamer-devel-bounces@lists.freedesktop.org" target="_blank">gstreamer-devel-bounces@lists.freedesktop.org</a>]
<b>Im Auftrag von </b>Kiran Kumar<br>
<b>Gesendet:</b> Mittwoch, 15. Juni 2016 00:27<br>
<b>An:</b> Discussion of the development of and with GStreamer<br>
<b>Betreff:</b> Re: Grabbing frames from GStreamer pipeline</span><u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">I also used gst_base_sink_set_blocksize() to set the blocksize when the sink is in pull mode. Nothing changed.<u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Kiran<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">On Mon, Jun 13, 2016 at 10:51 PM, Thornton, Keith <<a href="mailto:keith.thornton@zeiss.com" target="_blank">keith.thornton@zeiss.com</a>> wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif"">Hi,</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif"">I think you are mistaken when you say “</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#666666">The
 gst_app_sink_pull_sample(), gst_sample_get_buffer() and gst_buffer_map() hands out only streams which are of size 4096 bytes each”.
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#666666">I am using these APIs to pass full 1920 * 1080 frames. You should provide more details so that we can maybe see what is going wrong.</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#666666"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif""> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Von:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> gstreamer-devel [mailto:<a href="mailto:gstreamer-devel-bounces@lists.freedesktop.org" target="_blank">gstreamer-devel-bounces@lists.freedesktop.org</a>]
<b>Im Auftrag von </b>Kiran Kumar<br>
<b>Gesendet:</b> Montag, 13. Juni 2016 21:20<br>
<b>An:</b> <a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">
gstreamer-devel@lists.freedesktop.org</a><br>
<b>Betreff:</b> Grabbing frames from GStreamer pipeline</span><u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#666666">Hi,</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I am new to this forum. <span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#666666"><br>
<br>
I am trying to pull frames from gstreamer pipeline and feed it to user application. I am using appsink pad to pull out the frames while the pipeline is in the PLAYING state.<br>
<br>
Problem:<br>
1. The gst_app_sink_pull_sample(), gst_sample_get_buffer() and gst_buffer_map() hands out only streams which are of size 4096 bytes each. I tried changing the blocksize but, there is no effect.<br>
<br>
My goal:<br>
To extract or pull a single frame into a single buffer and feed this buffer as input to my application which does some image processing (I am not using OpenCV).<br>
<br>
I want to pull every frame from the video-source, populate the buffer (each frame is associated with a particular buffer) and finally feed the buffer to my application. I don't want to dump this frame into a file in my filesystem.<br>
<br>
Questions:<br>
1. Are there any other ways in which I can achieve my goal without using appsink?<br>
2. If using appsink is the only way I can pull data from gstreamer, how can I achieve my goal using appsink?</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I appreciate any guidance.<span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#666666"><br>
<br>
Thanks in advance.<br>
Kiran</span><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><u></u><u></u></p>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><u></u><u></u></p>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div>
</div>

<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>