pikvm / ustreamer

µStreamer - Lightweight and fast MJPEG-HTTP streamer
https://pikvm.org
GNU General Public License v3.0
1.67k stars 225 forks source link

My Stream isn´t starting! -- ERROR [1717.524 stream] -- Mainloop select() error: Success #151

Closed eliasstepanik closed 2 years ago

eliasstepanik commented 2 years ago

My stream is not starting with usb camera!

./ustreamer --device=/dev/v4l/by-id/usb-Generic_HD_camera-video-index0 --host=0.0.0.0 --port=8081

-- INFO [1901.680 stream] -- Device fd=8 opened -- INFO [1901.680 stream] -- Using input channel: 0 -- INFO [1901.681 stream] -- Using resolution: 640x480 -- INFO [1901.682 stream] -- Using format: YUYV -- INFO [1901.683 stream] -- Using HW FPS: 0 -> 30 (coerced) -- INFO [1901.683 stream] -- Using IO method: MMAP -- INFO [1901.689 stream] -- Requested 5 device buffers, got 5 -- INFO [1901.694 stream] -- Capturing started -- INFO [1901.694 stream] -- Using JPEG quality: 80% -- INFO [1901.694 stream] -- Creating pool JPEG with 4 workers ... -- INFO [1901.695 stream] -- Capturing ... -- ERROR [1902.696 stream] -- Mainloop select() error: Input/output error -- INFO [1902.696 stream] -- Destroying workers pool JPEG ... -- INFO [1902.699 stream] -- Capturing stopped -- INFO [1902.702 stream] -- Device fd=8 closed

SirCipherz commented 2 years ago

i have the same error

mdevaev commented 2 years ago

Please try option -m jpeg or -m mjpeg.

eliasstepanik commented 2 years ago

I can only use yuvv

mdevaev commented 2 years ago

Which camera do you use?

jdfalk commented 2 years ago

Same here. I am using a Razor Kiyo Pro.

I've tried: ustreamer -s 0.0.0.0 -p 10008 -d /dev/v4l/by-id/usb-Razer_Inc_Razer_Kiyo_Pro-video-index0 -f 60 -m MJPEG -q 100 -c HW -n -- and every variation of this, leaving off -c -q -n ustreamer -s 0.0.0.0 -p 10008 -d /dev/v4l/by-id/usb-Razer_Inc_Razer_Kiyo_Pro-video-index0 -f 30 -m YUYV ustreamer -s 0.0.0.0 -p 10008 -d /dev/v4l/by-id/usb-Razer_Inc_Razer_Kiyo_Pro-video-index0 -f 30 -m JPEG

v4l2-ctl --all -d /dev/v4l/by-id/usb-Razer_Inc_Razer_Kiyo_Pro-video-index0:

Driver Info:
    Driver name      : uvcvideo
    Card type        : Razer Kiyo Pro
    Bus info         : usb-0000:04:00.0-2.3
    Driver version   : 5.4.181
    Capabilities     : 0x84a00001
        Video Capture
        Metadata Capture
        Streaming
        Extended Pix Format
        Device Capabilities
    Device Caps      : 0x04200001
        Video Capture
        Streaming
        Extended Pix Format
Media Driver Info:
    Driver name      : uvcvideo
    Model            : Razer Kiyo Pro
    Serial           :
    Bus info         : usb-0000:04:00.0-2.3
    Media version    : 5.4.181
    Hardware revision: 0x00000821 (2081)
    Driver version   : 5.4.181
Interface Info:
    ID               : 0x03000002
    Type             : V4L Video
Entity Info:
    ID               : 0x00000001 (1)
    Name             : Razer Kiyo Pro
    Function         : V4L2 I/O
    Flags         : default
    Pad 0x01000007   : 0: Sink
      Link 0x02000013: from remote pad 0x100000a of entity 'Extension 2': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
    Width/Height      : 1920/1080
    Pixel Format      : 'MJPG' (Motion-JPEG)
    Field             : None
    Bytes per Line    : 0
    Size Image        : 4147200
    Colorspace        : sRGB
    Transfer Function : Default (maps to sRGB)
    YCbCr/HSV Encoding: Default (maps to ITU-R 601)
    Quantization      : Default (maps to Full Range)
    Flags             :
Crop Capability Video Capture:
    Bounds      : Left 0, Top 0, Width 1920, Height 1080
    Default     : Left 0, Top 0, Width 1920, Height 1080
    Pixel Aspect: 1/1
Selection Video Capture: crop_default, Left 0, Top 0, Width 1920, Height 1080, Flags:
Selection Video Capture: crop_bounds, Left 0, Top 0, Width 1920, Height 1080, Flags:
Streaming Parameters Video Capture:
    Capabilities     : timeperframe
    Frames per second: 60.000 (60/1)
    Read buffers     : 0
                     brightness 0x00980900 (int)    : min=0 max=255 step=1 default=128 value=128
                       contrast 0x00980901 (int)    : min=0 max=255 step=1 default=128 value=128
                     saturation 0x00980902 (int)    : min=0 max=255 step=1 default=128 value=128
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                           gain 0x00980913 (int)    : min=0 max=255 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
                0: Disabled
                1: 50 Hz
                2: 60 Hz
      white_balance_temperature 0x0098091a (int)    : min=2000 max=7500 step=10 default=5000 value=5000 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=255 step=1 default=128 value=128
         backlight_compensation 0x0098091c (int)    : min=0 max=1 step=1 default=0 value=0
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
                1: Manual Mode
                3: Aperture Priority Mode
              exposure_absolute 0x009a0902 (int)    : min=3 max=2047 step=1 default=156 value=156 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                   pan_absolute 0x009a0908 (int)    : min=-36000 max=36000 step=3600 default=0 value=0
                  tilt_absolute 0x009a0909 (int)    : min=-36000 max=36000 step=3600 default=0 value=0
                 focus_absolute 0x009a090a (int)    : min=0 max=600 step=1 default=0 value=0 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=100 max=400 step=1 default=100 value=100
