<div dir="ltr">Hi,<div><br></div><div>Sorry for the confusion. Even I am able to pass full 1920x1080 frames.</div><div>But,</div><div>GstMapInfo map;</div><div>gst_buffer_map(buffer, &map, GST_MAP_READ);</div><div><br></div><div>Here, the size of "map.data" which is "map.size" will always be 4096 bytes for each chunk of data (I get multiple chunks, so that the entire frame is streamed). How to increase this chunk size? So that I get more data in a single chunk itself.</div><div><br></div><div>For example if a video frame is 512x512x8 (bit depth)=2097152 bits. And at the appsink I don't want 4096 bytes to be transferred 64 times to transfer the entire frame. I want 2097152 bits to be available in a single shot at appsink so that I can copy this data in a buffer of size 2097152 bits and pass this buffer to my application for image processing.</div><div><br></div><div>One of the filter which I am using in my image processing application needs the entire frame as its input and not in the form of chunks.</div><div><br></div><div>Or, is there a way in which I can accumulate these chunks into a single buffer? In case of a video sequence each frame needs to be associated with a particular buffer. </div><div><br></div><div>Thanks,</div><div>Kiran </div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 13, 2016 at 10:51 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"">Hi,<u></u><u></u></span></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.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#666666"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif""><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> 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<u></u><u></u></span></p><div><div class="h5">
<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>

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