Hi @Dhruvit ,
Even when I try to test the WebRTC samples from the https://webrtc.github.io/samples/ by the QtWebEngine example browsers (Ex:simple browser) and Chromium, I'm facing issues with detecting the MIPI camera on my board. However, USB camera is detected and I can stream it. I suspect the reason for this issue is that the browsers are unable to locate the MIPI camera when it searches for video input devices on the board. The logs indicate that no devices are found during this process. You can see in the below log
UMP::SetupVideoInput. request_id=0, video constraints=
[1048:1059:1019/091825.186667:VERBOSE1:media_stream_manager.cc(1112)] MDM::DoEnumerateDevices({type=VIDEO_INPUT})
[1048:1059:1019/091825.186708:VERBOSE1:media_stream_manager.cc(1112)] video capture: VideoCaptureManager::EnumerateDevices
[1048:1059:1019/091825.186729:VERBOSE1:media_stream_manager.cc(1112)] video capture: ServiceVideoCaptureProvider::GetDeviceInfosAsync
Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.
[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})
I assume that this is the platform related issue because mipi camera is treated as output device and chromium is checking for input device for streaming. Correct if I am wrong .
This is the camera information
root@imx8mpevk:~# v4l2-ctl --all -d /dev/video3
Driver Info:
Driver name : mxc-isi-cap
Card type : mxc-isi-cap
Bus info : platform:32e00000.isi:cap_devic
Driver version : 6.1.36
Capabilities : 0x84201000
Video Capture Multiplanar
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04201000
Video Capture Multiplanar
Streaming
Extended Pix Format
Priority: 2
Format Video Capture Multiplanar:
Width/Height : 640/480
Pixel Format : 'RGBP' (16-bit RGB 5-6-5)
Field : None
Number of planes : 1
Flags :
Colorspace : sRGB
Transfer Function : Default
YCbCr/HSV Encoding: ITU-R 601
Quantization : Full Range
Plane 0 :
Bytes per Line : 1280
Size Image : 614400
Crop Capability Video Output:
Bounds : Left 0, Top 0, Width 640, Height 480
Default : Left 0, Top 0, Width 640, Height 480
Pixel Aspect: 1/1
Selection Video Output: compose, Left 0, Top 0, Width 640, Height 480, Flags:
Selection Video Output: compose_default, Left 0, Top 0, Width 640, Height 480, Flags:
Selection Video Output: compose_bounds, Left 0, Top 0, Width 640, Height 480, Flags:
Streaming Parameters Video Capture:
Capabilities : timeperframe
Frames per second: 30.000 (30/1)
Read buffers : 0User Controls horizontal_flip 0x00980914 (bool) : default=0 value=0
vertical_flip 0x00980915 (bool) : default=0 value=0
alpha_component 0x00980929 (int) : min=0 max=255 step=1 default=0 value=0