click here for output of lsusb -vv ``` Bus 004 Device 003: ID 1532:0e05 Razer USA, Ltd Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 3.20 bDeviceClass 239 Miscellaneous Device bDeviceSubClass 2 bDeviceProtocol 1 Interface Association bMaxPacketSize0 9 idVendor 0x1532 Razer USA, Ltd idProduct 0x0e05 bcdDevice 8.21 iManufacturer 1 Razer Inc iProduct 2 Razer Kiyo Pro iSerial 0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 0x05b4 bNumInterfaces 4 bConfigurationValue 1 iConfiguration 0 bmAttributes 0x80 (Bus Powered) MaxPower 896mA Interface Association: bLength 8 bDescriptorType 11 bFirstInterface 0 bInterfaceCount 2 bFunctionClass 14 Video bFunctionSubClass 3 Video Interface Collection bFunctionProtocol 0 iFunction 0 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 14 Video bInterfaceSubClass 1 Video Control bInterfaceProtocol 0 iInterface 0 VideoControl Interface Descriptor: bLength 13 bDescriptorType 36 bDescriptorSubtype 1 (HEADER) bcdUVC 1.00 wTotalLength 0x0069 dwClockFrequency 30.000000MHz bInCollection 1 baInterfaceNr( 0) 1 VideoControl Interface Descriptor: bLength 9 bDescriptorType 36 bDescriptorSubtype 3 (OUTPUT_TERMINAL) bTerminalID 4 wTerminalType 0x0101 USB Streaming bAssocTerminal 0 bSourceID 2 iTerminal 0 VideoControl Interface Descriptor: bLength 27 bDescriptorType 36 bDescriptorSubtype 6 (EXTENSION_UNIT) bUnitID 2 guidExtensionCode {2c49d16a-32b8-4485-3ea8-643a152362f2} bNumControl 6 bNrPins 1 baSourceID( 0) 6 bControlSize 2 bmControls( 0) 0x3f bmControls( 1) 0x00 iExtension 0 VideoControl Interface Descriptor: bLength 27 bDescriptorType 36 bDescriptorSubtype 6 (EXTENSION_UNIT) bUnitID 6 guidExtensionCode {23e49ed0-1178-4f31-ae52-d2fb8a8d3b48} bNumControl 5 bNrPins 1 baSourceID( 0) 3 bControlSize 2 bmControls( 0) 0xff bmControls( 1) 0x7f iExtension 0 VideoControl Interface Descriptor: bLength 18 bDescriptorType 36 bDescriptorSubtype 2 (INPUT_TERMINAL) bTerminalID 1 wTerminalType 0x0201 Camera Sensor bAssocTerminal 0 iTerminal 0 wObjectiveFocalLengthMin 0 wObjectiveFocalLengthMax 0 wOcularFocalLength 0 bControlSize 3 bmControls 0x00020a2e Auto-Exposure Mode Auto-Exposure Priority Exposure Time (Absolute) Focus (Absolute) Zoom (Absolute) PanTilt (Absolute) Focus, Auto VideoControl Interface Descriptor: bLength 11 bDescriptorType 36 bDescriptorSubtype 5 (PROCESSING_UNIT) Warning: Descriptor too short bUnitID 3 bSourceID 1 wMaxMultiplier 0 bControlSize 2 bmControls 0x0000175b Brightness Contrast Saturation Sharpness White Balance Temperature Backlight Compensation Gain Power Line Frequency White Balance Temperature, Auto iProcessing 0 bmVideoStandards 0x00 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x85 EP 5 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 8 bMaxBurst 0 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 1 bAlternateSetting 0 bNumEndpoints 0 bInterfaceClass 14 Video bInterfaceSubClass 2 Video Streaming bInterfaceProtocol 0 iInterface 0 VideoStreaming Interface Descriptor: bLength 17 bDescriptorType 36 bDescriptorSubtype 1 (INPUT_HEADER) bNumFormats 4 wTotalLength 0x03e6 bEndPointAddress 129 bmInfo 0 bTerminalLink 4 bStillCaptureMethod 0 bTriggerSupport 0 bTriggerUsage 0 bControlSize 1 bmaControls( 0) 0 bmaControls( 1) 0 bmaControls( 2) 0 bmaControls( 3) 0 VideoStreaming Interface Descriptor: bLength 27 bDescriptorType 36 bDescriptorSubtype 4 (FORMAT_UNCOMPRESSED) bFormatIndex 1 bNumFrameDescriptors 4 guidFormat {32595559-0000-0010-8000-00aa00389b71} bBitsPerPixel 16 bDefaultFrameIndex 1 bAspectRatioX 0 bAspectRatioY 0 bmInterlaceFlags 0x00 Interlaced stream or variable: No Fields per frame: 2 fields Field 1 first: No Field pattern: Field 1 only bCopyProtect 0 VideoStreaming Interface Descriptor: bLength 54 bDescriptorType 36 bDescriptorSubtype 5 (FRAME_UNCOMPRESSED) bFrameIndex 1 bmCapabilities 0x00 Still image unsupported wWidth 640 wHeight 480 dwMinBitRate 294912000 dwMaxBitRate 294912000 dwMaxVideoFrameBufferSize 614400 dwDefaultFrameInterval 166666 bFrameIntervalType 7 dwFrameInterval( 0) 166666 dwFrameInterval( 1) 333333 dwFrameInterval( 2) 416666 dwFrameInterval( 3) 500000 dwFrameInterval( 4) 666666 dwFrameInterval( 5) 1000000 dwFrameInterval( 6) 2000000 VideoStreaming Interface Descriptor: bLength 54 bDescriptorType 36 bDescriptorSubtype 5 (FRAME_UNCOMPRESSED) bFrameIndex 7 bmCapabilities 0x00 Still image unsupported wWidth 640 wHeight 360 dwMinBitRate 221184000 dwMaxBitRate 221184000 dwMaxVideoFrameBufferSize 460800 dwDefaultFrameInterval 166666 bFrameIntervalType 7 dwFrameInterval( 0) 166666 dwFrameInterval( 1) 333333 dwFrameInterval( 2) 416666 dwFrameInterval( 3) 500000 dwFrameInterval( 4) 666666 dwFrameInterval( 5) 1000000 dwFrameInterval( 6) 2000000 VideoStreaming Interface Descriptor: bLength 54 bDescriptorType 36 bDescriptorSubtype 5 (FRAME_UNCOMPRESSED) bFrameIndex 11 bmCapabilities 0x00 Still image unsupported wWidth 1280 wHeight 720 dwMinBitRate 884736000 dwMaxBitRate 884736000 dwMaxVideoFrameBufferSize 1843200 dwDefaultFrameInterval 166666 bFrameIntervalType 7 dwFrameInterval( 0) 166666 dwFrameInterval( 1) 333333 dwFrameInterval( 2) 416666 dwFrameInterval( 3) 500000 dwFrameInterval( 4) 666666 dwFrameInterval( 5) 1000000 dwFrameInterval( 6) 2000000 VideoStreaming Interface Descriptor: bLength 54 bDescriptorType 36 bDescriptorSubtype 5 (FRAME_UNCOMPRESSED) bFrameIndex 13 bmCapabilities 0x00 Still image unsupported wWidth 1920 wHeight 1080 dwMinBitRate 1990656000 dwMaxBitRate 1990656000 dwMaxVideoFrameBufferSize 4147200 dwDefaultFrameInterval 166666 bFrameIntervalType 7 dwFrameInterval( 0) 166666 dwFrameInterval( 1) 333333 dwFrameInterval( 2) 416666 dwFrameInterval( 3) 500000 dwFrameInterval( 4) 666666 dwFrameInterval( 5) 1000000 dwFrameInterval( 6) 2000000 VideoStreaming Interface Descriptor: bLength 6 bDescriptorType 36 bDescriptorSubtype 13 (COLORFORMAT) bColorPrimaries 1 (BT.709,sRGB) bTransferCharacteristics 1 (BT.709) bMatrixCoefficients 4 (SMPTE 170M (BT.601)) VideoStreaming Interface Descriptor: bLength 11 bDescriptorType 36 bDescriptorSubtype 6 (FORMAT_MJPEG) bFormatIndex 2 bNumFrameDescriptors 4 bFlags 0 Fixed-size samples: No bDefaultFrameIndex 1 bAspectRatioX 0 bAspectRatioY 0 bmInterlaceFlags 0x00 Interlaced stream or variable: No Fields per frame: 1 fields Field 1 first: No Field pattern: Field 1 only bCopyProtect 0 VideoStreaming Interface Descriptor: bLength 54 bDescriptorType 36 bDescriptorSubtype 7 (FRAME_MJPEG) bFrameIndex 1 bmCapabilities 0x00 Still image unsupported wWidth 640 wHeight 480 dwMinBitRate 294912000 dwMaxBitRate 294912000 dwMaxVideoFrameBufferSize 614400 dwDefaultFrameInterval 166666 bFrameIntervalType 7 dwFrameInterval( 0) 166666 dwFrameInterval( 1) 333333 dwFrameInterval( 2) 416666 dwFrameInterval( 3) 500000 dwFrameInterval( 4) 666666 dwFrameInterval( 5) 1000000 dwFrameInterval( 6) 2000000 VideoStreaming Interface Descriptor: bLength 54 bDescriptorType 36 bDescriptorSubtype 7 (FRAME_MJPEG) bFrameIndex 7 bmCapabilities 0x00 Still image unsupported wWidth 640 wHeight 360 dwMinBitRate 221184000 dwMaxBitRate 221184000 dwMaxVideoFrameBufferSize 460800 dwDefaultFrameInterval 166666 bFrameIntervalType 7 dwFrameInterval( 0) 166666 dwFrameInterval( 1) 333333 dwFrameInterval( 2) 416666 dwFrameInterval( 3) 500000 dwFrameInterval( 4) 666666 dwFrameInterval( 5) 1000000 dwFrameInterval( 6) 2000000 VideoStreaming Interface Descriptor: bLength 54 bDescriptorType 36 bDescriptorSubtype 7 (FRAME_MJPEG) bFrameIndex 11 bmCapabilities 0x00 Still image unsupported wWidth 1280 wHeight 720 dwMinBitRate 884736000 dwMaxBitRate 884736000 dwMaxVideoFrameBufferSize 1843200 dwDefaultFrameInterval 166666 bFrameIntervalType 7 dwFrameInterval( 0) 166666 dwFrameInterval( 1) 333333 dwFrameInterval( 2) 416666 dwFrameInterval( 3) 500000 dwFrameInterval( 4) 666666 dwFrameInterval( 5) 1000000 dwFrameInterval( 6) 2000000 VideoStreaming Interface Descriptor: bLength 54 bDescriptorType 36 bDescriptorSubtype 7 (FRAME_MJPEG) bFrameIndex 13 bmCapabilities 0x00 Still image unsupported wWidth 1920 wHeight 1080 dwMinBitRate 1990656000 dwMaxBitRate 1990656000 dwMaxVideoFrameBufferSize 4147200 dwDefaultFrameInterval 166666 bFrameIntervalType 7 dwFrameInterval( 0) 166666 dwFrameInterval( 1) 333333 dwFrameInterval( 2) 416666 dwFrameInterval( 3) 500000 dwFrameInterval( 4) 666666 dwFrameInterval( 5) 1000000 dwFrameInterval( 6) 2000000 VideoStreaming Interface Descriptor: bLength 6 bDescriptorType 36 bDescriptorSubtype 13 (COLORFORMAT) bColorPrimaries 1 (BT.709,sRGB) bTransferCharacteristics 1 (BT.709) bMatrixCoefficients 4 (SMPTE 170M (BT.601)) VideoStreaming Interface Descriptor: bLength 28 bDescriptorType 36 bDescriptorSubtype 16 (FORMAT_FRAME_BASED) bFormatIndex 3 bNumFrameDescriptors 4 guidFormat {34363248-0000-0010-8000-00aa00389b71} bBitsPerPixel 16 bDefaultFrameIndex 1 bAspectRatioX 0 bAspectRatioY 0 bmInterlaceFlags 0x00 Interlaced stream or variable: No Fields per frame: 2 fields Field 1 first: No Field pattern: Field 1 only bCopyProtect 0 bVariableSize 1 VideoStreaming Interface Descriptor: bLength 54 bDescriptorType 36 bDescriptorSubtype 17 (FRAME_FRAME_BASED) bFrameIndex 1 bmCapabilities 0x00 Still image unsupported wWidth 640 wHeight 480 dwMinBitRate 251658240 dwMaxBitRate 503316480 dwDefaultFrameInterval 166666 bFrameIntervalType 7 dwBytesPerLine 0 dwFrameInterval( 0) 166666 dwFrameInterval( 1) 333333 dwFrameInterval( 2) 416666 dwFrameInterval( 3) 500000 dwFrameInterval( 4) 666666 dwFrameInterval( 5) 1000000 dwFrameInterval( 6) 2000000 VideoStreaming Interface Descriptor: bLength 54 bDescriptorType 36 bDescriptorSubtype 17 (FRAME_FRAME_BASED) bFrameIndex 9 bmCapabilities 0x00 Still image unsupported wWidth 640 wHeight 360 dwMinBitRate 251658240 dwMaxBitRate 503316480 dwDefaultFrameInterval 166666 bFrameIntervalType 7 dwBytesPerLine 0 dwFrameInterval( 0) 166666 dwFrameInterval( 1) 333333 dwFrameInterval( 2) 416666 dwFrameInterval( 3) 500000 dwFrameInterval( 4) 666666 dwFrameInterval( 5) 1000000 dwFrameInterval( 6) 2000000 VideoStreaming Interface Descriptor: bLength 54 bDescriptorType 36 bDescriptorSubtype 17 (FRAME_FRAME_BASED) bFrameIndex 15 bmCapabilities 0x00 Still image unsupported wWidth 1280 wHeight 720 dwMinBitRate 251658240 dwMaxBitRate 503316480 dwDefaultFrameInterval 166666 bFrameIntervalType 7 dwBytesPerLine 0 dwFrameInterval( 0) 166666 dwFrameInterval( 1) 333333 dwFrameInterval( 2) 416666 dwFrameInterval( 3) 500000 dwFrameInterval( 4) 666666 dwFrameInterval( 5) 1000000 dwFrameInterval( 6) 2000000 VideoStreaming Interface Descriptor: bLength 54 bDescriptorType 36 bDescriptorSubtype 17 (FRAME_FRAME_BASED) bFrameIndex 17 bmCapabilities 0x00 Still image unsupported wWidth 1920 wHeight 1080 dwMinBitRate 251658240 dwMaxBitRate 503316480 dwDefaultFrameInterval 166666 bFrameIntervalType 7 dwBytesPerLine 0 dwFrameInterval( 0) 166666 dwFrameInterval( 1) 333333 dwFrameInterval( 2) 416666 dwFrameInterval( 3) 500000 dwFrameInterval( 4) 666666 dwFrameInterval( 5) 1000000 dwFrameInterval( 6) 2000000 VideoStreaming Interface Descriptor: bLength 6 bDescriptorType 36 bDescriptorSubtype 13 (COLORFORMAT) bColorPrimaries 1 (BT.709,sRGB) bTransferCharacteristics 1 (BT.709) bMatrixCoefficients 4 (SMPTE 170M (BT.601)) VideoStreaming Interface Descriptor: bLength 27 bDescriptorType 36 bDescriptorSubtype 4 (FORMAT_UNCOMPRESSED) bFormatIndex 4 bNumFrameDescriptors 4 guidFormat {3231564e-0000-0010-8000-00aa00389b71} bBitsPerPixel 12 bDefaultFrameIndex 1 bAspectRatioX 0 bAspectRatioY 0 bmInterlaceFlags 0x00 Interlaced stream or variable: No Fields per frame: 2 fields Field 1 first: No Field pattern: Field 1 only bCopyProtect 0 VideoStreaming Interface Descriptor: bLength 54 bDescriptorType 36 bDescriptorSubtype 5 (FRAME_UNCOMPRESSED) bFrameIndex 1 bmCapabilities 0x00 Still image unsupported wWidth 640 wHeight 480 dwMinBitRate 221184000 dwMaxBitRate 221184000 dwMaxVideoFrameBufferSize 460800 dwDefaultFrameInterval 166666 bFrameIntervalType 7 dwFrameInterval( 0) 166666 dwFrameInterval( 1) 333333 dwFrameInterval( 2) 416666 dwFrameInterval( 3) 500000 dwFrameInterval( 4) 666666 dwFrameInterval( 5) 1000000 dwFrameInterval( 6) 2000000 VideoStreaming Interface Descriptor: bLength 54 bDescriptorType 36 bDescriptorSubtype 5 (FRAME_UNCOMPRESSED) bFrameIndex 2 bmCapabilities 0x00 Still image unsupported wWidth 640 wHeight 360 dwMinBitRate 165888000 dwMaxBitRate 165888000 dwMaxVideoFrameBufferSize 345600 dwDefaultFrameInterval 166666 bFrameIntervalType 7 dwFrameInterval( 0) 166666 dwFrameInterval( 1) 333333 dwFrameInterval( 2) 416666 dwFrameInterval( 3) 500000 dwFrameInterval( 4) 666666 dwFrameInterval( 5) 1000000 dwFrameInterval( 6) 2000000 VideoStreaming Interface Descriptor: bLength 54 bDescriptorType 36 bDescriptorSubtype 5 (FRAME_UNCOMPRESSED) bFrameIndex 3 bmCapabilities 0x00 Still image unsupported wWidth 1280 wHeight 720 dwMinBitRate 663552000 dwMaxBitRate 663552000 dwMaxVideoFrameBufferSize 1382400 dwDefaultFrameInterval 166666 bFrameIntervalType 7 dwFrameInterval( 0) 166666 dwFrameInterval( 1) 333333 dwFrameInterval( 2) 416666 dwFrameInterval( 3) 500000 dwFrameInterval( 4) 666666 dwFrameInterval( 5) 1000000 dwFrameInterval( 6) 2000000 VideoStreaming Interface Descriptor: bLength 54 bDescriptorType 36 bDescriptorSubtype 5 (FRAME_UNCOMPRESSED) bFrameIndex 4 bmCapabilities 0x00 Still image unsupported wWidth 1920 wHeight 1080 dwMinBitRate 1492992000 dwMaxBitRate 1492992000 dwMaxVideoFrameBufferSize 3110400 dwDefaultFrameInterval 166666 bFrameIntervalType 7 dwFrameInterval( 0) 166666 dwFrameInterval( 1) 333333 dwFrameInterval( 2) 416666 dwFrameInterval( 3) 500000 dwFrameInterval( 4) 666666 dwFrameInterval( 5) 1000000 dwFrameInterval( 6) 2000000 VideoStreaming Interface Descriptor: bLength 6 bDescriptorType 36 bDescriptorSubtype 13 (COLORFORMAT) bColorPrimaries 1 (BT.709,sRGB) bTransferCharacteristics 1 (BT.709) bMatrixCoefficients 4 (SMPTE 170M (BT.601)) Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 1 bAlternateSetting 1 bNumEndpoints 1 bInterfaceClass 14 Video bInterfaceSubClass 2 Video Streaming bInterfaceProtocol 0 iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 5 Transfer Type Isochronous Synch Type Asynchronous Usage Type Data wMaxPacketSize 0x0400 1x 1024 bytes bInterval 1 bMaxBurst 0 Mult 2 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 1 bAlternateSetting 2 bNumEndpoints 1 bInterfaceClass 14 Video bInterfaceSubClass 2 Video Streaming bInterfaceProtocol 0 iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 5 Transfer Type Isochronous Synch Type Asynchronous Usage Type Data wMaxPacketSize 0x0400 1x 1024 bytes bInterval 1 bMaxBurst 10 Mult 2 Interface Association: bLength 8 bDescriptorType 11 bFirstInterface 2 bInterfaceCount 2 bFunctionClass 1 Audio bFunctionSubClass 2 Streaming bFunctionProtocol 0 iFunction 0 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 2 bAlternateSetting 0 bNumEndpoints 0 bInterfaceClass 1 Audio bInterfaceSubClass 1 Control Device bInterfaceProtocol 0 iInterface 0 AudioControl Interface Descriptor: bLength 9 bDescriptorType 36 bDescriptorSubtype 1 (HEADER) bcdADC 1.00 wTotalLength 0x0026 bInCollection 1 baInterfaceNr(0) 3 AudioControl Interface Descriptor: bLength 12 bDescriptorType 36 bDescriptorSubtype 2 (INPUT_TERMINAL) bTerminalID 1 wTerminalType 0x0201 Microphone bAssocTerminal 0 bNrChannels 2 wChannelConfig 0x0003 Left Front (L) Right Front (R) iChannelNames 0 iTerminal 0 AudioControl Interface Descriptor: bLength 9 bDescriptorType 36 bDescriptorSubtype 3 (OUTPUT_TERMINAL) bTerminalID 3 wTerminalType 0x0101 USB Streaming bAssocTerminal 0 bSourceID 5 iTerminal 0 AudioControl Interface Descriptor: bLength 8 bDescriptorType 36 bDescriptorSubtype 6 (FEATURE_UNIT) bUnitID 5 bSourceID 1 bControlSize 1 bmaControls(0) 0x03 Mute Control Volume Control iFeature 0 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 3 bAlternateSetting 0 bNumEndpoints 0 bInterfaceClass 1 Audio bInterfaceSubClass 2 Streaming bInterfaceProtocol 0 iInterface 0 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 3 bAlternateSetting 1 bNumEndpoints 1 bInterfaceClass 1 Audio bInterfaceSubClass 2 Streaming bInterfaceProtocol 0 iInterface 0 AudioStreaming Interface Descriptor: bLength 7 bDescriptorType 36 bDescriptorSubtype 1 (AS_GENERAL) bTerminalLink 3 bDelay 2 frames wFormatTag 0x0001 PCM AudioStreaming Interface Descriptor: bLength 11 bDescriptorType 36 bDescriptorSubtype 2 (FORMAT_TYPE) bFormatType 1 (FORMAT_TYPE_I) bNrChannels 2 bSubframeSize 2 bBitResolution 16 bSamFreqType 1 Discrete tSamFreq[ 0] 48000 Endpoint Descriptor: bLength 9 bDescriptorType 5 bEndpointAddress 0x82 EP 2 IN bmAttributes 5 Transfer Type Isochronous Synch Type Asynchronous Usage Type Data wMaxPacketSize 0x00c4 1x 196 bytes bInterval 4 bRefresh 0 bSynchAddress 0 bMaxBurst 0 AudioStreaming Endpoint Descriptor: bLength 7 bDescriptorType 37 bDescriptorSubtype 1 (EP_GENERAL) bmAttributes 0x01 Sampling Frequency bLockDelayUnits 0 Undefined wLockDelay 0x0000 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 3 bAlternateSetting 2 bNumEndpoints 1 bInterfaceClass 1 Audio bInterfaceSubClass 2 Streaming bInterfaceProtocol 0 iInterface 0 AudioStreaming Interface Descriptor: bLength 7 bDescriptorType 36 bDescriptorSubtype 1 (AS_GENERAL) bTerminalLink 3 bDelay 2 frames wFormatTag 0x0001 PCM AudioStreaming Interface Descriptor: bLength 11 bDescriptorType 36 bDescriptorSubtype 2 (FORMAT_TYPE) bFormatType 1 (FORMAT_TYPE_I) bNrChannels 2 bSubframeSize 2 bBitResolution 16 bSamFreqType 1 Discrete tSamFreq[ 0] 16000 Endpoint Descriptor: bLength 9 bDescriptorType 5 bEndpointAddress 0x82 EP 2 IN bmAttributes 5 Transfer Type Isochronous Synch Type Asynchronous Usage Type Data wMaxPacketSize 0x0044 1x 68 bytes bInterval 4 bRefresh 0 bSynchAddress 0 bMaxBurst 0 AudioStreaming Endpoint Descriptor: bLength 7 bDescriptorType 37 bDescriptorSubtype 1 (EP_GENERAL) bmAttributes 0x01 Sampling Frequency bLockDelayUnits 0 Undefined wLockDelay 0x0000 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 3 bAlternateSetting 3 bNumEndpoints 1 bInterfaceClass 1 Audio bInterfaceSubClass 2 Streaming bInterfaceProtocol 0 iInterface 0 AudioStreaming Interface Descriptor: bLength 7 bDescriptorType 36 bDescriptorSubtype 1 (AS_GENERAL) bTerminalLink 3 bDelay 2 frames wFormatTag 0x0001 PCM AudioStreaming Interface Descriptor: bLength 11 bDescriptorType 36 bDescriptorSubtype 2 (FORMAT_TYPE) bFormatType 1 (FORMAT_TYPE_I) bNrChannels 2 bSubframeSize 2 bBitResolution 16 bSamFreqType 1 Discrete tSamFreq[ 0] 24000 Endpoint Descriptor: bLength 9 bDescriptorType 5 bEndpointAddress 0x82 EP 2 IN bmAttributes 5 Transfer Type Isochronous Synch Type Asynchronous Usage Type Data wMaxPacketSize 0x0064 1x 100 bytes bInterval 4 bRefresh 0 bSynchAddress 0 bMaxBurst 0 AudioStreaming Endpoint Descriptor: bLength 7 bDescriptorType 37 bDescriptorSubtype 1 (EP_GENERAL) bmAttributes 0x01 Sampling Frequency bLockDelayUnits 0 Undefined wLockDelay 0x0000 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 3 bAlternateSetting 4 bNumEndpoints 1 bInterfaceClass 1 Audio bInterfaceSubClass 2 Streaming bInterfaceProtocol 0 iInterface 0 AudioStreaming Interface Descriptor: bLength 7 bDescriptorType 36 bDescriptorSubtype 1 (AS_GENERAL) bTerminalLink 3 bDelay 2 frames wFormatTag 0x0001 PCM AudioStreaming Interface Descriptor: bLength 11 bDescriptorType 36 bDescriptorSubtype 2 (FORMAT_TYPE) bFormatType 1 (FORMAT_TYPE_I) bNrChannels 2 bSubframeSize 2 bBitResolution 16 bSamFreqType 1 Discrete tSamFreq[ 0] 32000 Endpoint Descriptor: bLength 9 bDescriptorType 5 bEndpointAddress 0x82 EP 2 IN bmAttributes 5 Transfer Type Isochronous Synch Type Asynchronous Usage Type Data wMaxPacketSize 0x0084 1x 132 bytes bInterval 4 bRefresh 0 bSynchAddress 0 bMaxBurst 0 AudioStreaming Endpoint Descriptor: bLength 7 bDescriptorType 37 bDescriptorSubtype 1 (EP_GENERAL) bmAttributes 0x01 Sampling Frequency bLockDelayUnits 0 Undefined wLockDelay 0x0000 Binary Object Store Descriptor: bLength 5 bDescriptorType 15 wTotalLength 0x0016 bNumDeviceCaps 2 USB 2.0 Extension Device Capability: bLength 7 bDescriptorType 16 bDevCapabilityType 2 bmAttributes 0x00000006 BESL Link Power Management (LPM) Supported SuperSpeed USB Device Capability: bLength 10 bDescriptorType 16 bDevCapabilityType 3 bmAttributes 0x00 wSpeedsSupported 0x000e Device can operate at Full Speed (12Mbps) Device can operate at High Speed (480Mbps) Device can operate at SuperSpeed (5Gbps) bFunctionalitySupport 2 Lowest fully-functional device speed is High Speed (480Mbps) bU1DevExitLat 10 micro seconds bU2DevExitLat 256 micro seconds can't get debug descriptor: Resource temporarily unavailable Device Status: 0x0000 (Bus Powered) ```

