Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. mipi csi camera is not detected in the simple browser application running on imx8mplus board
Forum Updated to NodeBB v4.3 + New Features

mipi csi camera is not detected in the simple browser application running on imx8mplus board

Scheduled Pinned Locked Moved Unsolved QtWebEngine
16 Posts 2 Posters 1.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • SGaistS SGaist

    I wonder whether you need to grant permission to access the camera as shown here.

    R Offline
    R Offline
    Rajesh_M
    wrote on last edited by
    #6

    @SGaist , It is not giving the popup for accessing the camera whereas when an usb camera is connected it is giving the popup .It is not required to give permissions.
    When I have gone through the debug log I got this

    [1048:1059:1019/091825.355046:VERBOSE1:media_stream_manager.cc(1112)] video capture: VideoCaptureManager::OnDeviceInfosReceived: Recevied 0 device infos.
    [1048:1059:1019/091825.355136:VERBOSE1:media_stream_manager.cc(1112)] MDM::DevicesEnumerated({type=VIDEO_INPUT}, {labels])
    [1134:1134:1019/091825.355427:VERBOSE1:webrtc_logging.cc(35)] UMP::SelectVideoDeviceSettings. request_id=0.
    [1134:1134:1019/091825.355653:VERBOSE1:webrtc_logging.cc(35)] UMP::GetUserMediaRequestFailed({request_id=0})
    [1134:1134:1019/091825.356001:VERBOSE1:webrtc_logging.cc(35)] UMP::DelayedGetUserMediaRequestFailed({request_id=0}, {result=NO_HARDWARE}) 
    

    No hardware found .Is this due to chromium or qtwebengine not able to find this mipi csi camera combination? .Can you help me plese resolve this fastly?

    SGaistS 1 Reply Last reply
    0
    • R Rajesh_M

      @SGaist , It is not giving the popup for accessing the camera whereas when an usb camera is connected it is giving the popup .It is not required to give permissions.
      When I have gone through the debug log I got this

      [1048:1059:1019/091825.355046:VERBOSE1:media_stream_manager.cc(1112)] video capture: VideoCaptureManager::OnDeviceInfosReceived: Recevied 0 device infos.
      [1048:1059:1019/091825.355136:VERBOSE1:media_stream_manager.cc(1112)] MDM::DevicesEnumerated({type=VIDEO_INPUT}, {labels])
      [1134:1134:1019/091825.355427:VERBOSE1:webrtc_logging.cc(35)] UMP::SelectVideoDeviceSettings. request_id=0.
      [1134:1134:1019/091825.355653:VERBOSE1:webrtc_logging.cc(35)] UMP::GetUserMediaRequestFailed({request_id=0})
      [1134:1134:1019/091825.356001:VERBOSE1:webrtc_logging.cc(35)] UMP::DelayedGetUserMediaRequestFailed({request_id=0}, {result=NO_HARDWARE}) 
      

      No hardware found .Is this due to chromium or qtwebengine not able to find this mipi csi camera combination? .Can you help me plese resolve this fastly?

      SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #7

      @Rajesh_M Fastly ? No, I can't as I do not own the required hardware to do further testing.

      However, it does sound like an hardware detection issue.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      R 1 Reply Last reply
      0
      • SGaistS SGaist

        @Rajesh_M Fastly ? No, I can't as I do not own the required hardware to do further testing.

        However, it does sound like an hardware detection issue.

        R Offline
        R Offline
        Rajesh_M
        wrote on last edited by
        #8

        @SGaist , Firstly thank you for your response. I have one doubt ,like the mipi csi camera is detected in all the qtmultimedia applications and I am able to stream the camera using gstlaunch-1.0 command but why it is not detected only in webengine applications. But how qtmultimedia is detetcing and qtwebengine is not detecting if it is a hardware detection failure. Then how the hardware is not detecting the camera only in webengine applications. I assume that this is due to chromium in webengine applications. Can you share some of your thoughts regarding this?

        Please help me understand the cause for this problem.

        SGaistS 1 Reply Last reply
        0
        • R Rajesh_M

          @SGaist , Firstly thank you for your response. I have one doubt ,like the mipi csi camera is detected in all the qtmultimedia applications and I am able to stream the camera using gstlaunch-1.0 command but why it is not detected only in webengine applications. But how qtmultimedia is detetcing and qtwebengine is not detecting if it is a hardware detection failure. Then how the hardware is not detecting the camera only in webengine applications. I assume that this is due to chromium in webengine applications. Can you share some of your thoughts regarding this?

          Please help me understand the cause for this problem.

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by SGaist
          #9

          @Rajesh_M the thing is, QtMultimedia uses either the native system's API or since 6.5, the ffmpeg backend. Chromium in this regard used its own stack (I mean it does not use QtMultimedia but I don't know exactly how it integrates the hardware layer). From the looks of it, it does not properly see your camera but I don't know whether it's a limitation or a bug.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          R 1 Reply Last reply
          0
          • SGaistS SGaist

            @Rajesh_M the thing is, QtMultimedia uses either the native system's API or since 6.5, the ffmpeg backend. Chromium in this regard used its own stack (I mean it does not use QtMultimedia but I don't know exactly how it integrates the hardware layer). From the looks of it, it does not properly see your camera but I don't know whether it's a limitation or a bug.

            R Offline
            R Offline
            Rajesh_M
            wrote on last edited by
            #10

            @SGaist I am able to stream the camera in the imx6 with qt5 with chromium version of 65 .I assume that the camera is not detected due to the some undealed cases in the chromium in the thing that I am using .As I am using the qt6 with chromium version 98.So is there any way to downgrade the chromium in qt6.If yes can you tell how can we do this and what is the minimum possible version that we can downgrade

            SGaistS 1 Reply Last reply
            0
            • R Rajesh_M

              @SGaist I am able to stream the camera in the imx6 with qt5 with chromium version of 65 .I assume that the camera is not detected due to the some undealed cases in the chromium in the thing that I am using .As I am using the qt6 with chromium version 98.So is there any way to downgrade the chromium in qt6.If yes can you tell how can we do this and what is the minimum possible version that we can downgrade

              SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #11

              Although not recommended, you should be able to build an older tag of the module.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              R 1 Reply Last reply
              0
              • SGaistS SGaist

                Although not recommended, you should be able to build an older tag of the module.

                R Offline
                R Offline
                Rajesh_M
                wrote on last edited by Rajesh_M
                #12

                @SGaist Do you know any way to add the MPLANE device support to the qtwebengine ? as the camera device that I have connected is a multiplanar device .

                SGaistS 1 Reply Last reply
                0
                • R Rajesh_M

                  @SGaist Do you know any way to add the MPLANE device support to the qtwebengine ? as the camera device that I have connected is a multiplanar device .

                  SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #13

                  @Rajesh_M from the looks of it, it was implemented and then removed. See this thread.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  R 2 Replies Last reply
                  0
                  • SGaistS SGaist

                    @Rajesh_M from the looks of it, it was implemented and then removed. See this thread.

                    R Offline
                    R Offline
                    Rajesh_M
                    wrote on last edited by
                    #14

                    @SGaist ,I have tried to apply that patch to the version 98 and now it is detecting the cameras but unable to stream it in the browser and giving this error

                    [1531:1539:1116/044816.475847:ERROR:v4l2_capture_delegate.cc(988)] Dequeued v4l2 buffer contains invalid length (0 bytes).
                    [1531:1539:1116/044816.509127:ERROR:v4l2_capture_delegate.cc(988)] Dequeued v4l2 buffer contains invalid length (0 bytes).
                    

                    Can you please help me solve this by providing your insights ?

                    1 Reply Last reply
                    0
                    • SGaistS SGaist

                      @Rajesh_M from the looks of it, it was implemented and then removed. See this thread.

                      R Offline
                      R Offline
                      Rajesh_M
                      wrote on last edited by
                      #15

                      @SGaist Also can you please help me to downgrade the chromium version to 50 in the qt6(qtwebengine) if you have some time as I have found it very difficult to do without any expertise in qt.

                      R 1 Reply Last reply
                      0
                      • R Rajesh_M

                        @SGaist Also can you please help me to downgrade the chromium version to 50 in the qt6(qtwebengine) if you have some time as I have found it very difficult to do without any expertise in qt.

                        R Offline
                        R Offline
                        Rajesh_M
                        wrote on last edited by
                        #16

                        @SGaist I am using this layer for that https://code.qt.io/cgit/yocto/meta-qt6.git/tree/recipes-qt/qt6 .please help me to downgrade to the 50-based branch if possible

                        1 Reply Last reply
                        0

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved