<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックGStreamer-imx : can I get a phys_addr on an buffer pulled from appsink?</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/GStreamer-imx-can-I-get-a-phys-addr-on-an-buffer-pulled-from/m-p/463766#M72921</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to decode a video feed with gstreamer and draw the image on an opengl texture with 0 copy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, in my application, I am using the appsink gstreamer plugin to pull a gstreamer buffer. I would like to know if I can retrieve the physical memory address of this buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use this instruction:&lt;/P&gt;&lt;P&gt;GstImxPhysMemMeta* physMemMeta = GST_IMX_PHYS_MEM_META_GET(buffer);&lt;/P&gt;&lt;P&gt;Then physMemMeta is always NULL :smileysad:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to tell to appsink to use GST_IMX_PHYS_MEM_META_ADD when it creates the buffer ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Mar 2016 11:30:30 GMT</pubDate>
    <dc:creator>colindefais</dc:creator>
    <dc:date>2016-03-09T11:30:30Z</dc:date>
    <item>
      <title>GStreamer-imx : can I get a phys_addr on an buffer pulled from appsink?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GStreamer-imx-can-I-get-a-phys-addr-on-an-buffer-pulled-from/m-p/463766#M72921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to decode a video feed with gstreamer and draw the image on an opengl texture with 0 copy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, in my application, I am using the appsink gstreamer plugin to pull a gstreamer buffer. I would like to know if I can retrieve the physical memory address of this buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use this instruction:&lt;/P&gt;&lt;P&gt;GstImxPhysMemMeta* physMemMeta = GST_IMX_PHYS_MEM_META_GET(buffer);&lt;/P&gt;&lt;P&gt;Then physMemMeta is always NULL :smileysad:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to tell to appsink to use GST_IMX_PHYS_MEM_META_ADD when it creates the buffer ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 11:30:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GStreamer-imx-can-I-get-a-phys-addr-on-an-buffer-pulled-from/m-p/463766#M72921</guid>
      <dc:creator>colindefais</dc:creator>
      <dc:date>2016-03-09T11:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: GStreamer-imx : can I get a phys_addr on an buffer pulled from appsink?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GStreamer-imx-can-I-get-a-phys-addr-on-an-buffer-pulled-from/m-p/463767#M72922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="a______"&gt;&lt;SPAN class="tm5"&gt;&amp;nbsp; I am afraid, GST element “appsink” does not support the needed feature. &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="a______"&gt;&lt;SPAN class="tm5"&gt;As for GST_IMX_PHYS_MEM_META_GET, below link helps clarify what it is used for.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="a______"&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Yuri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 08:12:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GStreamer-imx-can-I-get-a-phys-addr-on-an-buffer-pulled-from/m-p/463767#M72922</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2016-03-21T08:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: GStreamer-imx : can I get a phys_addr on an buffer pulled from appsink?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GStreamer-imx-can-I-get-a-phys-addr-on-an-buffer-pulled-from/m-p/463768#M72923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After a few tries and errors we were able to get the phys_addr. It depends mainly on the pipeline: if the gstreamer pipeline uses hardware functionalities and if no element removes the "phys mem meta" then we can retrieve it using &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;“appsink”.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Thanks for the reply.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 08:45:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GStreamer-imx-can-I-get-a-phys-addr-on-an-buffer-pulled-from/m-p/463768#M72923</guid>
      <dc:creator>colindefais</dc:creator>
      <dc:date>2016-03-21T08:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: GStreamer-imx : can I get a phys_addr on an buffer pulled from appsink?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GStreamer-imx-can-I-get-a-phys-addr-on-an-buffer-pulled-from/m-p/463769#M72924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we are facing the same problem&amp;nbsp;but can't find the way to set&amp;nbsp;the phys_addr.&lt;/P&gt;&lt;P&gt;Here is our gstreamer chain, it uses hardware functionalities as we are only using imx plugins:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gst-launch-1.0 -v imxv4l2videosrc device=/dev/video1 ! our_plugin&amp;nbsp;! imxipuvideotransform ! imxvpuenc_mjpeg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In our transform function,&amp;nbsp;phys_mem_meta = GST_IMX_PHYS_MEM_META_GET(outbuf); is giving us NULL.&lt;/P&gt;&lt;P&gt;How can we add this phys_addr? by creating a new buffer from inbuf?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2016 10:34:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GStreamer-imx-can-I-get-a-phys-addr-on-an-buffer-pulled-from/m-p/463769#M72924</guid>
      <dc:creator>tanguymezzano</dc:creator>
      <dc:date>2016-11-24T10:34:27Z</dc:date>
    </item>
  </channel>
</rss>

