<?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のトピックHow to modify the libcamera3 to have USB Camera as the default front camera in Android11</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-modify-the-libcamera3-to-have-USB-Camera-as-the-default/m-p/1311729#M177319</link>
    <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I am trying to have my USB Camera (webcam) to be the front camera on Android11. My purpose is when opening the built-in Camera app in Android, it will display the view of the USB Camera.&lt;/P&gt;&lt;P&gt;My hardware is using imx 8MQ evk, on its USB Type-A port connects to a USB Camera.&lt;BR /&gt;Now, I can see the video4 and video5 in the path of /dev when the UBS camera is plugged-in its USB Type-A port.&lt;BR /&gt;&lt;STRONG&gt;evk_8mq:/ # ls /dev/video*&lt;/STRONG&gt;&lt;BR /&gt;/dev/video0 /dev/video1 /dev/video2 /dev/video3 &lt;STRONG&gt;/dev/video4 /dev/video5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I known I have to modify the part of libcamera3 to have the video device node connect with iMX Camera HAL - &lt;STRONG&gt;"android_build/vendor/nxp-opensource/imx/libcamera3"&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Now, I have 2 questions on how to have the USB Camera&amp;nbsp; connect to Android Platform in HAL - libcamera3.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Q1) Where is the output .so file of libcamera3?&lt;/STRONG&gt;&lt;BR /&gt;I've checked the Android.mk under the path, its output file name should be "camera.imx.so", right?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Q2) Where can I get more details about the settings of&amp;nbsp;"camera_config_imx8mq.json"?&lt;/STRONG&gt;&lt;BR /&gt;I found the libcamera3 reads the "camera_config_imx8mq.json" file for constructing CameraSensorMetada when doing Camera::createCamera(). These data in this json file are related to the camra_type, camera_name, orientation... etc., these info seems to be required for configuring my USB Camera as the default front camera on Android.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jul 2021 05:55:17 GMT</pubDate>
    <dc:creator>YungHui</dc:creator>
    <dc:date>2021-07-22T05:55:17Z</dc:date>
    <item>
      <title>How to modify the libcamera3 to have USB Camera as the default front camera in Android11</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-modify-the-libcamera3-to-have-USB-Camera-as-the-default/m-p/1311729#M177319</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I am trying to have my USB Camera (webcam) to be the front camera on Android11. My purpose is when opening the built-in Camera app in Android, it will display the view of the USB Camera.&lt;/P&gt;&lt;P&gt;My hardware is using imx 8MQ evk, on its USB Type-A port connects to a USB Camera.&lt;BR /&gt;Now, I can see the video4 and video5 in the path of /dev when the UBS camera is plugged-in its USB Type-A port.&lt;BR /&gt;&lt;STRONG&gt;evk_8mq:/ # ls /dev/video*&lt;/STRONG&gt;&lt;BR /&gt;/dev/video0 /dev/video1 /dev/video2 /dev/video3 &lt;STRONG&gt;/dev/video4 /dev/video5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I known I have to modify the part of libcamera3 to have the video device node connect with iMX Camera HAL - &lt;STRONG&gt;"android_build/vendor/nxp-opensource/imx/libcamera3"&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Now, I have 2 questions on how to have the USB Camera&amp;nbsp; connect to Android Platform in HAL - libcamera3.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Q1) Where is the output .so file of libcamera3?&lt;/STRONG&gt;&lt;BR /&gt;I've checked the Android.mk under the path, its output file name should be "camera.imx.so", right?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Q2) Where can I get more details about the settings of&amp;nbsp;"camera_config_imx8mq.json"?&lt;/STRONG&gt;&lt;BR /&gt;I found the libcamera3 reads the "camera_config_imx8mq.json" file for constructing CameraSensorMetada when doing Camera::createCamera(). These data in this json file are related to the camra_type, camera_name, orientation... etc., these info seems to be required for configuring my USB Camera as the default front camera on Android.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 05:55:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-modify-the-libcamera3-to-have-USB-Camera-as-the-default/m-p/1311729#M177319</guid>
      <dc:creator>YungHui</dc:creator>
      <dc:date>2021-07-22T05:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify the libcamera3 to have USB Camera as the default front camera in Android11</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-modify-the-libcamera3-to-have-USB-Camera-as-the-default/m-p/1311887#M177344</link>
      <description>&lt;P&gt;Update my survey, the current what I found as below:&lt;/P&gt;&lt;P&gt;- I tried to use command 'adb logcat' to catch the imx8mq evk booting-up log, at the same time, my USB camera was connected.&lt;BR /&gt;- Now, I can get some of CameraSensorMetadata of video4 and video5 from the output log of CameraProviderHwlImpl&lt;BR /&gt;- dev path:/dev/video5, video capabilities 0x84a00001, node name:uvcvideo, bus info: usb-xhci-hcd.1.auto-1.3, node name:uvcvideo,IPEVO Ziggi-HD Plus&lt;BR /&gt;- dev path:/dev/video4, video capabilities 0x84a00001, node name:uvcvideo, bus info: usb-xhci-hcd.1.auto-1.3, node name:uvcvideo,IPEVO Ziggi-HD Plus&lt;/P&gt;&lt;P&gt;01-01 00:00:23.680 344 344 I CameraProviderHwlImpl: Initialize, copy_hw 1, csc_hw 5, jpeg_hw , mplane 0, 0&lt;BR /&gt;01-01 00:00:23.680 344 344 I CameraProviderHwlImpl: enumSensorSet&lt;BR /&gt;01-01 00:00:23.680 344 344 I CameraProviderHwlImpl: &lt;STRONG&gt;matchDevNodes&lt;/STRONG&gt;&lt;BR /&gt;01-01 00:00:23.683 344 344 I CameraProviderHwlImpl: &lt;STRONG&gt;getNodeName&lt;/STRONG&gt;: dev path:&lt;STRONG&gt;/dev/video5&lt;/STRONG&gt;&lt;BR /&gt;01-01 00:00:23.684 344 344 I CameraProviderHwlImpl: video capabilities &lt;STRONG&gt;0x84a00001&lt;/STRONG&gt;&lt;BR /&gt;01-01 00:00:23.684 344 344 I CameraProviderHwlImpl: getNodeName: node name:&lt;STRONG&gt;uvcvideo&lt;/STRONG&gt;, bus info: usb-xhci-hcd.1.auto-1.3&lt;BR /&gt;01-01 00:00:23.684 344 344 I CameraProviderHwlImpl: NodeName: node name:&lt;STRONG&gt;uvcvideo,IPEVO Ziggi-HD Plus&lt;/STRONG&gt;&lt;BR /&gt;01-01 00:00:23.684 344 344 I CameraProviderHwlImpl: getNodeName: dev path:/dev/video3&lt;BR /&gt;01-01 00:00:23.684 344 344 E CameraProviderHwlImpl: getNodeName open dev path:/dev/video3 failed:Device or resource busy&lt;BR /&gt;01-01 00:00:23.684 344 344 W CameraProviderHwlImpl: matchDevNodes: dev path /dev/video3 getNodeName failed&lt;BR /&gt;01-01 00:00:23.684 344 344 I CameraProviderHwlImpl: getNodeName: dev path:/dev/video1&lt;BR /&gt;01-01 00:00:23.684 344 344 I CameraProviderHwlImpl: video capabilities 0x84200001&lt;BR /&gt;01-01 00:00:23.684 344 344 I CameraProviderHwlImpl: getNodeName: node name:mx6s-csi, bus info: platform:30b80000.csi2_bridge&lt;BR /&gt;01-01 00:00:23.684 344 344 I CameraProviderHwlImpl: NodeName: node name:mx6s-csi,mx6s-csi&lt;BR /&gt;01-01 00:00:23.684 344 344 I CameraProviderHwlImpl: getNodeName: dev path:/dev/video4&lt;BR /&gt;01-01 00:00:23.750 344 344 I CameraProviderHwlImpl: video capabilities 0x84a00001&lt;BR /&gt;01-01 00:00:23.750 344 344 I CameraProviderHwlImpl: getNodeName: node name:uvcvideo, bus info: usb-xhci-hcd.1.auto-1.3&lt;BR /&gt;01-01 00:00:23.750 344 344 I CameraProviderHwlImpl: NodeName: node name:uvcvideo,IPEVO Ziggi-HD Plus&lt;BR /&gt;01-01 00:00:23.750 344 344 I CameraProviderHwlImpl: getNodeName: dev path:/dev/video2&lt;BR /&gt;01-01 00:00:23.751 344 344 E CameraProviderHwlImpl: getNodeName open dev path:/dev/video2 failed:Device or resource busy&lt;BR /&gt;01-01 00:00:23.751 344 344 W CameraProviderHwlImpl: matchDevNodes: dev path /dev/video2 getNodeName failed&lt;BR /&gt;01-01 00:00:23.751 344 344 I CameraProviderHwlImpl: getNodeName: dev path:/dev/video0&lt;BR /&gt;01-01 00:00:23.751 344 344 I CameraProviderHwlImpl: video capabilities 0x84200001&lt;BR /&gt;01-01 00:00:23.751 344 344 I CameraProviderHwlImpl: getNodeName: node name:mx6s-csi, bus info: platform:30a90000.csi1_bridge&lt;BR /&gt;01-01 00:00:23.751 344 344 I CameraProviderHwlImpl: NodeName: node name:mx6s-csi,mx6s-csi&lt;BR /&gt;01-01 00:00:23.751 344 344 I CameraProviderHwlImpl: matchPropertyName: index:0, target devName:mx6s-csi, devNodeName:uvcvideo,IPEVO Ziggi-HD Plus, devBusInfo:usb-xhci-hcd.1.auto-1.3, devNode:/dev/video5&lt;BR /&gt;01-01 00:00:23.751 344 344 I CameraProviderHwlImpl: matchPropertyName: bus info unmatch, expect platform:30b80000.csi2_bridge, actual usb-xhci-hcd.1.auto-1.3&lt;BR /&gt;01-01 00:00:23.751 344 344 I CameraProviderHwlImpl: matchPropertyName: index:0, target devName:mx6s-csi, devNodeName:mx6s-csi,mx6s-csi, devBusInfo:platform:30b80000.csi2_bridge, devNode:/dev/video1&lt;BR /&gt;01-01 00:00:23.751 344 344 I CameraProviderHwlImpl: Camera ID 0: name mx6s-csi,mx6s-csi, Facing 0, orientation 0, dev path /dev/video1&lt;BR /&gt;01-01 00:00:23.751 344 344 E CameraProviderHwlImpl: No such camera1 defined in camera config json.&lt;BR /&gt;01-01 00:00:23.751 344 344 I CameraProviderHwlImpl: Initialize, camera 0 exist 1&lt;BR /&gt;01-01 00:00:23.751 344 344 I CameraProviderHwlImpl: Initialize, camera 1 exist 0&lt;BR /&gt;01-01 00:00:23.751 344 344 I CameraProviderHwlImpl: Create: Created CameraProviderHwlImpl&lt;BR /&gt;01-01 00:00:23.751 344 344 E GCH_CameraProvider: Initialize: HWL doesn't support vendor buffer allocation Function not implemented(-38)&lt;BR /&gt;01-01 00:00:23.751 344 344 I CameraProviderHwlImpl: SetCallback&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 09:01:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-modify-the-libcamera3-to-have-USB-Camera-as-the-default/m-p/1311887#M177344</guid>
      <dc:creator>YungHui</dc:creator>
      <dc:date>2021-07-22T09:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify the libcamera3 to have USB Camera as the default front camera in Android11</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-modify-the-libcamera3-to-have-USB-Camera-as-the-default/m-p/1316987#M177770</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you provide the changes in hal and config file?&lt;/P&gt;
&lt;P&gt;Also your camera detailed paramters in v4l2&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 02:43:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-modify-the-libcamera3-to-have-USB-Camera-as-the-default/m-p/1316987#M177770</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2021-08-03T02:43:43Z</dc:date>
    </item>
  </channel>
</rss>