Logs:

ustreamer --log-level 3 --desired-fps 30 --device-timeout 30 -r 1280x720 --device /dev/video1 --host 0.0.0.0 --port 10006
-- INFO  [78384.219      main] -- Using internal blank placeholder
-- DEBUG [78384.219      main] -- Installing SIGINT handler ...
-- DEBUG [78384.219      main] -- Installing SIGTERM handler ...
-- DEBUG [78384.219      main] -- Ignoring SIGPIPE ...
-- DEBUG [78384.219      main] -- Binding HTTP to [0.0.0.0]:10006 ...
-- INFO  [78384.219      main] -- Listening HTTP on [0.0.0.0]:10006
-- INFO  [78384.219    stream] -- Using V4L2 device: /dev/video1
-- INFO  [78384.219    stream] -- Using desired FPS: 30
-- DEBUG [78384.219    stream] -- _stream_init_loop: stream->run->stop=0
-- INFO  [78384.219      http] -- Starting HTTP eventloop ...
================================================================================
-- DEBUG [78384.236      http] -- HTTP: Updating exposed frame (online=0) ...
-- VERB  [78384.236      http] -- HTTP: Exposed frame: online=0, exp_time=0.000000
-- INFO  [78384.394    stream] -- Device fd=8 opened
-- DEBUG [78384.396    stream] -- Querying device capabilities ...
-- INFO  [78384.396    stream] -- Using input channel: 0
-- DEBUG [78384.396    stream] -- Using TV standard: DEFAULT
-- DEBUG [78384.396    stream] -- Probing device format=YUYV, stride=2560, resolution=1280x720 ...
-- INFO  [78384.403    stream] -- Using resolution: 1280x720
-- INFO  [78384.403    stream] -- Using format: YUYV
-- DEBUG [78384.403    stream] -- Querying HW FPS ...
-- INFO  [78384.409    stream] -- Using HW FPS: 30
-- INFO  [78384.409    stream] -- Using IO method: MMAP
-- DEBUG [78384.409    stream] -- Requesting 5 device buffers for MMAP ...
-- INFO  [78384.412    stream] -- Requested 5 device buffers, got 5
-- DEBUG [78384.412    stream] -- Allocating device buffers ...
-- DEBUG [78384.412    stream] -- Calling ioctl(VIDIOC_QUERYBUF) for device buffer=0 ...
-- DEBUG [78384.412    stream] -- Mapping device buffer=0 ...
-- DEBUG [78384.412    stream] -- Calling ioctl(VIDIOC_QUERYBUF) for device buffer=1 ...
-- DEBUG [78384.412    stream] -- Mapping device buffer=1 ...
-- DEBUG [78384.412    stream] -- Calling ioctl(VIDIOC_QUERYBUF) for device buffer=2 ...
-- DEBUG [78384.412    stream] -- Mapping device buffer=2 ...
-- DEBUG [78384.412    stream] -- Calling ioctl(VIDIOC_QUERYBUF) for device buffer=3 ...
-- DEBUG [78384.412    stream] -- Mapping device buffer=3 ...
-- DEBUG [78384.412    stream] -- Calling ioctl(VIDIOC_QUERYBUF) for device buffer=4 ...
-- DEBUG [78384.412    stream] -- Mapping device buffer=4 ...
-- DEBUG [78384.412    stream] -- Calling ioctl(VIDIOC_QBUF) for buffer=0 ...
-- DEBUG [78384.412    stream] -- Calling ioctl(VIDIOC_QBUF) for buffer=1 ...
-- DEBUG [78384.412    stream] -- Calling ioctl(VIDIOC_QBUF) for buffer=2 ...
-- DEBUG [78384.412    stream] -- Calling ioctl(VIDIOC_QBUF) for buffer=3 ...
-- DEBUG [78384.412    stream] -- Calling ioctl(VIDIOC_QBUF) for buffer=4 ...
-- DEBUG [78384.412    stream] -- Device fd=8 initialized
-- DEBUG [78384.412    stream] -- Starting device capturing ...
-- INFO  [78384.658    stream] -- Capturing started
-- INFO  [78384.658    stream] -- Using JPEG quality: 80%
-- INFO  [78384.658    stream] -- Creating pool JPEG with 4 workers ...
-- DEBUG [78384.658      jw-0] -- Hello! I am a worker jw-0 ^_^
-- DEBUG [78384.658      jw-0] -- Worker jw-0 waiting for a new job ...
-- DEBUG [78384.658      jw-1] -- Hello! I am a worker jw-1 ^_^
-- DEBUG [78384.658      jw-2] -- Hello! I am a worker jw-2 ^_^
-- DEBUG [78384.658      jw-2] -- Worker jw-2 waiting for a new job ...
-- INFO  [78384.658    stream] -- Capturing ...
--------------------------------------------------------------------------------
-- DEBUG [78384.658    stream] -- Waiting for worker ...
-- DEBUG [78384.659    stream] -- Calling select() on video device ...
-- DEBUG [78384.659      jw-1] -- Worker jw-1 waiting for a new job ...
-- DEBUG [78384.659      jw-3] -- Hello! I am a worker jw-3 ^_^
-- DEBUG [78384.659      jw-3] -- Worker jw-3 waiting for a new job ...
-- DEBUG [78385.252      http] -- HTTP: Repeating exposed ...
-- DEBUG [78386.269      http] -- HTTP: Repeating exposed ...
-- DEBUG [78387.287      http] -- HTTP: Repeating exposed ...
-- DEBUG [78388.303      http] -- HTTP: Repeating exposed ...
-- DEBUG [78389.319      http] -- HTTP: Repeating exposed ...
-- DEBUG [78390.337      http] -- HTTP: Repeating exposed ...
-- DEBUG [78391.353      http] -- HTTP: Repeating exposed ...
-- DEBUG [78392.369      http] -- HTTP: Repeating exposed ...
-- DEBUG [78393.384      http] -- HTTP: Repeating exposed ...
-- DEBUG [78394.387      http] -- HTTP: Repeating exposed ...
-- DEBUG [78395.402      http] -- HTTP: Repeating exposed ...
-- DEBUG [78396.403      http] -- HTTP: Repeating exposed ...
-- DEBUG [78397.418      http] -- HTTP: Repeating exposed ...
-- DEBUG [78398.437      http] -- HTTP: Repeating exposed ...
-- DEBUG [78399.453      http] -- HTTP: Repeating exposed ...
-- DEBUG [78400.469      http] -- HTTP: Repeating exposed ...
-- DEBUG [78401.485      http] -- HTTP: Repeating exposed ...
-- DEBUG [78402.503      http] -- HTTP: Repeating exposed ...
-- INFO  [78402.881      http] -- HTTP: Registered client: [172.16.3.187]:63108, id=3351e2d17ed981aa; clients now: 1
-- DEBUG [78403.519      http] -- HTTP: Repeating exposed ...
-- DEBUG [78404.532      http] -- HTTP: Repeating exposed ...
-- DEBUG [78405.533      http] -- HTTP: Repeating exposed ...
-- DEBUG [78406.535      http] -- HTTP: Repeating exposed ...
-- DEBUG [78407.552      http] -- HTTP: Repeating exposed ...
-- DEBUG [78408.568      http] -- HTTP: Repeating exposed ...
-- DEBUG [78409.585      http] -- HTTP: Repeating exposed ...
-- DEBUG [78410.600      http] -- HTTP: Repeating exposed ...
-- DEBUG [78411.603      http] -- HTTP: Repeating exposed ...
-- DEBUG [78412.618      http] -- HTTP: Repeating exposed ...
-- DEBUG [78413.634      http] -- HTTP: Repeating exposed ...
-- DEBUG [78414.652      http] -- HTTP: Repeating exposed ...
-- DEBUG [78414.689    stream] -- Device select() --> 0
-- ERROR [78414.689    stream] -- Mainloop select() error: Success
-- INFO  [78414.689    stream] -- Destroying workers pool JPEG ...
-- DEBUG [78414.689      jw-0] -- Bye-bye (worker jw-0)
-- DEBUG [78414.689      jw-1] -- Bye-bye (worker jw-1)
-- DEBUG [78414.689      jw-2] -- Bye-bye (worker jw-2)
-- DEBUG [78414.689      jw-3] -- Bye-bye (worker jw-3)
-- DEBUG [78414.689    stream] -- Stopping device capturing ...
-- INFO  [78414.921    stream] -- Capturing stopped
-- DEBUG [78414.921    stream] -- Releasing device buffers ...
-- DEBUG [78414.921    stream] -- Closing device ...
-- INFO  [78414.922    stream] -- Device fd=8 closed
-- DEBUG [78414.922    stream] -- _stream_init_loop: stream->run->stop=0
================================================================================
-- INFO  [78414.922    stream] -- Device fd=8 opened
-- DEBUG [78414.922    stream] -- Querying device capabilities ...
-- INFO  [78414.922    stream] -- Using input channel: 0
-- DEBUG [78414.922    stream] -- Using TV standard: DEFAULT
-- DEBUG [78414.922    stream] -- Probing device format=YUYV, stride=2560, resolution=1280x720 ...
-- INFO  [78414.928    stream] -- Using resolution: 1280x720
-- INFO  [78414.928    stream] -- Using format: YUYV
-- DEBUG [78414.928    stream] -- Querying HW FPS ...
-- DEBUG [78414.934      http] -- HTTP: Updating exposed frame (online=0) ...
-- VERB  [78414.934      http] -- HTTP: Exposed frame: online=0, exp_time=0.000000
-- INFO  [78414.934    stream] -- Using HW FPS: 30
-- INFO  [78414.934    stream] -- Using IO method: MMAP
-- DEBUG [78414.934    stream] -- Requesting 5 device buffers for MMAP ...
-- INFO  [78414.937    stream] -- Requested 5 device buffers, got 5
-- DEBUG [78414.937    stream] -- Allocating device buffers ...
-- DEBUG [78414.937    stream] -- Calling ioctl(VIDIOC_QUERYBUF) for device buffer=0 ...
-- DEBUG [78414.937    stream] -- Mapping device buffer=0 ...
-- DEBUG [78414.937    stream] -- Calling ioctl(VIDIOC_QUERYBUF) for device buffer=1 ...
-- DEBUG [78414.937    stream] -- Mapping device buffer=1 ...
-- DEBUG [78414.938    stream] -- Calling ioctl(VIDIOC_QUERYBUF) for device buffer=2 ...
-- DEBUG [78414.938    stream] -- Mapping device buffer=2 ...
-- DEBUG [78414.938    stream] -- Calling ioctl(VIDIOC_QUERYBUF) for device buffer=3 ...
-- DEBUG [78414.938    stream] -- Mapping device buffer=3 ...
-- DEBUG [78414.938    stream] -- Calling ioctl(VIDIOC_QUERYBUF) for device buffer=4 ...
-- DEBUG [78414.938    stream] -- Mapping device buffer=4 ...
-- DEBUG [78414.938    stream] -- Calling ioctl(VIDIOC_QBUF) for buffer=0 ...
-- DEBUG [78414.938    stream] -- Calling ioctl(VIDIOC_QBUF) for buffer=1 ...
-- DEBUG [78414.938    stream] -- Calling ioctl(VIDIOC_QBUF) for buffer=2 ...
-- DEBUG [78414.938    stream] -- Calling ioctl(VIDIOC_QBUF) for buffer=3 ...
-- DEBUG [78414.938    stream] -- Calling ioctl(VIDIOC_QBUF) for buffer=4 ...
-- DEBUG [78414.938    stream] -- Device fd=8 initialized
-- DEBUG [78414.938    stream] -- Starting device capturing ...
-- INFO  [78415.184    stream] -- Capturing started
-- INFO  [78415.184    stream] -- Using JPEG quality: 80%
-- INFO  [78415.184    stream] -- Creating pool JPEG with 4 workers ...
-- DEBUG [78415.184      jw-0] -- Hello! I am a worker jw-0 ^_^
-- DEBUG [78415.184      jw-0] -- Worker jw-0 waiting for a new job ...
-- DEBUG [78415.184      jw-1] -- Hello! I am a worker jw-1 ^_^
-- DEBUG [78415.184      jw-2] -- Hello! I am a worker jw-2 ^_^
-- DEBUG [78415.184      jw-2] -- Worker jw-2 waiting for a new job ...
-- DEBUG [78415.184      jw-3] -- Hello! I am a worker jw-3 ^_^
-- DEBUG [78415.184      jw-3] -- Worker jw-3 waiting for a new job ...
-- DEBUG [78415.184      jw-1] -- Worker jw-1 waiting for a new job ...
-- INFO  [78415.184    stream] -- Capturing ...
--------------------------------------------------------------------------------
-- DEBUG [78415.184    stream] -- Waiting for worker ...
-- DEBUG [78415.184    stream] -- Calling select() on video device ...
-- DEBUG [78415.952      http] -- HTTP: Repeating exposed ...
-- DEBUG [78416.953      http] -- HTTP: Repeating exposed ...
-- DEBUG [78417.968      http] -- HTTP: Repeating exposed ...
-- DEBUG [78418.969      http] -- HTTP: Repeating exposed ...
-- DEBUG [78419.985      http] -- HTTP: Repeating exposed ...
-- DEBUG [78421.001      http] -- HTTP: Repeating exposed ...
-- DEBUG [78422.019      http] -- HTTP: Repeating exposed ...
-- DEBUG [78423.035      http] -- HTTP: Repeating exposed ...
-- DEBUG [78424.051      http] -- HTTP: Repeating exposed ...

