nopnop2002 / esp-idf-video-streaming

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

[FAIL]PAPALOOK AF925 #5

Open nopnop2002 opened 2 years ago

nopnop2002 commented 2 years ago

PAPALOOK AF925

Cannot be used with ESP-IDF.
ESP-IDF does not get proper device descriptors.
This is not a libuvc issue, but a USB support issue.

Divice ID

$ lsusb
Bus 001 Device 052: ID 1bcf:2284 Sunplus Innovation Technology Inc.

Device descriptor read by Linux

DEVICE CONFIGURATION (1bcf:2284/20190322001) ---
Status: idle
VideoControl:
        bcdUVC: 0x0100
VideoStreaming(1):
        bEndpointAddress: 129
        Formats:
        MJPEGFormat(1)
                  bits per pixel: 0
                  GUID: 4d4a5047000000000000000000000000 (MJPG)
                  default frame: 1
                  aspect ratio: 0x0
                  interlace flags: 00
                  copy protect: 00
                        FrameDescriptor(1)
                          capabilities: 00
                          size: 640x480
                          bit rate: 24576000-147456000
                          max frame size: 614400
                          default interval: 1/30
                          interval[0]: 1/30
                          interval[1]: 1/25
                          interval[2]: 1/20
                          interval[3]: 1/15
                          interval[4]: 1/10
                          interval[5]: 1/7
                          interval[6]: 1/5
                        FrameDescriptor(2)
                          capabilities: 00
                          size: 320x240
                          bit rate: 6144000-36864000
                          max frame size: 153600
                          default interval: 1/30
                          interval[0]: 1/30
                          interval[1]: 1/25
                          interval[2]: 1/20
                          interval[3]: 1/15
                          interval[4]: 1/10
                          interval[5]: 1/7
                          interval[6]: 1/5
                        FrameDescriptor(3)
                          capabilities: 00
                          size: 1280x720
                          bit rate: 73728000-442368000
                          max frame size: 1843200
                          default interval: 1/30
                          interval[0]: 1/30
                          interval[1]: 1/25
                          interval[2]: 1/20
                          interval[3]: 1/15
                          interval[4]: 1/10
                          interval[5]: 1/7
                          interval[6]: 1/5
                        FrameDescriptor(4)
                          capabilities: 00
                          size: 1920x1080
                          bit rate: 165888000-995328000
                          max frame size: 4147200
                          default interval: 1/30
                          interval[0]: 1/30
                          interval[1]: 1/25
                          interval[2]: 1/20
                          interval[3]: 1/15
                          interval[4]: 1/10
                          interval[5]: 1/7
                          interval[6]: 1/5
                        FrameDescriptor(5)
                          capabilities: 00
                          size: 1280x960
                          bit rate: 98304000-589824000
                          max frame size: 2457600
                          default interval: 1/30
                          interval[0]: 1/30
                          interval[1]: 1/25
                          interval[2]: 1/20
                          interval[3]: 1/15
                          interval[4]: 1/10
                          interval[5]: 1/7
                          interval[6]: 1/5
                        FrameDescriptor(6)
                          capabilities: 00
                          size: 800x600
                          bit rate: 38400000-230400000
                          max frame size: 960000
                          default interval: 1/30
                          interval[0]: 1/30
                          interval[1]: 1/25
                          interval[2]: 1/20
                          interval[3]: 1/15
                          interval[4]: 1/10
                          interval[5]: 1/7
                          interval[6]: 1/5
                        StillFrameDescriptor
                          bEndPointAddress: 00
                          wWidth(1) = 640
                          wHeight(1) = 480
                          wWidth(2) = 320
                          wHeight(2) = 240
                          wWidth(3) = 1280
                          wHeight(3) = 720
                          wWidth(4) = 1920
                          wHeight(4) = 1080
                          wWidth(5) = 1280
                          wHeight(5) = 960
                          wWidth(6) = 800
                          wHeight(6) = 600
        UncompressedFormat(2)
                  bits per pixel: 16
                  GUID: 5955593200001000800000aa00389b71 (YUY2)
                  default frame: 1
                  aspect ratio: 0x0
                  interlace flags: 00
                  copy protect: 00
                        FrameDescriptor(1)
                          capabilities: 00
                          size: 640x480
                          bit rate: 24576000-147456000
                          max frame size: 614400
                          default interval: 1/30
                          interval[0]: 1/30
                          interval[1]: 1/25
                          interval[2]: 1/20
                          interval[3]: 1/15
                          interval[4]: 1/10
                          interval[5]: 1/7
                          interval[6]: 1/5
                        FrameDescriptor(2)
                          capabilities: 00
                          size: 320x240
                          bit rate: 6144000-36864000
                          max frame size: 153600
                          default interval: 1/30
                          interval[0]: 1/30
                          interval[1]: 1/25
                          interval[2]: 1/20
                          interval[3]: 1/15
                          interval[4]: 1/10
                          interval[5]: 1/7
                          interval[6]: 1/5
                        FrameDescriptor(3)
                          capabilities: 00
                          size: 1280x720
                          bit rate: 73728000-147456000
                          max frame size: 1843200
                          default interval: 1/10
                          interval[0]: 1/10
                          interval[1]: 1/5
                          interval[2]: 1/3
                        FrameDescriptor(4)
                          capabilities: 00
                          size: 1920x1080
                          bit rate: 165888000-165888000
                          max frame size: 4147200
                          default interval: 1/5
                          interval[0]: 1/5
                        FrameDescriptor(5)
                          capabilities: 00
                          size: 1280x960
                          bit rate: 98304000-147456000
                          max frame size: 2457600
                          default interval: 1/7
                          interval[0]: 1/7
                          interval[1]: 1/5
                        FrameDescriptor(6)
                          capabilities: 00
                          size: 800x600
                          bit rate: 76800000-153600000
                          max frame size: 960000
                          default interval: 1/20
                          interval[0]: 1/20
                          interval[1]: 1/15
                          interval[2]: 1/10
                        StillFrameDescriptor
                          bEndPointAddress: 00
                          wWidth(1) = 640
                          wHeight(1) = 480
                          wWidth(2) = 320
                          wHeight(2) = 240
                          wWidth(3) = 1280
                          wHeight(3) = 720
                          wWidth(4) = 1920
                          wHeight(4) = 1080
                          wWidth(5) = 1280
                          wHeight(5) = 960
                          wWidth(6) = 800
                          wHeight(6) = 600
END DEVICE CONFIGURATION

Fail on ESP-IDF

E (33073) HUB: Root port reset failed
E (33983) HUB: Root port reset failed