nopnop2002 / esp-idf-video-streaming

Capture video from a USB camera using ESP-IDF
MIT License
46 stars 6 forks source link

[SUCCESS] HIKVISION TB-4117-3/S THERMAL IMAGING CAMERA #17

Open 2054686334 opened 6 months ago

2054686334 commented 6 months ago

read from v4l2 on ubuntu: 屏幕截图 2024-04-26 181710

running on esp32-s3-n16r8:

Device found
DEVICE CONFIGURATION (2bdf:0101/F) ---
Status: idle
VideoControl:
        bcdUVC: 0x0110
VideoStreaming(1):
        bEndpointAddress: 129
        Formats:
        UncompressedFormat(1)
                  bits per pixel: 16
                  GUID: 5955593200001000800000aa00389b71 (YUY2)
                  default frame: 1
                  aspect ratio: 0x0
                  interlace flags: 00
                  copy protect: 00
                        FrameDescriptor(1)
                          capabilities: 00
                          size: 120x160
                          bit rate: 7680000-7680000
                          max frame size: 38400
                          default interval: 1/25
                          interval[0]: 1/25
                        FrameDescriptor(2)
                          capabilities: 00
                          size: 240x320
                          bit rate: 36864000-36864000
                          max frame size: 153600
                          default interval: 1/30
                          interval[0]: 1/30
                        FrameDescriptor(3)
                          capabilities: 00
                          size: 640x360
                          bit rate: 110592000-110592000
                          max frame size: 460800
                          default interval: 1/30
                          interval[0]: 1/30
        MJPEGFormat(2)
                  bits per pixel: 0
                  GUID: 4d4a5047000000000000000000000000 (MJPG)
                  default frame: 1
                  aspect ratio: 0x0
                  interlace flags: 00
                  copy protect: 00
                        FrameDescriptor(1)
                          capabilities: 00
                          size: 120x160
                          bit rate: 7680000-7680000
                          max frame size: 38400
                          default interval: 1/25
                          interval[0]: 1/25
                        FrameDescriptor(2)
                          capabilities: 00
                          size: 240x320
                          bit rate: 10240000-10240000
                          max frame size: 153600
                          default interval: 1/30
                          interval[0]: 1/30
                        FrameDescriptor(3)
                          capabilities: 00
                          size: 640x360
                          bit rate: 10240000-10240000
                          max frame size: 460800
                          default interval: 1/30
                          interval[0]: 1/30
        FrameFormat(3)
                  bits per pixel: 16
                  GUID: 4832363400001000800000aa00389b71 (H264)
                  default frame: 1
                  aspect ratio: 0x0
                  interlace flags: 00
                  copy protect: 00
                        FrameDescriptor(1)
                          capabilities: 00
                          size: 240x320
                          bit rate: 8192000-8192000
                          max frame size: 0
                          default interval: 1/30
                          interval[0]: 1/30
END DEVICE CONFIGURATION
I (25647) example: format_desc->fourccFormat=(YUY2)
I (25657) example: frame_desc->wWidth=120
I (25657) example: frame_desc->wHeight=160
I (25667) example: format_desc->bDescriptorSubtype=4
I (25667) example: frame_desc->dwDefaultFrameInterval=400000
I (25677) example: format_desc->bDescriptorSubtype == UVC_VS_FORMAT_UNCOMPRESSED
W (25687) example: FRAME SIZE=320x240 FRAME RATE=30
W (25687) example: FRAME FORMAT=MJPEG
I (25697) example: format=7 width=320 height=240 fps=30
Negotiating streaming format failed, trying again...
Negotiating streaming format failed, trying again...
Negotiating streaming format failed, trying again...
Negotiating streaming format failed, trying again...
Negotiating streaming format failed, trying again...
Negotiating streaming format failed, trying again...
Negotiating streaming format failed, trying again...
Negotiating streaming format failed, trying again...
Negotiating streaming format failed, trying again...
Negotiating streaming format failed, trying again...
E (35707) example: uvc_get_stream_ctrl_format_size fail
E (35707) example: Change other camera and re-start
2054686334 commented 6 months ago

update:change width and height,now work well

nopnop2002 commented 6 months ago

Could you please publish the lsusb results?

Leave it open for other users.

2054686334 commented 6 months ago

Could you please publish the lsusb results?

Leave it open for other users.

yes,update later

2054686334 commented 6 months ago

lsusb result:

hxp@hxp-virtual-machine:~$ lsusb
Bus 002 Device 002: ID 2bdf:0101 HIKVISION HikCamera
nopnop2002 commented 6 months ago

@2054686334 thank you.