HTI HT-203U Thermal Imager Raspberry Pi OS - Page 1
Forum section: electronics / general

author: 5B4APV
author_rank: Newbie
timestamp: March 28, 2024, 08:25:44 pm
content: Hello!I am trying to view the UVC video stream of theHT-203U 256x192USB C thermal camera on raspberry pi os but I haven't been able to.I have tried through VLC, guvcview, cheese and ffmpegThe thermal imager works fine as a webcam on Windows, but on Pi os it wont display anything and each software prints errors when trying to connect to it.The format that works on windows is YUYV422 256x192Any guidance on how to view live video from this device will be greatly appreciated.Bellow are the outputs of 2 commands that show the details of the video stream the device outputs.ffmpeg -f v4l2 -list_formats all -i /dev/video0:[video4linux2,v4l2 @ 0x1907cd0] Raw : yuyv422 : YUYV 4:2:2 : 256x392 256x192 256x196 256x400 256x196 256x200 192x520 192x400[video4linux2,v4l2 @ 0x1907cd0] Compressed: mjpeg : Motion-JPEG : 120x160 240x320 640x360[video4linux2,v4l2 @ 0x1907cd0] Compressed: h264 : H.264 : 240x320v4l2-ctl -d /dev/video0 --list-formats:ioctl: VIDIOC_ENUM_FMTType: Video Capture: 'YUYV' (YUYV 4:2:2): 'MJPG' (Motion-JPEG, compressed): 'H264' (H.264, compressed)

