Closed eliasstepanik closed 2 years ago
i have the same error
Please try option -m jpeg
or -m mjpeg
.
I can only use yuvv
Which camera do you use?
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
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)
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
-- INFO [1962.175 stream] -- Device fd=8 opened `
The strange part is that ffmpeg and stream also fail.
A driver issue maybe?
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.
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.
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.
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