<?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のトピックRe: IMX6q video capture</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX6q-video-capture/m-p/768225#M119330</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;one can check with logic analyzer if correct synch codes are sent from camera,&lt;/P&gt;&lt;P&gt;also one can look on&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;A href="https://community.nxp.com/thread/435287"&gt;https://community.nxp.com/thread/435287&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, 25 Apr 2018 23:38:11 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2018-04-25T23:38:11Z</dc:date>
    <item>
      <title>IMX6q video capture</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6q-video-capture/m-p/768224#M119329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;BR /&gt;we are trying to capture video using a TW9910 on our custom IMX6q board (We run Android 5.0.2).&lt;BR /&gt;Even though we used the recommended configuration for TW9910 (BT656) we were not able to capture the correct test pattern we are using as an input.&lt;BR /&gt;(Test pattern Generator ----&amp;gt; TW9910 -----(BT656)----&amp;gt; imx6q CSI0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We were able to capture a video using the camera app and also used "mxc-v4l2-tvin -ow 720 -oh 480 -ot 1 -ol 1 -f UYVY" which produced the same result on our display.&lt;BR /&gt;However the video is not right (see attachment), it might be a connection issue with our custom board, &lt;BR /&gt;the connections of the TW9910 to our board are the pixelclock and 8 data lines like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TW9910&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;IMX6q-Board&lt;BR /&gt;PCLK&amp;nbsp;&amp;nbsp; &amp;nbsp;---&amp;gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;CSIO0_DATAPIXCLK&lt;BR /&gt;VD8&amp;nbsp;&amp;nbsp; &amp;nbsp;---&amp;gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;CSIO0_DAT12&lt;BR /&gt;VD9&amp;nbsp;&amp;nbsp; &amp;nbsp;---&amp;gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;CSIO0_DAT13&lt;BR /&gt;VD10&amp;nbsp;&amp;nbsp; &amp;nbsp;---&amp;gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;CSIO0_DAT14&lt;BR /&gt;VD11&amp;nbsp;&amp;nbsp; &amp;nbsp;---&amp;gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;CSIO0_DAT15&lt;BR /&gt;VD12&amp;nbsp;&amp;nbsp; &amp;nbsp;---&amp;gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;CSIO0_DAT16&lt;BR /&gt;VD13&amp;nbsp;&amp;nbsp; &amp;nbsp;---&amp;gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;CSIO0_DAT17&lt;BR /&gt;VD14&amp;nbsp;&amp;nbsp; &amp;nbsp;---&amp;gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;CSIO0_DAT18&lt;BR /&gt;VD15&amp;nbsp;&amp;nbsp; &amp;nbsp;---&amp;gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;CSIO0_DAT19&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are these connections correct or do they need to be inverted? (VD8 ---&amp;gt; CSIO0_DAT19 ... VD15 ---&amp;gt; CSIO0_DAT12)&lt;BR /&gt;Is there any other reason why our test pattern cannot be captured?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what our driver passes on&lt;/P&gt;&lt;P&gt;In our driver probe:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Set initial values for the sensor struct. */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;memset(&amp;amp;adv7180_data, 0, sizeof(adv7180_data));&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;adv7180_data.sen.i2c_client = client;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;adv7180_data.sen.streamcap.timeperframe.denominator = 30;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;adv7180_data.sen.streamcap.timeperframe.numerator = 1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;adv7180_data.std_id = V4L2_STD_NTSC;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;video_idx = ADV7180_NTSC;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;adv7180_data.sen.pix.width = video_fmts[video_idx].raw_width;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;adv7180_data.sen.pix.height = video_fmts[video_idx].raw_height;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;adv7180_data.sen.pix.pixelformat = V4L2_PIX_FMT_UYVY; /* YUV422 */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;//adv7180_data.sen.pix.pixelformat = V4L2_PIX_FMT_RGB565;//(RGB for Test Generator)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;adv7180_data.sen.pix.priv = 1;&amp;nbsp; /* 1 is used to indicate TV in */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;adv7180_data.sen.on = true;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ioctl_g_ifparm&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Initialize structure to 0s then set any non-0 values. */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;memset(p, 0, sizeof(*p));&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;p-&amp;gt;if_type = V4L2_IF_TYPE_BT656; /* This is the only possibility. */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;p-&amp;gt;u.bt656.mode = V4L2_IF_TYPE_BT656_MODE_BT_8BIT;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;p-&amp;gt;u.bt656.bt_sync_correct = 0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;p-&amp;gt;u.bt656.clock_curr = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is some IPU Debug&lt;/P&gt;&lt;P&gt;&amp;lt;7&amp;gt;imx-ipuv3 2400000.ipu: IPU_CLK_RATE = 264000000&lt;BR /&gt;&amp;lt;7&amp;gt;imx-ipuv3 2400000.ipu: CSI_SENS_CONF = 0x00000A30&lt;BR /&gt;&amp;lt;7&amp;gt;imx-ipuv3 2400000.ipu: CSI_SENS_FRM_SIZE = 0x020C02CF&lt;BR /&gt;&amp;lt;7&amp;gt;imx-ipuv3 2400000.ipu: CSI_ACT_FRM_SIZE = 0x01DF02CF&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 13:33:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6q-video-capture/m-p/768224#M119329</guid>
      <dc:creator>andrekilian</dc:creator>
      <dc:date>2018-04-25T13:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6q video capture</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6q-video-capture/m-p/768225#M119330</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;one can check with logic analyzer if correct synch codes are sent from camera,&lt;/P&gt;&lt;P&gt;also one can look on&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;A href="https://community.nxp.com/thread/435287"&gt;https://community.nxp.com/thread/435287&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, 25 Apr 2018 23:38:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6q-video-capture/m-p/768225#M119330</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-04-25T23:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6q video capture</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6q-video-capture/m-p/768226#M119331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We now have a video (almost), it was an hardware problem. Now we receive our test pattern and can see it through the camera app. However it seems that it is not synced properly see attachment. Running mxc-v4l2-tvin -ow 720 -oh 480 -ot 0 -ol 1 -f UYVY now results in this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fmt RGB565: fourcc = 0x50424752&lt;BR /&gt;fmt BGR24: fourcc = 0x33524742&lt;BR /&gt;fmt RGB24: fourcc = 0x33424752&lt;BR /&gt;fmt RGB32: fourcc = 0x34424752&lt;BR /&gt;fmt BGR32: fourcc = 0x34524742&lt;BR /&gt;fmt NV12: fourcc = 0x3231564e&lt;BR /&gt;fmt UYVY: fourcc = 0x59565955&lt;BR /&gt;fmt YUYV: fourcc = 0x56595559&lt;BR /&gt;fmt YUV422 planar: fourcc = 0x50323234&lt;BR /&gt;fmt YUV444: fourcc = 0x34343459&lt;BR /&gt;fmt YUV420: fourcc = 0x32315559&lt;BR /&gt;fmt YVU420: fourcc = 0x32315659&lt;BR /&gt;fmt TILED NV12P: fourcc = 0x50564e54&lt;BR /&gt;fmt TILED NV12F: fourcc = 0x46564e54&lt;BR /&gt;fmt YUV444 planar: fourcc = 0x50343434&lt;BR /&gt;start time = 946690433 s, 979772 us&lt;BR /&gt;mxc_ipu mxc_ipu: ERR: no-0x0,ipu_queue_task err:-22&lt;BR /&gt;mxc_v4l2_output v4l2_out.19: display work fail ret = -22&lt;BR /&gt;mxc_ipu mxc_ipu: ERR: no-0x0,ipu_queue_task err:-22&lt;BR /&gt;mxc_v4l2_output v4l2_out.19: display work fail ret = -22&lt;BR /&gt;mxc_ipu mxc_ipu: ERR: no-0x0,ipu_queue_task err:-22&lt;BR /&gt;mxc_v4l2_output v4l2_out.19: display work fail ret = -22&lt;BR /&gt;mxc_ipu mxc_ipu: ERR: no-0x0,ipu_queue_task err:-22&lt;BR /&gt;mxc_v4l2_output v4l2_out.19: display work fail ret = -22&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We tried using the VSYNC and HSYNC pins by changing (driver)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; p-&amp;gt;u.bt656.mode = V4L2_IF_TYPE_BT656_MODE_BT_8BIT;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;p-&amp;gt;u.bt656.bt_sync_correct = 0;&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; p-&amp;gt;u.bt656.mode = V4L2_IF_TYPE_BT656_MODE_NOBT_8BIT;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;p-&amp;gt;u.bt656.bt_sync_correct = 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We also tried to change the active top value from 13 to 3 (mxc_v4l2_capture.c)&lt;/P&gt;&lt;P&gt;static video_fmt_t video_fmts[] = {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/*! NTSC */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; .v4l2_id = V4L2_STD_NTSC,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; .name = "NTSC",&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; .raw_width = 720,&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* SENS_FRM_WIDTH */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; .raw_height = 525,&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* SENS_FRM_HEIGHT */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; .active_width = 720,&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* ACT_FRM_WIDTH */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; .active_height = 480,&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* ACT_FRM_HEIGHT */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; .active_top = 3,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; .active_left = 0,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; },&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Switching to PROGRESSIVE mode sadly didn't work either. The IPU shows following warning:&lt;/P&gt;&lt;P&gt;&amp;lt;7&amp;gt;imx-ipuv3 2400000.ipu: IPU_CLK_RATE = 264000000&lt;BR /&gt;&amp;lt;7&amp;gt;imx-ipuv3 2400000.ipu: CSI_SENS_CONF = 0x00000A30&lt;BR /&gt;&amp;lt;7&amp;gt;imx-ipuv3 2400000.ipu: CSI_SENS_FRM_SIZE = 0x020C02CF&lt;BR /&gt;&amp;lt;7&amp;gt;imx-ipuv3 2400000.ipu: CSI_ACT_FRM_SIZE = 0x01DF02CF&lt;/P&gt;&lt;P&gt;&amp;lt;4&amp;gt;imx-ipuv3 2400000.ipu: IPU Warning - IPU_INT_STAT_5 = 0x00000001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions as to why the video is not syncing correctly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2018 14:48:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6q-video-capture/m-p/768226#M119331</guid>
      <dc:creator>andrekilian</dc:creator>
      <dc:date>2018-04-27T14:48:43Z</dc:date>
    </item>
  </channel>
</rss>