v4l2-ctl --device=/dev/video4 --list-formats-ext:

ioctl: VIDIOC_ENUM_FMT
    Type: Video Capture

    [0]: 'YUYV' (YUYV 4:2:2)
        Size: Discrete 640x480
            Interval: Discrete 0.017s (60.000 fps)
            Interval: Discrete 0.033s (30.000 fps)
            Interval: Discrete 0.042s (24.000 fps)
            Interval: Discrete 0.050s (20.000 fps)
            Interval: Discrete 0.067s (15.000 fps)
            Interval: Discrete 0.100s (10.000 fps)
            Interval: Discrete 0.200s (5.000 fps)
        Size: Discrete 640x360
            Interval: Discrete 0.017s (60.000 fps)
            Interval: Discrete 0.033s (30.000 fps)
            Interval: Discrete 0.042s (24.000 fps)
            Interval: Discrete 0.050s (20.000 fps)
            Interval: Discrete 0.067s (15.000 fps)
            Interval: Discrete 0.100s (10.000 fps)
            Interval: Discrete 0.200s (5.000 fps)
        Size: Discrete 1280x720
            Interval: Discrete 0.017s (60.000 fps)
            Interval: Discrete 0.033s (30.000 fps)
            Interval: Discrete 0.042s (24.000 fps)
            Interval: Discrete 0.050s (20.000 fps)
            Interval: Discrete 0.067s (15.000 fps)
            Interval: Discrete 0.100s (10.000 fps)
            Interval: Discrete 0.200s (5.000 fps)
        Size: Discrete 1920x1080
            Interval: Discrete 0.017s (60.000 fps)
            Interval: Discrete 0.033s (30.000 fps)
            Interval: Discrete 0.042s (24.000 fps)
            Interval: Discrete 0.050s (20.000 fps)
            Interval: Discrete 0.067s (15.000 fps)
            Interval: Discrete 0.100s (10.000 fps)
            Interval: Discrete 0.200s (5.000 fps)
    [1]: 'MJPG' (Motion-JPEG, compressed)
        Size: Discrete 640x480
            Interval: Discrete 0.017s (60.000 fps)
            Interval: Discrete 0.033s (30.000 fps)
            Interval: Discrete 0.042s (24.000 fps)
            Interval: Discrete 0.050s (20.000 fps)
            Interval: Discrete 0.067s (15.000 fps)
            Interval: Discrete 0.100s (10.000 fps)
            Interval: Discrete 0.200s (5.000 fps)
        Size: Discrete 640x360
            Interval: Discrete 0.017s (60.000 fps)
            Interval: Discrete 0.033s (30.000 fps)
            Interval: Discrete 0.042s (24.000 fps)
            Interval: Discrete 0.050s (20.000 fps)
            Interval: Discrete 0.067s (15.000 fps)
            Interval: Discrete 0.100s (10.000 fps)
            Interval: Discrete 0.200s (5.000 fps)
        Size: Discrete 1280x720
            Interval: Discrete 0.017s (60.000 fps)
            Interval: Discrete 0.033s (30.000 fps)
            Interval: Discrete 0.042s (24.000 fps)
            Interval: Discrete 0.050s (20.000 fps)
            Interval: Discrete 0.067s (15.000 fps)
            Interval: Discrete 0.100s (10.000 fps)
            Interval: Discrete 0.200s (5.000 fps)
        Size: Discrete 1920x1080
            Interval: Discrete 0.017s (60.000 fps)
            Interval: Discrete 0.033s (30.000 fps)
            Interval: Discrete 0.042s (24.000 fps)
            Interval: Discrete 0.050s (20.000 fps)
            Interval: Discrete 0.067s (15.000 fps)
            Interval: Discrete 0.100s (10.000 fps)
            Interval: Discrete 0.200s (5.000 fps)
    [2]: 'H264' (H.264, compressed)
        Size: Discrete 640x480
            Interval: Discrete 0.017s (60.000 fps)
            Interval: Discrete 0.033s (30.000 fps)
            Interval: Discrete 0.042s (24.000 fps)
            Interval: Discrete 0.050s (20.000 fps)
            Interval: Discrete 0.067s (15.000 fps)
            Interval: Discrete 0.100s (10.000 fps)
            Interval: Discrete 0.200s (5.000 fps)
        Size: Discrete 640x360
            Interval: Discrete 0.017s (60.000 fps)
            Interval: Discrete 0.033s (30.000 fps)
            Interval: Discrete 0.042s (24.000 fps)
            Interval: Discrete 0.050s (20.000 fps)
            Interval: Discrete 0.067s (15.000 fps)
            Interval: Discrete 0.100s (10.000 fps)
            Interval: Discrete 0.200s (5.000 fps)
        Size: Discrete 1280x720
            Interval: Discrete 0.017s (60.000 fps)
            Interval: Discrete 0.033s (30.000 fps)
            Interval: Discrete 0.042s (24.000 fps)
            Interval: Discrete 0.050s (20.000 fps)
            Interval: Discrete 0.067s (15.000 fps)
            Interval: Discrete 0.100s (10.000 fps)
            Interval: Discrete 0.200s (5.000 fps)
        Size: Discrete 1920x1080
            Interval: Discrete 0.017s (60.000 fps)
            Interval: Discrete 0.033s (30.000 fps)
            Interval: Discrete 0.042s (24.000 fps)
            Interval: Discrete 0.050s (20.000 fps)
            Interval: Discrete 0.067s (15.000 fps)
            Interval: Discrete 0.100s (10.000 fps)
            Interval: Discrete 0.200s (5.000 fps)
    [3]: 'NV12' (Y/CbCr 4:2:0)
        Size: Discrete 640x480
            Interval: Discrete 0.017s (60.000 fps)
            Interval: Discrete 0.033s (30.000 fps)
            Interval: Discrete 0.042s (24.000 fps)
            Interval: Discrete 0.050s (20.000 fps)
            Interval: Discrete 0.067s (15.000 fps)
            Interval: Discrete 0.100s (10.000 fps)
            Interval: Discrete 0.200s (5.000 fps)
        Size: Discrete 640x360
            Interval: Discrete 0.017s (60.000 fps)
            Interval: Discrete 0.033s (30.000 fps)
            Interval: Discrete 0.042s (24.000 fps)
            Interval: Discrete 0.050s (20.000 fps)
            Interval: Discrete 0.067s (15.000 fps)
            Interval: Discrete 0.100s (10.000 fps)
            Interval: Discrete 0.200s (5.000 fps)
        Size: Discrete 1280x720
            Interval: Discrete 0.017s (60.000 fps)
            Interval: Discrete 0.033s (30.000 fps)
            Interval: Discrete 0.042s (24.000 fps)
            Interval: Discrete 0.050s (20.000 fps)
            Interval: Discrete 0.067s (15.000 fps)
            Interval: Discrete 0.100s (10.000 fps)
            Interval: Discrete 0.200s (5.000 fps)
        Size: Discrete 1920x1080
            Interval: Discrete 0.017s (60.000 fps)
            Interval: Discrete 0.033s (30.000 fps)
            Interval: Discrete 0.042s (24.000 fps)
            Interval: Discrete 0.050s (20.000 fps)
            Interval: Discrete 0.067s (15.000 fps)
            Interval: Discrete 0.100s (10.000 fps)
            Interval: Discrete 0.200s (5.000 fps)
