Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SUCCESS] Generalplus GENERAL WEBCAM #27

Open
lworin opened this issue Dec 11, 2024 · 2 comments
Open

[SUCCESS] Generalplus GENERAL WEBCAM #27

lworin opened this issue Dec 11, 2024 · 2 comments

Comments

@lworin
Copy link

lworin commented Dec 11, 2024

Generalplus GENERAL WEBCAM

image

Successful test with this "generic" camera with the settings below. Above 800x480 the streaming got way too laggy.

  • 176x144 30FPS MJPEG
  • 320x240 30FPS MJPEG
  • 640x360 30FPS MJPEG
  • 640x480 30FPS MJPEG
  • 800x480 30FPS MJPEG
  • 1280x720 30FPS MJPEG
  • 1920x1080 30FPS MJPEG

For the scenarios that weren't available on menuconfig, I used the "Force setting" block:

#if 1
    // Force setting
    width = 1920;
    height = 1080;
    fps = 30;
    format = UVC_FRAME_FORMAT_MJPEG;
#endif

Device ID

$ lsusb
Bus 003 Device 013: ID 1b3f:2247 Generalplus Technology Inc. GENERAL WEBCAM

Device description read by ESP-IDF

DEVICE CONFIGURATION (1b3f:2247/*J) ---
Status: idle
VideoControl:
        bcdUVC: 0x0100
VideoStreaming(1):
        bEndpointAddress: 133
        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: 1920x1080
                          bit rate: 912384-912384
                          max frame size: 614400
                          default interval: 1/30
                          interval[0]: 1/30
                        FrameDescriptor(2)
                          capabilities: 00
                          size: 1280x720
                          bit rate: 131072-912384
                          max frame size: 614400
                          default interval: 1/30
                          interval[0]: 1/30
                        FrameDescriptor(3)
                          capabilities: 00
                          size: 800x480
                          bit rate: 912384-912384
                          max frame size: 614400
                          default interval: 1/30
                          interval[0]: 1/30
                        FrameDescriptor(4)
                          capabilities: 00
                          size: 640x480
                          bit rate: 912384-912384
                          max frame size: 614400
                          default interval: 1/30
                          interval[0]: 1/30
                        FrameDescriptor(5)
                          capabilities: 00
                          size: 640x360
                          bit rate: 912384-912384
                          max frame size: 614400
                          default interval: 1/30
                          interval[0]: 1/30
                        FrameDescriptor(6)
                          capabilities: 00
                          size: 320x240
                          bit rate: 912384-912384
                          max frame size: 614400
                          default interval: 1/30
                          interval[0]: 1/30
                        FrameDescriptor(7)
                          capabilities: 00
                          size: 176x144
                          bit rate: 912384-912384
                          max frame size: 614400
                          default interval: 1/30
                          interval[0]: 1/30
                        FrameDescriptor(8)
                          capabilities: 00
                          size: 800x600
                          bit rate: 912384-912384
                          max frame size: 614400
                          default interval: 1/30
                          interval[0]: 1/30
                        FrameDescriptor(9)
                          capabilities: 00
                          size: 1920x1080
                          bit rate: 912384-912384
                          max frame size: 614400
                          default interval: 1/30
                          interval[0]: 1/30
                        StillFrameDescriptor
                          bEndPointAddress: 00
                          wWidth(1) = 1920
                          wHeight(1) = 1080
                          wWidth(2) = 1280
                          wHeight(2) = 720
                          wWidth(3) = 640
                          wHeight(3) = 480
                          wWidth(4) = 800
                          wHeight(4) = 480
                          wWidth(5) = 640
                          wHeight(5) = 360
                          wWidth(6) = 320
                          wHeight(6) = 240
                          wWidth(7) = 176
                          wHeight(7) = 144
                          wWidth(8) = 800
                          wHeight(8) = 600
                          wWidth(9) = 1920
                          wHeight(9) = 1080
        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: 73728000-147456000
                          max frame size: 614400
                          default interval: 1/30
                          interval[0]: 1/30
                        FrameDescriptor(2)
                          capabilities: 00
                          size: 640x360
                          bit rate: 73728000-147456000
                          max frame size: 460800
                          default interval: 1/30
                          interval[0]: 1/30
                        FrameDescriptor(3)
                          capabilities: 00
                          size: 320x240
                          bit rate: 73728000-147456000
                          max frame size: 153600
                          default interval: 1/30
                          interval[0]: 1/30
                        FrameDescriptor(4)
                          capabilities: 00
                          size: 176x144
                          bit rate: 73728000-147456000
                          max frame size: 50688
                          default interval: 1/30
                          interval[0]: 1/30
                        FrameDescriptor(5)
                          capabilities: 00
                          size: 640x480
                          bit rate: 73728000-147456000
                          max frame size: 614400
                          default interval: 1/30
                          interval[0]: 1/30
                        StillFrameDescriptor
                          bEndPointAddress: 00
                          wWidth(1) = 640
                          wHeight(1) = 480
                          wWidth(2) = 640
                          wHeight(2) = 360
                          wWidth(3) = 320
                          wHeight(3) = 240
                          wWidth(4) = 176
                          wHeight(4) = 144
                          wWidth(5) = 640
                          wHeight(5) = 480
END DEVICE CONFIGURATION
@nopnop2002
Copy link
Owner

nopnop2002 commented Dec 11, 2024

Thank you for the report.
Where is DEMO_UVC_XFER_BUFFER_SIZE define used?
I did grep but couldn't find it.

$ cd esp-idf-video-streaming
$ grep -rn "DEMO_UVC_XFER_BUFFER_SIZE" *

@lworin
Copy link
Author

lworin commented Dec 12, 2024

Thank you for the report. Where is DEMO_UVC_XFER_BUFFER_SIZE define used? I did grep but couldn't find it.

Sorry, I had tested it with a different driver and mixed up the codes. The report is correct now.

The setting I was reffering to is from Espressif's USB Stream Example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants