<?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: TW9910 Video Capture  in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/TW9910-Video-Capture/m-p/758828#M117980</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andre&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please check&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/300234"&gt;Switching CSI into Progressive bt.656 Mode&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&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>Wed, 14 Mar 2018 23:17:10 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2018-03-14T23:17:10Z</dc:date>
    <item>
      <title>TW9910 Video Capture</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/TW9910-Video-Capture/m-p/758827#M117979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to capture a Video from a TW9910 on our IMX6Q (We run Android 5.0.2 with 3.10.53 Kernel)&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Analog Camera ----&amp;gt;TW9910 -----BT656----&amp;gt; imx6q CSI0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I took the ADV7180 driver from&amp;nbsp; "/drivers/media/platform/mxc/capture/adv7180" and removed all the I2C communication related to ADV7180.Then I used the following code to initialize the TW9910 for ITU-R BT.656 (according to the datasheet):&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i2c_smbus_write_byte_data(priv-&amp;gt;client,0x02, 0x40); &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;i2c_smbus_write_byte_data(priv-&amp;gt;client,0x03, 0xA6);&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;//######## BT.656 (Datasheet)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i2c_smbus_write_byte_data(priv-&amp;gt;client,VDELAY_LO, &amp;nbsp;&amp;nbsp; &amp;nbsp;0x012); //VDELAY_LO&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;i2c_smbus_write_byte_data(priv-&amp;gt;client,VACTIVE_LO, &amp;nbsp;&amp;nbsp; &amp;nbsp;0x0F4); //VACTIVE_LO&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;i2c_smbus_write_byte_data(priv-&amp;gt;client,HACTIVE_LO, &amp;nbsp;&amp;nbsp; &amp;nbsp;0x2D0); //HACTIVE_LO&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;i2c_smbus_write_byte_data(priv-&amp;gt;client,VBICNTL, &amp;nbsp;&amp;nbsp; &amp;nbsp;0x58); //HA_EN 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i2c_smbus_write_byte_data(priv-&amp;gt;client,DID, &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;0x20); //VIPCFG 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;i2c_smbus_write_byte_data(priv-&amp;gt;client,VVBI, &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;0x10); //NTSC656 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To test it I tried to capture a Video with&lt;/P&gt;&lt;P&gt;&lt;EM&gt;cat /dev/video0 &amp;gt; /sdcard/test1.mpeg&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however the IPU seems to lose the incoming frames:&lt;/P&gt;&lt;P&gt;imx-ipuv3 2400000.ipu: IPU Warning - IPU_INT_STAT_10 = 0x00000001&lt;BR /&gt;imx-ipuv3 2400000.ipu: IPU Warning - IPU_INT_STAT_10 = 0x00000001&lt;/P&gt;&lt;P&gt;imx-ipuv3 2400000.ipu: IPU Warning - IPU_INT_STAT_10 = 0x00000001&lt;BR /&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Capturing with ffmpeg:&lt;/P&gt;&lt;P&gt;ffmpeg-2.2.git -f v4l2 -framerate 30 -video_size 640x480 -pix_fmt uyvy422 -i /dev/video0 /sdcard/output.mkv&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="TW9910capture1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/24305iD24B6AD01AB849FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="TW9910capture1.png" alt="TW9910capture1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I also tried to use gstreamer-imx from &lt;A class="link-titled" href="https://github.com/Freescale/gstreamer-imx" title="https://github.com/Freescale/gstreamer-imx"&gt;GitHub - Freescale/gstreamer-imx: GStreamer 1.0 plugins for i.MX platforms&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but was unable to install it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could be the problem with the IPU losing Frames? Do I need another configuration for TW9910, or other tools to test it?&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 12:54:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/TW9910-Video-Capture/m-p/758827#M117979</guid>
      <dc:creator>andrekilian</dc:creator>
      <dc:date>2018-03-14T12:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: TW9910 Video Capture</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/TW9910-Video-Capture/m-p/758828#M117980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andre&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please check&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/300234"&gt;Switching CSI into Progressive bt.656 Mode&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&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>Wed, 14 Mar 2018 23:17:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/TW9910-Video-Capture/m-p/758828#M117980</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-03-14T23:17:10Z</dc:date>
    </item>
  </channel>
</rss>

