<?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>topic Re: Frame grab from mfw_isink in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Frame-grab-from-mfw-isink/m-p/182303#M7945</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kan,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanks for the suggestion. &amp;nbsp;The cropping explains the strangeness in gimp. &amp;nbsp;However, I get color banding on the bottom/right sides (maybe the cropped area, not sure) and the images are in black and white. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using imagemagic to convert: convert&amp;nbsp;-size 768x512 -sampling-factor 2x2 -depth 8 /nfsshare/screenshot.yuv (displayed image is 720x480, with 48/32 cropping areas)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What else is necessary? &amp;nbsp;The format changes NV12/I420 depending on what source is decoding, but that doesn't seem to have any bearing on the resulting image. &amp;nbsp;Other than the cropping area, doing the exact same thing w/ xvimagesink produces a nice snapshot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 03 Dec 2011 00:52:51 GMT</pubDate>
    <dc:creator>TalleyHo</dc:creator>
    <dc:date>2011-12-03T00:52:51Z</dc:date>
    <item>
      <title>Frame grab from mfw_isink</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Frame-grab-from-mfw-isink/m-p/182301#M7943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm looking to capture a snapshot of a running video. &amp;nbsp;My sink is mfw_isink. &amp;nbsp;When requested, I grab the last-buffer from the sink and store it to a file. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So....&amp;nbsp;&lt;/P&gt;&lt;P&gt;gst-launch playbin2 uri=uri video-sink=mfw_isink&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From code:﻿﻿&lt;/P&gt;&lt;P&gt;g_object_get(G_OBJECT(m_vsink), "last-buffer", &amp;amp;buffer, NULL);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following caps come from the buffer:&lt;/P&gt;&lt;P&gt;Caps video/x-raw-yuv, format=(fourcc)NV12, width=(int)720, height=(int)480, width_align=(int)64, height_align=(int)64, framerate=(fraction)30000/1001, pixel-aspect-ratio=(fraction)4/3, crop-top-by-pixel=(int)0, crop-left-by-pixel=(int)0, crop-right-by-pixel=(int)48, crop-bottom-by-pixel=(int)32, num-buffers-required=(int)10, field=(int)0&lt;/P&gt;&lt;P&gt;Last buffer size: 589824&lt;/P&gt;&lt;P&gt;Last buffer timestamp: 0:00:05.068854819&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My confusion and concerns stem from the num-buffers-required field. &amp;nbsp;When I try to use the IPU unit test to convert, the resulting file doesn't appear to be a full frame. &amp;nbsp;The buffer size also doesn't seem to match up w/ what I expected size wise. &amp;nbsp;I can tell what was supposed to be on screen, but it certainly isn't exactly what was on screen. &amp;nbsp;It also doesn't look like it is only 1/10th of the screen either. &amp;nbsp;What I find interesting, is that the actual video on screen is not equal to the caps provided.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When running this on the PC using Xvimagesink, the last-buffer field provided a full frame. &amp;nbsp;Shouldn't this be the case here? &amp;nbsp;If not, how would I go about getting a full screen grab of a running video?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mx53/BSP 11.05&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 16:07:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Frame-grab-from-mfw-isink/m-p/182301#M7943</guid>
      <dc:creator>TalleyHo</dc:creator>
      <dc:date>2011-11-01T16:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Frame grab from mfw_isink</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Frame-grab-from-mfw-isink/m-p/182302#M7944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;one gstbuffer will contain whole frame including crop area.&lt;/P&gt;&lt;P&gt;the buffersize is calculated for (width+crop-left-by-pixel+crop-right-by-pixel)*(height+crop-top-by-pixel+crop-bottom-by-pixel)*1.5 for 12 bits per pixel of NV12 format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you need grab the snapshot, you need also eliminate &amp;nbsp;the crop area&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 14:03:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Frame-grab-from-mfw-isink/m-p/182302#M7944</guid>
      <dc:creator>KanHU</dc:creator>
      <dc:date>2011-11-02T14:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Frame grab from mfw_isink</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Frame-grab-from-mfw-isink/m-p/182303#M7945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kan,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanks for the suggestion. &amp;nbsp;The cropping explains the strangeness in gimp. &amp;nbsp;However, I get color banding on the bottom/right sides (maybe the cropped area, not sure) and the images are in black and white. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using imagemagic to convert: convert&amp;nbsp;-size 768x512 -sampling-factor 2x2 -depth 8 /nfsshare/screenshot.yuv (displayed image is 720x480, with 48/32 cropping areas)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What else is necessary? &amp;nbsp;The format changes NV12/I420 depending on what source is decoding, but that doesn't seem to have any bearing on the resulting image. &amp;nbsp;Other than the cropping area, doing the exact same thing w/ xvimagesink produces a nice snapshot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Dec 2011 00:52:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Frame-grab-from-mfw-isink/m-p/182303#M7945</guid>
      <dc:creator>TalleyHo</dc:creator>
      <dc:date>2011-12-03T00:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Frame grab from mfw_isink</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Frame-grab-from-mfw-isink/m-p/182304#M7946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you mean the image grabbed is back and white? it looks like you get the wrong u,v data.&lt;/P&gt;&lt;P&gt;the I420 and NV12 are all 4:2:0 YUV data. the difference is that I420 is U, V planar and NV12 is UV interleave means like UVUV.&amp;nbsp;&lt;/P&gt;&lt;P&gt;take I420 as example, the u, v area also has cropped field which crop-left/right, crop-top/bottom is half of Y.&lt;/P&gt;&lt;P&gt;I'm not sure&amp;nbsp;imagemagic can process NV12 format, if you use mfw_vpudecoder before mfw_isink , you can set fmt property of mfw_vpudecoder for switch vpu outformat from NV12 to I420.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2011 14:10:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Frame-grab-from-mfw-isink/m-p/182304#M7946</guid>
      <dc:creator>KanHU</dc:creator>
      <dc:date>2011-12-06T14:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Frame grab from mfw_isink</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Frame-grab-from-mfw-isink/m-p/182305#M7947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll put a caps in place to force the format. &amp;nbsp;I've been using playbin2. &amp;nbsp;I haven't found a method to how it picks the format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The resulting image is black and white. &amp;nbsp;However, there are 'green' borders around the right/bottom side. &amp;nbsp;Even the ipu unit test won't decode it properly. &amp;nbsp;Or, at least, I haven't found the correct parameters to give it to decode it correctly. &amp;nbsp;I ultimately need it ARGB/32 format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2011 15:05:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Frame-grab-from-mfw-isink/m-p/182305#M7947</guid>
      <dc:creator>TalleyHo</dc:creator>
      <dc:date>2011-12-06T15:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Frame grab from mfw_isink</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Frame-grab-from-mfw-isink/m-p/182306#M7948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can set fmt property of mfw_vpudecoder, 0 for NV12, 1 for I420. if you need other format, you need other csc plugin, like mfw_ipucsc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Dec 2011 15:41:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Frame-grab-from-mfw-isink/m-p/182306#M7948</guid>
      <dc:creator>KanHU</dc:creator>
      <dc:date>2011-12-17T15:41:15Z</dc:date>
    </item>
  </channel>
</rss>