charlesrg commented 2 years ago

Same issue here with a Logitech Brio 4K, similar to the Razor camera Tried many options, including increasing device timeout -m mjpeg / MJPEG. The strange part is that ffmpeg and stream also fail.

ffmpeg -y -f v4l2 -video_size 1280x720 -i /dev/video1 -r 0.2 -qscale:v 2 -update 1 /tmp/webcam.jpg streamer -c /dev/video1 -f rgb24 -r 3 -t 00:30:00 -o ./outfile.avi

`root@octoprint:~# ustreamer --device=/dev/video1 --device-timeout 5 --slowdown -r 640x480 --host 0.0.0.0 -- INFO [1949.188 main] -- Using internal blank placeholder -- INFO [1949.189 main] -- Listening HTTP on [0.0.0.0]:8080 -- INFO [1949.189 stream] -- Using V4L2 device: /dev/video1 -- INFO [1949.190 stream] -- Using desired FPS: 0 -- INFO [1949.190 http] -- Starting HTTP eventloop ...

-- INFO [1949.191 stream] -- Device fd=8 opened -- INFO [1949.191 stream] -- Using input channel: 0 -- INFO [1949.193 stream] -- Using resolution: 640x480 -- INFO [1949.193 stream] -- Using format: YUYV -- INFO [1949.196 stream] -- Using HW FPS: 0 -> 30 (coerced) -- INFO [1949.196 stream] -- Using IO method: MMAP -- INFO [1949.198 stream] -- Requested 5 device buffers, got 5 -- INFO [1950.035 stream] -- Capturing started -- INFO [1950.035 stream] -- Using JPEG quality: 80% -- INFO [1950.035 stream] -- Creating pool JPEG with 4 workers ... -- INFO [1950.036 stream] -- Capturing ... -- ERROR [1955.542 stream] -- Mainloop select() error: Success -- INFO [1955.542 stream] -- Destroying workers pool JPEG ... -- INFO [1955.671 stream] -- Capturing stopped -- INFO [1955.674 stream] -- Device fd=8 closed

-- INFO [1955.675 stream] -- Device fd=8 opened -- INFO [1955.675 stream] -- Using input channel: 0 -- INFO [1955.678 stream] -- Using resolution: 640x480 -- INFO [1955.678 stream] -- Using format: YUYV -- INFO [1955.680 stream] -- Using HW FPS: 0 -> 30 (coerced) -- INFO [1955.680 stream] -- Using IO method: MMAP -- INFO [1955.683 stream] -- Requested 5 device buffers, got 5 -- INFO [1956.534 stream] -- Capturing started -- INFO [1956.535 stream] -- Using JPEG quality: 80% -- INFO [1956.535 stream] -- Creating pool JPEG with 4 workers ... -- INFO [1956.535 stream] -- Capturing ... -- ERROR [1962.041 stream] -- Mainloop select() error: Success -- INFO [1962.041 stream] -- Destroying workers pool JPEG ... -- INFO [1962.171 stream] -- Capturing stopped -- INFO [1962.174 stream] -- Device fd=8 closed

-- INFO [1962.175 stream] -- Device fd=8 opened `

mdevaev commented 2 years ago

The strange part is that ffmpeg and stream also fail.

A driver issue maybe?

charlesrg commented 2 years ago

Sure, it's a problem on the SOC side. After moving from the USB3 to the USB2 port it worked. Not sure if others tried this. I posted the streamer and ffmpeg so others could try before blaming on ustreamer directly.

jdfalk commented 2 years ago

Well that's incredibly frustrating as I got it explicitly for it's USB 3 capabilities as I'm currently flooding the usb2 bus when I use it. Guess I'm just going to have to setup a pi to host this single camera. Thanks anyways I appreciate you looking into it. If you happen to know any USB3 cameras that do work well with ustreamer I'd appreciate the info. Thanks again.

mdevaev commented 2 years ago

I think you should report about this problem to the kernel/drvier developers. Just demonstrate that ffmpeg is not working too and they will fix it.

Ustreamer just implements V4L2 API so if it's not working, this is a fault of V4L2 subsystem. I can't fix it anyway.