mipi csi camera is not detected in the simple browser application running on imx8mplus board
-
@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?
-
@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.
-
@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.
-
@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
-
@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 ?