author: 5B4APV
author_rank: Newbie
timestamp: March 31, 2024, 09:54:16 pm
content: Some more information I got from the camera:uvcdynctrl -f:Code: Invalid V4L2 control type encountered: ctrl_id = 0x00980001, name = 'User Controls', type = 6 Invalid or unsupported V4L2 control encountered: ctrl_id = 0x00980001, name = 'User Controls' Unknown V4L2 user control ID encountered: 0x0098090E (V4L2_CID_USER_BASE + 14) Unknown V4L2 user control ID encountered: 0x0098090F (V4L2_CID_USER_BASE + 15) Invalid V4L2 control type encountered: ctrl_id = 0x009F0001, name = 'Image Processing Controls', type = 6 Unknown V4L2 control ID encountered: 0x009F0905 Invalid V4L2 control type encountered: ctrl_id = 0x009D0001, name = 'JPEG Compression Controls', type = 6 Unknown V4L2 control ID encountered: 0x009D0903 Invalid V4L2 control type encountered: ctrl_id = 0x00990001, name = 'Codec Controls', type = 6 Unknown V4L2 MPEG control ID encountered: 0x009909CA (V4L2_CID_MPEG_BASE + 202) Unknown V4L2 MPEG control ID encountered: 0x009909CB (V4L2_CID_MPEG_BASE + 203) Unknown V4L2 MPEG control ID encountered: 0x009909CE (V4L2_CID_MPEG_BASE + 206) Unknown V4L2 MPEG control ID encountered: 0x009909CF (V4L2_CID_MPEG_BASE + 207) Unknown V4L2 MPEG control ID encountered: 0x009909D8 (V4L2_CID_MPEG_BASE + 216) Unknown V4L2 MPEG control ID encountered: 0x009909E2 (V4L2_CID_MPEG_BASE + 226) Unknown V4L2 MPEG control ID encountered: 0x009909E5 (V4L2_CID_MPEG_BASE + 229) Unknown V4L2 MPEG control ID encountered: 0x00990A61 (V4L2_CID_MPEG_BASE + 353) Unknown V4L2 MPEG control ID encountered: 0x00990A62 (V4L2_CID_MPEG_BASE + 354) Unknown V4L2 MPEG control ID encountered: 0x00990A66 (V4L2_CID_MPEG_BASE + 358) Unknown V4L2 MPEG control ID encountered: 0x00990A67 (V4L2_CID_MPEG_BASE + 359) Unknown V4L2 MPEG control ID encountered: 0x00990A6B (V4L2_CID_MPEG_BASE + 363) Invalid V4L2 control type encountered: ctrl_id = 0x00980001, name = 'User Controls', type = 6 Unknown V4L2 user control ID encountered: 0x00980914 (V4L2_CID_USER_BASE + 20) Unknown V4L2 user control ID encountered: 0x00980915 (V4L2_CID_USER_BASE + 21) Invalid V4L2 control type encountered: ctrl_id = 0x00980001, name = 'User Controls', type = 6 Unknown V4L2 user control ID encountered: 0x0098090E (V4L2_CID_USER_BASE + 14) Unknown V4L2 user control ID encountered: 0x0098090F (V4L2_CID_USER_BASE + 15) Invalid V4L2 control type encountered: ctrl_id = 0x009F0001, name = 'Image Processing Controls', type = 6 Unknown V4L2 control ID encountered: 0x009F0905 Invalid V4L2 control type encountered: ctrl_id = 0x00980001, name = 'User Controls', type = 6 Unknown V4L2 user control ID encountered: 0x00980927 (V4L2_CID_USER_BASE + 39) Invalid V4L2 control type encountered: ctrl_id = 0x00990001, name = 'Codec Controls', type = 6 Unknown V4L2 MPEG control ID encountered: 0x00990A67 (V4L2_CID_MPEG_BASE + 359) Unknown V4L2 MPEG control ID encountered: 0x00990A6B (V4L2_CID_MPEG_BASE + 363) Invalid V4L2 control type encountered: ctrl_id = 0x00A40001, name = 'Stateless Codec Controls', type = 6 Unknown V4L2 control ID encountered: 0x00A40A95 Unknown V4L2 control ID encountered: 0x00A40A96Listing available frame formats for device video0:Pixel format: YUYV (YUYV 4:2:2; MIME type: video/x-raw-yuv)Frame size: 256x392Frame rates: 25Frame size: 256x192Frame rates: 25Frame size: 256x196Frame rates: 25, 25Frame size: 256x400Frame rates: 25Frame size: 256x196Frame rates: 25, 25Frame size: 256x200Frame rates: 25Frame size: 192x520Frame rates: 25Frame size: 192x400Frame rates: 25Pixel format: MJPG (Motion-JPEG; MIME type: image/jpeg)Frame size: 120x160Frame rates: 25Frame size: 240x320Frame rates: 30Frame size: 640x360Frame rates: 30Pixel format: H264 (H.264)Frame size: 240x320Frame rates: 30xinput --list:Code:⎡ Virtual core pointerid=2[master pointer (3)]⎜ ↳ Virtual core XTEST pointerid=4[slave pointer (2)]⎜ ↳ vc4-hdmi-0id=7[slave pointer (2)]⎜ ↳ vc4-hdmi-1id=8[slave pointer (2)]⎣ Virtual core keyboardid=3[master keyboard (2)]↳ Virtual core XTEST keyboardid=5[slave keyboard (3)]↳ HikCamera: UVC Cameraid=6[slave keyboard (3)]↳ vc4-hdmi-0id=9[slave keyboard (3)]↳ vc4-hdmi-1id=10[slave keyboard (3)]v4l2-ctl -d0 -D:Code:Driver Info:Driver name : uvcvideoCard type : HikCamera: UVC CameraBus info : usb-0000:01:00.0-1.4.4Driver version : 6.1.21Capabilities : 0x84a00001Video CaptureMetadata CaptureStreamingExtended Pix FormatDevice CapabilitiesDevice Caps : 0x04200001Video CaptureStreamingExtended Pix FormatMedia Driver Info:Driver name : uvcvideoModel : HikCamera: UVC CameraSerial : F10615613Bus info : usb-0000:01:00.0-1.4.4Media version : 6.1.21Hardware revision: 0x00000409 (1033)Driver version : 6.1.21Interface Info:ID : 0x03000002Type : V4L VideoEntity Info:ID : 0x00000001 (1)Name : HikCamera: UVC CameraFunction : V4L2 I/OFlags : defaultPad 0x01000007 : 0: SinkLink 0x0200000d: from remote pad 0x1000009 of entity 'Input 2': Data, Enabled, ImmutableI believe it's possibly a wrong driver selected for the device, but the resolutions seem correct.

author: Dogman211
author_rank: Contributor
timestamp: October 08, 2024, 01:29:35 pm
content: Nope not a driver issue. Set the V4L2 quirk to 2 or do this to fix it permanently on boot :sudo nano /etc/modprobe.d/uvcvideo.conftype: options uvcvideo quirks=0x02ctrl + x then enter to saverebootcheck that it worked with : cat /sys/module/uvcvideo/parameters/quirksshould read as "2"then have a crack at it, should work