<?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のトピックmfw_isink hwbuf allocator zone?</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/mfw-isink-hwbuf-allocator-zone/m-p/265181#M27426</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;I am working on making a list player application using Gstreamer on the imx6 Wandboard-quad.&amp;nbsp; When I use mfw_isink as my sink element, the pipeline takes approximately 5 seconds to build before it can be displayed.&amp;nbsp; That is terrible for my application, where I want clip to clip transitions to be as seamless as possible.&amp;nbsp; This delay seems to be independent of the type of video I am playing; static low-res jpeg images, standard definition video, or 1080p with multiple graphics on top, it all takes 5 seconds before it will start to run.&amp;nbsp; I noticed that shortly before the video plays, I get this message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hwbuf allocator zone(3133440) created&lt;/P&gt;&lt;P&gt;can not create threadmfw_gst_isink_setcaps:1489&lt;/P&gt;&lt;P&gt;Pipeline is PREROLLED ...&lt;/P&gt;&lt;P&gt;Setting pipeline to PLAYING ...&lt;/P&gt;&lt;P&gt;New clock: GstSystemClock&lt;/P&gt;&lt;P&gt;VS0 created. in fmt[NV12] win(0,0-1920,1080:1920x1080) out win(0,0-1920,1080:1920x1080)&lt;/P&gt;&lt;P&gt;set deinterlace mode 0&lt;/P&gt;&lt;P&gt;hwbuf allocator zone(614400) created&lt;/P&gt;&lt;P&gt;hwbuf allocator zone(614400) destroied.&lt;/P&gt;&lt;P&gt;hwbuf allocator zone(614400) created&lt;/P&gt;&lt;P&gt;hwbuf allocator zone(614400) destroied.&lt;/P&gt;&lt;P&gt;hwbuf allocator zone(614400) created&lt;/P&gt;&lt;P&gt;hwbuf allocator zone(614400) destroied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What does 'hwbuf allocator zone' mean?&amp;nbsp; Does this have anything to do with the delay I am encountering?&amp;nbsp; I tried making two separate gstreamer pipelines so that both video clips will be pre-buffered.&amp;nbsp; Once the first video ends the other will be set to play, but I still get a long delay and this message about hwbuf allocator zone. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can I do to reduce/remove this delay?&amp;nbsp; Again, I am using the imx6 Wandboard-quad built with Yocto kernel 3.0.35-4.0.0.&amp;nbsp; My VPU information is as follows:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vpudec versions &lt;/P&gt;&lt;P&gt;&amp;nbsp; plugin: 3.0.8&lt;/P&gt;&lt;P&gt;&amp;nbsp; wrapper: 1.0.38(VPUWRAPPER_ARM_LINUX Build on Nov&amp;nbsp; 1 2013 14:15:55)&lt;/P&gt;&lt;P&gt;&amp;nbsp; vpulib: 5.4.15&lt;/P&gt;&lt;P&gt;&amp;nbsp; firmware: 2.3.10.40778&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Josh Kurland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Nov 2013 20:02:18 GMT</pubDate>
    <dc:creator>joshkurland</dc:creator>
    <dc:date>2013-11-07T20:02:18Z</dc:date>
    <item>
      <title>mfw_isink hwbuf allocator zone?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mfw-isink-hwbuf-allocator-zone/m-p/265181#M27426</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;I am working on making a list player application using Gstreamer on the imx6 Wandboard-quad.&amp;nbsp; When I use mfw_isink as my sink element, the pipeline takes approximately 5 seconds to build before it can be displayed.&amp;nbsp; That is terrible for my application, where I want clip to clip transitions to be as seamless as possible.&amp;nbsp; This delay seems to be independent of the type of video I am playing; static low-res jpeg images, standard definition video, or 1080p with multiple graphics on top, it all takes 5 seconds before it will start to run.&amp;nbsp; I noticed that shortly before the video plays, I get this message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hwbuf allocator zone(3133440) created&lt;/P&gt;&lt;P&gt;can not create threadmfw_gst_isink_setcaps:1489&lt;/P&gt;&lt;P&gt;Pipeline is PREROLLED ...&lt;/P&gt;&lt;P&gt;Setting pipeline to PLAYING ...&lt;/P&gt;&lt;P&gt;New clock: GstSystemClock&lt;/P&gt;&lt;P&gt;VS0 created. in fmt[NV12] win(0,0-1920,1080:1920x1080) out win(0,0-1920,1080:1920x1080)&lt;/P&gt;&lt;P&gt;set deinterlace mode 0&lt;/P&gt;&lt;P&gt;hwbuf allocator zone(614400) created&lt;/P&gt;&lt;P&gt;hwbuf allocator zone(614400) destroied.&lt;/P&gt;&lt;P&gt;hwbuf allocator zone(614400) created&lt;/P&gt;&lt;P&gt;hwbuf allocator zone(614400) destroied.&lt;/P&gt;&lt;P&gt;hwbuf allocator zone(614400) created&lt;/P&gt;&lt;P&gt;hwbuf allocator zone(614400) destroied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What does 'hwbuf allocator zone' mean?&amp;nbsp; Does this have anything to do with the delay I am encountering?&amp;nbsp; I tried making two separate gstreamer pipelines so that both video clips will be pre-buffered.&amp;nbsp; Once the first video ends the other will be set to play, but I still get a long delay and this message about hwbuf allocator zone. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can I do to reduce/remove this delay?&amp;nbsp; Again, I am using the imx6 Wandboard-quad built with Yocto kernel 3.0.35-4.0.0.&amp;nbsp; My VPU information is as follows:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vpudec versions &lt;/P&gt;&lt;P&gt;&amp;nbsp; plugin: 3.0.8&lt;/P&gt;&lt;P&gt;&amp;nbsp; wrapper: 1.0.38(VPUWRAPPER_ARM_LINUX Build on Nov&amp;nbsp; 1 2013 14:15:55)&lt;/P&gt;&lt;P&gt;&amp;nbsp; vpulib: 5.4.15&lt;/P&gt;&lt;P&gt;&amp;nbsp; firmware: 2.3.10.40778&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Josh Kurland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 20:02:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mfw-isink-hwbuf-allocator-zone/m-p/265181#M27426</guid>
      <dc:creator>joshkurland</dc:creator>
      <dc:date>2013-11-07T20:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: mfw_isink hwbuf allocator zone?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mfw-isink-hwbuf-allocator-zone/m-p/265182#M27427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anybody else experienced this delay when launching a video or looping one?&amp;nbsp; Any feedback on this would be really great.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If any Freescale representative or experienced developer sees this thread, could you tell me if it is possible to reduce or eliminate this delay if I go down to the VPU directly, instead of through Gstreamer?&amp;nbsp; I would prefer to stick with Gstreamer, but I cannot have that kind of delay showing between videos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Josh Kurland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 20:01:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mfw-isink-hwbuf-allocator-zone/m-p/265182#M27427</guid>
      <dc:creator>joshkurland</dc:creator>
      <dc:date>2013-11-12T20:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: mfw_isink hwbuf allocator zone?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mfw-isink-hwbuf-allocator-zone/m-p/265183#M27428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Josh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not an IPU expert so I can not say much about this delay (maybe the creating of HW buffers raise some poll system calls?). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are you planing to render several videos on the same display? if no, then you can use mfw_v4lsink which does not have this delay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 20:30:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mfw-isink-hwbuf-allocator-zone/m-p/265183#M27428</guid>
      <dc:creator>LeonardoSandova</dc:creator>
      <dc:date>2013-11-12T20:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: mfw_isink hwbuf allocator zone?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mfw-isink-hwbuf-allocator-zone/m-p/265184#M27429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am making media list player.&amp;nbsp; Only one video will be playing at a time, but this video may be looping over and over or it may play a second video after it is done.&amp;nbsp; The reason I am using mfw_isink is that I also need to include a text overlay and a jpeg/png graphic overlay on top of the video.&amp;nbsp; I have tested the loading delay time using isink without the other overlays, but it takes the same exact time as it would with the overlays in place.&amp;nbsp; The only performance hit I see when using the multioverlays is the framerate drops tremendously on 1080i/p videos.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been using mfw_v4lsink until very recently, when I switched over to add multioverlay functionality.&amp;nbsp; Even when using the v4lsink I noticed a slight delay of around 1 second between load times.&amp;nbsp; Could you recommend any possible optimizations?&amp;nbsp; I have tried to make two pipelines in gstreamer.&amp;nbsp; Both pipelines are being built at the same time, then the first pipeline is set to play.&amp;nbsp; When the first video reaches its end, the second pipeline is changed from PAUSED to PLAYING.&amp;nbsp; Yet I still see this delay when the second pipeline takes over.&amp;nbsp; Do you know if this delay is hardware-based?&amp;nbsp; Or could it be software-related, either something kernel level or something in my code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 21:08:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mfw-isink-hwbuf-allocator-zone/m-p/265184#M27429</guid>
      <dc:creator>joshkurland</dc:creator>
      <dc:date>2013-11-12T21:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: mfw_isink hwbuf allocator zone?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mfw-isink-hwbuf-allocator-zone/m-p/265185#M27430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, this can be done!&amp;nbsp; My approach just needed a little tweaking.&amp;nbsp; I've managed to get the delay down from 5 seconds to around 1 (next goal: zero delay!).&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;To cut the delay down, I had to use two pipelines.&amp;nbsp; Both pipelines had to be created at the same time.&amp;nbsp; Then the first pipeline's state is set to PLAYING.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Here is where I went wrong:&amp;nbsp; In order for the vpudec to decode multiple videos, the state of each pipeline must be set.&amp;nbsp; By default gstreamer will set the state to READY. &lt;STRONG&gt; Instead, right before I set the first pipe to play, I have to set the second pipeline to PAUSED.&amp;nbsp; &lt;/STRONG&gt;Then I just watch for the eos signal from the first video, flip the states of the pipelines, wait for the end of the second video, and so on.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if anybody would have any suggestions on how to remove the delay entirely, I am all ears...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 21:09:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mfw-isink-hwbuf-allocator-zone/m-p/265185#M27430</guid>
      <dc:creator>joshkurland</dc:creator>
      <dc:date>2013-11-13T21:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: mfw_isink hwbuf allocator zone?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mfw-isink-hwbuf-allocator-zone/m-p/265186#M27431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice Josh. I got other idea but I am not know if it would work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create an app, where you stream your videos, one by one (you can try the gst-rtsp-server, pretty easy to hack). Then, you got other pipeline running (playbin2 uri=rtsp://localhost:XXXX), just listening to that streaming port. I am not sure if this will decrease the 1s delay, it is just another approach worth exploring.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 21:15:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mfw-isink-hwbuf-allocator-zone/m-p/265186#M27431</guid>
      <dc:creator>LeonardoSandova</dc:creator>
      <dc:date>2013-11-13T21:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Re: mfw_isink hwbuf allocator zone?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mfw-isink-hwbuf-allocator-zone/m-p/265187#M27432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Josh,&lt;/P&gt;&lt;P&gt;I had a similar delay problem. I solved it by modifying the gst-fsl-plugins. &lt;/P&gt;&lt;P&gt;In short the VPU doesn't start decoding until there is a certain amount of bits in the buffer. The patch sets this amount to zero.&lt;/P&gt;&lt;P&gt;Here is my patch:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 08:45:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mfw-isink-hwbuf-allocator-zone/m-p/265187#M27432</guid>
      <dc:creator>Tarek</dc:creator>
      <dc:date>2013-11-14T08:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Re: mfw_isink hwbuf allocator zone?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mfw-isink-hwbuf-allocator-zone/m-p/265188#M27433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tarek, I will give it a try.&amp;nbsp; When you set the buffer to zero, what kind of load times are you getting?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Yocto as my build tool.&amp;nbsp; Can I apply this patch by adding it in to the gst-fsl-plugin directory in meta-fsl-arm?&amp;nbsp; I'm sure I also need to add the patch to a bbappend somewhere too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Josh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 15:05:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mfw-isink-hwbuf-allocator-zone/m-p/265188#M27433</guid>
      <dc:creator>joshkurland</dc:creator>
      <dc:date>2013-11-14T15:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Re: mfw_isink hwbuf allocator zone?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mfw-isink-hwbuf-allocator-zone/m-p/265189#M27434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct, that is the way. Great patch.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 15:53:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mfw-isink-hwbuf-allocator-zone/m-p/265189#M27434</guid>
      <dc:creator>LeonardoSandova</dc:creator>
      <dc:date>2013-11-14T15:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Re: mfw_isink hwbuf allocator zone?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mfw-isink-hwbuf-allocator-zone/m-p/265190#M27435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tarek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I applied the patch successfully (thanks for confirming that Leo!) and double checked that it was applied to vpudec.c.&amp;nbsp; I re-flashed my SD card with the new image and ran a simple video-looping code, but I had the same delay as before.&amp;nbsp; I also didn't notice a difference when I ran my multi-pipeline approach, although I'm not sure if I would notice anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The patch was on gst-fsl-plugin version 3.0.7.&amp;nbsp; I am currently using version 3.0.9.&amp;nbsp; Do you know if that difference would conflict with anything in your patch?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Josh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 16:22:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mfw-isink-hwbuf-allocator-zone/m-p/265190#M27435</guid>
      <dc:creator>joshkurland</dc:creator>
      <dc:date>2013-11-14T16:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: mfw_isink hwbuf allocator zone?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mfw-isink-hwbuf-allocator-zone/m-p/265191#M27436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Josh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think it's version related it's more stream related. Setting the VPU_DEC_CONF_BUFDELAY to zero improves the latency for my streams. It may or may not help in your case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 22:00:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mfw-isink-hwbuf-allocator-zone/m-p/265191#M27436</guid>
      <dc:creator>Tarek</dc:creator>
      <dc:date>2013-11-14T22:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: mfw_isink hwbuf allocator zone?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mfw-isink-hwbuf-allocator-zone/m-p/265192#M27437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, okay that makes sense.&amp;nbsp; I will have to get network streaming working soon, hopefully I will see the improvement there.&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 22:15:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mfw-isink-hwbuf-allocator-zone/m-p/265192#M27437</guid>
      <dc:creator>joshkurland</dc:creator>
      <dc:date>2013-11-14T22:15:43Z</dc:date>
    </item>
  </channel>
</rss>

