Logitech Brio USB cam 'select timeout' while capturing

Hi developers,

i got an problem and i dont know how to fix it!

My challenge:
I want to apply images from my usb camera to my ROS system.

Therefor i tried two different ros nodes:

My Setup:

  • Jetson TX2 developer kit
  • JetPack-L4T-3.2 (28.2)
  • USB Cam: Logitech BRIO https://www.logitech.com/de-de/product/brio With dmesg on plug in:
    [ 8880.906574] input: Logitech BRIO as /devices/3530000.xhci/usb2/2-1/2-1:1.0/input/input8
    [ 8880.930531] usb 2-1: current rate 16000 is different from the runtime rate 24000
    [ 8880.947329] usb 2-1: current rate 16000 is different from the runtime rate 32000
    [ 8880.963010] usb 2-1: current rate 16000 is different from the runtime rate 48000
    [ 8880.987837] input: Logitech BRIO as /devices/3530000.xhci/usb2/2-1/2-1:1.4/0003:046D:085E.0002/input/input9
    [ 8881.051042] hid-generic 0003:046D:085E.0002: input,hidraw0: USB HID v1.11 Device [Logitech BRIO] on usb-3530000.xhci-1/input4
    [ 8881.146097] usb 2-1: current rate 16000 is different from the runtime rate 48000
    [ 8881.206969] usb 2-1: current rate 16000 is different from the runtime rate 48000
    [ 8881.286969] usb 2-1: current rate 16000 is different from the runtime rate 48000
    [ 8881.351051] usb 2-1: current rate 16000 is different from the runtime rate 48000
    [ 8881.403678] usb 2-1: current rate 16000 is different from the runtime rate 48000
    [ 8881.467123] usb 2-1: current rate 16000 is different from the runtime rate 48000
    
  • Ubuntu 16.04 with ROS kinetic

My Problem:
Both nodes arent working:

When launching usb_cam no images are published and the node is crashing after some seconds:

process[logitech_brio-2]: started with pid [8267]
[ INFO] [1527760233.897483730]: using default calibration URL
[ INFO] [1527760233.897671025]: camera calibration URL: file:///home/nvidia/.ros/camera_info/head_camera.yaml
[ INFO] [1527760233.897817904]: Unable to open camera calibration file [/home/nvidia/.ros/camera_info/head_camera.yaml]
[ WARN] [1527760233.897881967]: Camera calibration file /home/nvidia/.ros/camera_info/head_camera.yaml not found.
[ INFO] [1527760233.897955663]: Starting 'head_camera' (/dev/video1) at 640x480 via mmap (mjpeg) at 30 FPS
[mjpeg @ 0x4727b0] Changeing bps to 8
[swscaler @ 0x6034a0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x6034a0] No accelerated colorspace conversion found from yuv422p to rgb24.
[mjpeg @ 0x4727b0] mjpeg_decode_dc: bad vlc: 0:0 (0x472e60)
[mjpeg @ 0x4727b0] error dc
[mjpeg @ 0x4727b0] error y=45 x=20
[swscaler @ 0x605000] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x605000] No accelerated colorspace conversion found from yuv422p to rgb24.
[swscaler @ 0x60c1a0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x60c1a0] No accelerated colorspace conversion found from yuv422p to rgb24.
[mjpeg @ 0x4727b0] mjpeg_decode_dc: bad vlc: 0:0 (0x472e60)
[mjpeg @ 0x4727b0] error dc
[mjpeg @ 0x4727b0] error y=47 x=7
[swscaler @ 0x61ebe0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x61ebe0] No accelerated colorspace conversion found from yuv422p to rgb24.
[mjpeg @ 0x4727b0] Found EOI before any SOF, ignoring
[mjpeg @ 0x4727b0] No JPEG data found in image
[ERROR] [1527760236.667546042]: Error while decoding frame.
[mjpeg @ 0x4727b0] Found EOI before any SOF, ignoring
[mjpeg @ 0x4727b0] overread 8
[mjpeg @ 0x4727b0] overread 8
[swscaler @ 0x61ebe0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x61ebe0] No accelerated colorspace conversion found from yuv422p to rgb24.
[mjpeg @ 0x4727b0] mjpeg_decode_dc: bad vlc: 0:0 (0x472e60)
[mjpeg @ 0x4727b0] error dc
[mjpeg @ 0x4727b0] error y=28 x=15
[swscaler @ 0x61ebe0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x61ebe0] No accelerated colorspace conversion found from yuv422p to rgb24.
[swscaler @ 0x61ebe0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x61ebe0] No accelerated colorspace conversion found from yuv422p to rgb24.
[mjpeg @ 0x4727b0] mjpeg_decode_dc: bad vlc: 0:0 (0x472e60)
[mjpeg @ 0x4727b0] error dc
[mjpeg @ 0x4727b0] error y=25 x=39
[swscaler @ 0x61ebe0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x61ebe0] No accelerated colorspace conversion found from yuv422p to rgb24.
[swscaler @ 0x61ebe0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x61ebe0] No accelerated colorspace conversion found from yuv422p to rgb24.
[mjpeg @ 0x4727b0] Found EOI before any SOF, ignoring
[mjpeg @ 0x4727b0] No JPEG data found in image
[ERROR] [1527760239.999581182]: Error while decoding frame.
[mjpeg @ 0x4727b0] Found EOI before any SOF, ignoring
[mjpeg @ 0x4727b0] overread 8
[swscaler @ 0x61ebe0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x61ebe0] No accelerated colorspace conversion found from yuv422p to rgb24.
[mjpeg @ 0x4727b0] Found EOI before any SOF, ignoring
[mjpeg @ 0x4727b0] No JPEG data found in image
[ERROR] [1527760241.199585278]: Error while decoding frame.
[mjpeg @ 0x4727b0] Found EOI before any SOF, ignoring
[mjpeg @ 0x4727b0] No JPEG data found in image
[ERROR] [1527760241.863500201]: Error while decoding frame.
[swscaler @ 0x61ebe0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x61ebe0] No accelerated colorspace conversion found from yuv422p to rgb24.
[swscaler @ 0x61ebe0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x61ebe0] No accelerated colorspace conversion found from yuv422p to rgb24.
[ERROR] [1527760247.020780605]: select timeout
[logitech_brio-2] process has died [pid 8267, exit code 1, cmd /home/nvidia/ros_catkin_ws/devel/lib/usb_cam/usb_cam_node __name:=logitech_brio __log:=/home/nvidia/.ros/log/0f5a93e2-64b8-11e8-ac43-00044b8d1193/logitech_brio-2.log].
log file: /home/nvidia/.ros/log/0f5a93e2-64b8-11e8-ac43-00044b8d1193/logitech_brio-2*.log

cv_camera node is throwing the error “select timeout” and no image is published to the system.

I was tried https://www.raspberrypi.org/forums/viewtopic.php?t=35689 which is using

lsmod
rmmod uvcvideo
modprobe uvcvideo nodrop=1 timeout=5000

but the error is still there!

An Experiment:
I scripted 2 python scripts to check functionality of the USB cam:

  • The first one just captured one frame and saved it to file --> worked fine
  • The second one tried to capture a video (avi) and saved it to file --> "select timeout" occured and the video file wasn't playable

So what are possible approaches to solve this problem?

An addition:

v4l2-ctl -d /dev/video1 --all
Driver Info (not using libv4l2):
	Driver name   : uvcvideo
	Card type     : Logitech BRIO
	Bus info      : usb-3530000.xhci-1
	Driver version: 4.4.38
	Capabilities  : 0x84200001
		Video Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps   : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
	Width/Height      : 4096/2160
	Pixel Format      : 'MJPG'
	Field             : None
	Bytes per Line    : 0
	Size Image        : 17694720
	Colorspace        : sRGB
	Transfer Function : Default
	YCbCr Encoding    : Default
	Quantization      : Default
	Flags             : 
Crop Capability Video Capture:
	Bounds      : Left 0, Top 0, Width 4096, Height 2160
	Default     : Left 0, Top 0, Width 4096, Height 2160
	Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 4096, Height 2160
Selection: crop_bounds, Left 0, Top 0, Width 4096, Height 2160
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 30.000 (30/1)
	Read buffers     : 0
                     brightness (int)    : min=0 max=255 step=1 default=128 value=128
                       contrast (int)    : min=0 max=255 step=1 default=128 value=128
                     saturation (int)    : min=0 max=255 step=1 default=128 value=128
 white_balance_temperature_auto (bool)   : default=1 value=1
                           gain (int)    : min=0 max=255 step=1 default=0 value=0
           power_line_frequency (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature (int)    : min=2000 max=7500 step=10 default=4000 value=4470 flags=inactive
                      sharpness (int)    : min=0 max=255 step=1 default=128 value=128
         backlight_compensation (int)    : min=0 max=1 step=1 default=1 value=1
                  exposure_auto (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute (int)    : min=3 max=2047 step=1 default=250 value=312 flags=inactive
         exposure_auto_priority (bool)   : default=0 value=1
                   pan_absolute (int)    : min=-36000 max=36000 step=3600 default=0 value=0
                  tilt_absolute (int)    : min=-36000 max=36000 step=3600 default=0 value=0
                 focus_absolute (int)    : min=0 max=255 step=5 default=0 value=50 flags=inactive
                     focus_auto (bool)   : default=1 value=1
                  zoom_absolute (int)    : min=100 max=500 step=1 default=100 value=100

Does anybody know which driver is to use?

I can’t answer, but it seems to be a standard video class USB device not requiring special drivers. The only catch I see is that if you don’t run it as USB3 mode it can’t work with higher resolutions. If you run “lsusb -t” you will see a “5000M” after devices in USB3 mode, or “480M” after devices running in USB2 mode. The full-sized USB connector is the only one on the dev board supporting USB3, make sure it is there.

You could conserve some bandwidth by putting all other USB devices on the micro-OTG port…you’d need a micro-A-to-full-sized adapter and plug your USB HUB into that.

If everything is already at USB3 speeds then you can debug from there.

EDIT: Forgot to mention…run these too to max performance for testing:

sudo nvpmodel -m 0
sudo ~ubuntu/jetson_clocks.sh

Hi TimoK,
Please run ‘v4l2-ctl -d /dev/video1 --list-formats-ext’ and share information.

Thanks for reply,

I put the device on the USB3 connector and lsusb is showing that it is running as USB3. The camera is also the only device on the USB3 Connector. This is what lsusb-t shows:

lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-tegra/3p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Video, Driver=uvcvideo, 5000M
    |__ Port 1: Dev 2, If 1, Class=Video, Driver=uvcvideo, 5000M
    |__ Port 1: Dev 2, If 2, Class=Audio, Driver=snd-usb-audio, 5000M
    |__ Port 1: Dev 2, If 3, Class=Audio, Driver=snd-usb-audio, 5000M
    |__ Port 1: Dev 2, If 4, Class=Human Interface Device, Driver=usbhid, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-tegra/4p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 2: Dev 4, If 0, Class=Vendor Specific Class, Driver=ch341, 12M

I just put the cam to an Ubuntu 16.04 Desktop PC, but on it only USB2 is availlable. On the Desktop PC the cam is working (at least 640x480 30fps) . The lsusb -t is showing this entrys for the cam:

/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/3p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
        |__ Port 1: Dev 3, If 0, Class=Hub, Driver=hub/3p, 480M
            |__ Port 2: Dev 8, If 3, Class=Audio, Driver=snd-usb-audio, 480M
            |__ Port 2: Dev 8, If 1, Class=Video, Driver=uvcvideo, 480M
            |__ Port 2: Dev 8, If 2, Class=Audio, Driver=snd-usb-audio, 480M
            |__ Port 2: Dev 8, If 0, Class=Video, Driver=uvcvideo, 480M

Here is the output:

v4l2-ctl -d /dev/video1 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
	Index       : 0
	Type        : Video Capture
	Pixel Format: 'YUYV'
	Name        : YUYV 4:2:2
		Size: Discrete 640x480
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 160x120
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 176x144
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 320x180
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 320x240
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 352x288
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 340x340
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 424x240
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 440x440
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 480x270
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 640x360
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 800x448
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 800x600
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 848x480
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 960x540
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 1024x576
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 1280x720
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 1600x896
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 1920x1080
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)

	Index       : 1
	Type        : Video Capture
	Pixel Format: 'MJPG' (compressed)
	Name        : Motion-JPEG
		Size: Discrete 640x480
			Interval: Discrete 0.008s (120.000 fps)
			Interval: Discrete 0.011s (90.000 fps)
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 160x120
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 176x144
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 320x180
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 320x240
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 352x288
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 424x240
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 480x270
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 640x360
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 800x448
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 800x600
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 848x480
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 960x540
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 1024x576
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 1280x720
			Interval: Discrete 0.011s (90.000 fps)
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 1600x896
			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.133s (7.500 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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 2560x1440
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 3840x2160
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 4096x2160
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)

	Index       : 2
	Type        : Video Capture
	Pixel Format: 'NV12'
	Name        : Y/CbCr 4:2:0
		Size: Discrete 640x480
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 640x360
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 1280x720
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 1920x1080
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)

Hi TimoK,
Please try

$ gst-launch-1.0 v4l2src device=/dev/video1 ! video/x-raw,format=YUY2,width=640,height=480 ! nvvidconv ! 'video/x-raw(memory:NVMM),format=NV12' ! nvoverlaysink

Thanks DaneLLL,

the device LED is lightening permanently and the output is

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock

But How can i access it via opencv and so on?

Please refer to
https://devtalk.nvidia.com/default/topic/1024245/jetson-tx2/opencv-3-3-and-integrated-camera-problems-/post/5210735/#5210735
https://elinux.org/Jetson_TX2#Computer_Vision

It supports YUYV from 3.3 so your pipeline should be

v4l2src device=/dev/video1 ! video/x-raw,format=YUY2,width=640,height=480 ! appsink

Thanks for the links!

I followed the instruction and installed OpenCV 3.4.1 with JetsonHacks scripts.

After that i tried to run the following python script:

import numpy as np
import cv2

cap = cv2.VideoCapture("v4l2src device=/dev/video1 ! video/x-raw,format=YUY2,width=640,height=480 ! appsink")

# Define the codec and create VideoWriter object
fourcc = cv2.VideoWriter_fourcc(*'YUY2')
out = cv2.VideoWriter('output.avi',fourcc, 20.0, (640,480))

print(cap.isOpened());

while(cap.isOpened()):
    ret, frame = cap.read()
    if ret==True:

        # write the frame
        out.write(frame)

        if cv2.waitKey(1) & 0xFF == ord('q'):
            break
    else:
        break

# Release everything if job is finished
cap.release()
out.release()

The only error message that printed out is:

VIDEOIO ERROR: V4L: device v4l2src device=/dev/video1 ! video/x-raw,format=YUY2,width=640,height=480 ! appsink: Unable to query number of channels

If i run the script a second or third time i get this output:

VIDEOIO ERROR: V4L: device     v4l2src device=/dev/video1 ! video/x-raw,format=YUY2,width=640,height=480 ! appsink: Unable to query number of channels
libv4l2: error setting pixformat: Device or resource busy
OpenCV(3.4.1-dev) Error: Unspecified error (GStreamer: unable to start pipeline
) in cvCaptureFromCAM_GStreamer, file /home/nvidia/opencv/modules/videoio/src/cap_gstreamer.cpp, line 890
VIDEOIO(cvCreateCapture_GStreamer (CV_CAP_GSTREAMER_FILE, filename)): raised OpenCV exception:

OpenCV(3.4.1-dev) /home/nvidia/opencv/modules/videoio/src/cap_gstreamer.cpp:890: error: (-2) GStreamer: unable to start pipeline
 in function cvCaptureFromCAM_GStreamer

My assumptions:

  • I think i installed OpenCV with gstreamer support correctly, otherwise it would not run the script
  • The argument in VideoCapture() is not correct

What is wrong with that argument?

An additional information:
After I run this script, the LED on the cam is lighting all the time.

Not sure why it does not work. Other users may share experience.

We have verified the functionality with onboard cmaera:
https://devtalk.nvidia.com/default/topic/1024245/jetson-tx2/opencv-3-3-and-integrated-camera-problems-/post/5210735/#5210735
You can check if you can run this successfully.

Does the pipeline works from gst-launch-1.0 ?

gst-launch-1.0 v4l2src device=/dev/video1 ! 'video/x-raw,format=YUY2,width=640,height=480' ! xvimagesink

If not, you may check with video modes are available with:

v4l2-ctl -d /dev/video1 --list-formats-ext

Use one these as SRC (output) caps for v4l2src, you may convert with a later plugin if required. [EDIT: sorry I’ve seen later that @DaneLLL already asked these and you’ve provided outputs.]
You may also let gstreamer try to find itself:

gst-launch-1.0 v4l2src -v device=/dev/video1 ! xvimagesink

if you can see the video, one working mode has been found and just look at the traces (generated with -v).

You may also check where your build of opencv-3.4.1 has installed its headers and libs. When configuring opencv build, it is better to set CMAKE_INSTALL_PREFIX to something like /usr/local/opencv-3.4.1 and leave original version alone in /usr (or even better moving it, but that’s another topic). If you’ve run make install with a 3.4.1 build having CMAKE_INSTALL_PREFIX to /usr, you may have a mix and possibly trashed previous version.
So you may check what gives

ls /usr/lib/libopencv*

If you’ve installed opencv-3.4.1 in /usr/local/opencv-3.4.1, then you may try to set opencv libs paths for ld with:

export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64:/usr/local/opencv-3.4.1
python

If it doesn’t work, you may check the options your version was built with:

python
>>> import cv2
>>> print(cv2.getBuildInformation())

Thanks for your reply!

I tried to get an output with

but i get no output. Only a window is opened but it has no image in it.

Then i tried to select format automatically using

but i get no output too! Not even a window is opened.

I am wondering about the output of the following command. It isnt showing 3.4.1 libraries but as you will see later, it is installed in python!

nvidia@tegra-ubuntu:~$ ls /usr/lib/libopencv*
/usr/lib/libopencv_calib3d.so           /usr/lib/libopencv_flann.so.3.3        /usr/lib/libopencv_ml.so.3.3.1         /usr/lib/libopencv_superres.so
/usr/lib/libopencv_calib3d.so.3.3       /usr/lib/libopencv_flann.so.3.3.1      /usr/lib/libopencv_objdetect.so        /usr/lib/libopencv_superres.so.3.3
/usr/lib/libopencv_calib3d.so.3.3.1     /usr/lib/libopencv_highgui.so          /usr/lib/libopencv_objdetect.so.3.3    /usr/lib/libopencv_superres.so.3.3.1
/usr/lib/libopencv_core.so              /usr/lib/libopencv_highgui.so.3.3      /usr/lib/libopencv_objdetect.so.3.3.1  /usr/lib/libopencv_videoio.so
/usr/lib/libopencv_core.so.3.3          /usr/lib/libopencv_highgui.so.3.3.1    /usr/lib/libopencv_photo.so            /usr/lib/libopencv_videoio.so.3.3
/usr/lib/libopencv_core.so.3.3.1        /usr/lib/libopencv_imgcodecs.so        /usr/lib/libopencv_photo.so.3.3        /usr/lib/libopencv_videoio.so.3.3.1
/usr/lib/libopencv_dnn.so               /usr/lib/libopencv_imgcodecs.so.3.3    /usr/lib/libopencv_photo.so.3.3.1      /usr/lib/libopencv_video.so
/usr/lib/libopencv_dnn.so.3.3           /usr/lib/libopencv_imgcodecs.so.3.3.1  /usr/lib/libopencv_shape.so            /usr/lib/libopencv_video.so.3.3
/usr/lib/libopencv_dnn.so.3.3.1         /usr/lib/libopencv_imgproc.so          /usr/lib/libopencv_shape.so.3.3        /usr/lib/libopencv_video.so.3.3.1
/usr/lib/libopencv_features2d.so        /usr/lib/libopencv_imgproc.so.3.3      /usr/lib/libopencv_shape.so.3.3.1      /usr/lib/libopencv_videostab.so
/usr/lib/libopencv_features2d.so.3.3    /usr/lib/libopencv_imgproc.so.3.3.1    /usr/lib/libopencv_stitching.so        /usr/lib/libopencv_videostab.so.3.3
/usr/lib/libopencv_features2d.so.3.3.1  /usr/lib/libopencv_ml.so               /usr/lib/libopencv_stitching.so.3.3    /usr/lib/libopencv_videostab.so.3.3.1
/usr/lib/libopencv_flann.so             /usr/lib/libopencv_ml.so.3.3           /usr/lib/libopencv_stitching.so.3.3.1

The outputof this command shows the python environment. I think the problem is not the opencv installation, because i cannot open the pipeline correctly.

Python 3.5.2 (default, Nov 23 2017, 16:37:01) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> print(cv2.getBuildInformation())

General configuration for OpenCV 3.4.1-dev =====================================
  Version control:               3.4.1-9-gec0bb66

  Platform:
    Timestamp:                   2018-06-05T09:51:13Z
    Host:                        Linux 4.4.38 aarch64
    CMake:                       3.5.1
    CMake generator:             Unix Makefiles
    CMake build tool:            /usr/bin/make
    Configuration:               RELEASE

  CPU/HW features:
    Baseline:                    NEON FP16
      required:                  NEON
      disabled:                  VFPV3

  C/C++:
    Built as dynamic libs?:      YES
    C++ Compiler:                /usr/bin/c++  (ver 5.4.0)
    C++ flags (Release):         -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG  -DNDEBUG
    C++ flags (Debug):           -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -fvisibility-inlines-hidden -g  -O0 -DDEBUG -D_DEBUG
    C Compiler:                  /usr/bin/cc
    C flags (Release):           -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -O3 -DNDEBUG  -DNDEBUG
    C flags (Debug):             -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -g  -O0 -DDEBUG -D_DEBUG
    Linker flags (Release):      
    Linker flags (Debug):        
    ccache:                      NO
    Precompiled headers:         YES
    Extra dependencies:          dl m pthread rt /usr/lib/aarch64-linux-gnu/libGLU.so /usr/lib/aarch64-linux-gnu/libGL.so cudart nppc nppial nppicc nppicom nppidei nppif nppig nppim nppist nppisu nppitc npps cublas cufft -L/usr/local/cuda-9.0/lib64
    3rdparty dependencies:

  OpenCV modules:
    To be built:                 calib3d core cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev dnn features2d flann highgui imgcodecs imgproc java_bindings_generator ml objdetect photo python2 python3 python_bindings_generator shape stitching superres ts video videoio videostab viz
    Disabled:                    js world
    Disabled by dependency:      -
    Unavailable:                 java
    Applications:                tests perf_tests apps
    Documentation:               NO
    Non-free algorithms:         NO

  GUI: 
    QT:                          YES (ver 5.5.1)
      QT OpenGL support:         YES (Qt5::OpenGL 5.5.1)
    GTK+:                        NO
    OpenGL support:              YES (/usr/lib/aarch64-linux-gnu/libGLU.so /usr/lib/aarch64-linux-gnu/libGL.so)
    VTK support:                 YES (ver 6.2.0)

  Media I/O: 
    ZLib:                        /usr/lib/aarch64-linux-gnu/libz.so (ver 1.2.8)
    JPEG:                        /usr/lib/aarch64-linux-gnu/libjpeg.so (ver )
    WEBP:                        /usr/lib/aarch64-linux-gnu/libwebp.so (ver encoder: 0x0202)
    PNG:                         /usr/lib/aarch64-linux-gnu/libpng.so (ver 1.2.54)
    TIFF:                        /usr/lib/aarch64-linux-gnu/libtiff.so (ver 42 / 4.0.6)
    JPEG 2000:                   /usr/lib/aarch64-linux-gnu/libjasper.so (ver 1.900.1)
    OpenEXR:                     build (ver 1.7.1)

  Video I/O:
    DC1394:                      NO
    FFMPEG:                      YES
      avcodec:                   YES (ver 56.60.100)
      avformat:                  YES (ver 56.40.101)
      avutil:                    YES (ver 54.31.100)
      swscale:                   YES (ver 3.1.101)
      avresample:                NO
    GStreamer:                   
      base:                      YES (ver 1.8.3)
      video:                     YES (ver 1.8.3)
      app:                       YES (ver 1.8.3)
      riff:                      YES (ver 1.8.3)
      pbutils:                   YES (ver 1.8.3)
    libv4l/libv4l2:              1.10.0 / 1.10.0
    v4l/v4l2:                    linux/videodev2.h
    gPhoto2:                     NO

  Parallel framework:            pthreads

  Trace:                         YES (built-in)

  Other third-party libraries:
    Lapack:                      NO
    Eigen:                       YES (ver 3.2.92)
    Custom HAL:                  YES (carotene (ver 0.0.1))
    Protobuf:                    build (3.5.1)

  NVIDIA CUDA:                   YES (ver 9.0, CUFFT CUBLAS FAST_MATH)
    NVIDIA GPU arch:             62
    NVIDIA PTX archs:

  OpenCL:                        YES (no extra features)
    Include path:                /home/nvidia/opencv/3rdparty/include/opencl/1.2
    Link libraries:              Dynamic load

  Python 2:
    Interpreter:                 /usr/bin/python2.7 (ver 2.7.12)
    Libraries:                   /usr/lib/aarch64-linux-gnu/libpython2.7.so (ver 2.7.12)
    numpy:                       /usr/lib/python2.7/dist-packages/numpy/core/include (ver 1.11.0)
    packages path:               lib/python2.7/dist-packages

  Python 3:
    Interpreter:                 /usr/bin/python3 (ver 3.5.2)
    Libraries:                   /usr/lib/aarch64-linux-gnu/libpython3.5m.so (ver 3.5.2)
    numpy:                       /usr/lib/python3/dist-packages/numpy/core/include (ver 1.11.0)
    packages path:               lib/python3.5/dist-packages

  Python (for build):            /usr/bin/python2.7

  Java:                          
    ant:                         NO
    JNI:                         NO
    Java wrappers:               NO
    Java tests:                  NO

  Matlab:                        NO

  Install to:                    /usr/local
-----------------------------------------------------------------

As conclusion of your suggestion to check the pipeline i will check another camera that should work definitely on Jetson! If that camera isnt working as well, the fault will be in my setup or installation. If it is working, the Logitech Brio is the fault.

[EDIT]
This is realy interesting:
If im using the following command on my Ubuntu 16.4 desktop system, i get an image shown in a window as well. The output of the command is shown below! Why is GStreamer working on my desktop pc and not on the jetson?

/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = "video/x-raw\,\ format\=\(string\)YV12\,\ width\=\(int\)1920\,\ height\=\(int\)1080\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mode\=\(string\)progressive\,\ framerate\=\(fraction\)30/1"
/GstPipeline:pipeline0/GstXvImageSink:xvimagesink0.GstPad:sink: caps = "video/x-raw\,\ format\=\(string\)YV12\,\ width\=\(int\)1920\,\ height\=\(int\)1080\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mode\=\(string\)progressive\,\ framerate\=\(fraction\)30/1"

With this caps i tried to start on Jetson, but no image… The output is:

nvidia@tegra-ubuntu:~$ gst-launch-1.0 v4l2src device=/dev/video1 ! 'video/x-raw, format=(string)YV12, width=(int)1920, height=(int)1080, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)30/1' ! xvimagesink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0: Output window was closed
Additional debug info:
xvimagesink.c(555): gst_xv_image_sink_handle_xevents (): /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0
Execution ended after 0:01:24.359712993
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...

The output of --list-formats is different on desktop PC to Jetson too:

v4l2-ctl -d /dev/video1 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
	Index       : 0
	Type        : Video Capture
	Pixel Format: 'YUYV'
	Name        : YUYV 4:2:2
		Size: Discrete 640x480
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 160x120
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 176x144
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 320x180
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 320x240
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 352x288
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 340x340
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 424x240
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 440x440
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 480x270
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 640x360
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 800x448
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 800x600
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 848x480
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 960x540
			Interval: Discrete 0.067s (15.000 fps)
			Interval: Discrete 0.100s (10.000 fps)
			Interval: Discrete 0.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 1024x576
			Interval: Discrete 0.067s (15.000 fps)
			Interval: Discrete 0.100s (10.000 fps)
			Interval: Discrete 0.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 1280x720
			Interval: Discrete 0.100s (10.000 fps)
			Interval: Discrete 0.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 1600x896
			Interval: Discrete 0.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 1920x1080
			Interval: Discrete 0.200s (5.000 fps)

	Index       : 1
	Type        : Video Capture
	Pixel Format: 'MJPG' (compressed)
	Name        : Motion-JPEG
		Size: Discrete 640x480
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 160x120
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 176x144
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 320x180
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 320x240
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 352x288
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 424x240
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 480x270
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 640x360
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 800x448
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 800x600
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 848x480
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 960x540
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 1024x576
			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.133s (7.500 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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 1600x896
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 1920x1080
			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.133s (7.500 fps)
			Interval: Discrete 0.200s (5.000 fps)

Here some additional information to my GStreamer installation:

ON JETSON:

nvidia@tegra-ubuntu:~$     dpkg -l | grep gstreamer
ii  gir1.2-gstreamer-1.0                                     1.8.3-1~ubuntu0.1                                     arm64        GObject introspection data for the GStreamer library
ii  gstreamer1.0-alsa:arm64                                  1.8.3-1ubuntu0.2                                      arm64        GStreamer plugin for ALSA
ii  gstreamer1.0-clutter-3.0                                 3.0.18-1                                              arm64        Clutter PLugin for GStreamer 1.0
ii  gstreamer1.0-libav:arm64                                 1.8.3-1ubuntu0.2                                      arm64        libav plugin for GStreamer
ii  gstreamer1.0-plugins-bad-videoparsers:arm64              1.8.3-1ubuntu0.2                                      arm64        GStreamer videoparsers plugin from the "bad" set
ii  gstreamer1.0-plugins-base:arm64                          1.8.3-1ubuntu0.2                                      arm64        GStreamer plugins from the "base" set
ii  gstreamer1.0-plugins-base-apps                           1.8.3-1ubuntu0.2                                      arm64        GStreamer helper programs from the "base" set
ii  gstreamer1.0-plugins-good:arm64                          1.8.3-1ubuntu0.4                                      arm64        GStreamer plugins from the "good" set
ii  gstreamer1.0-pulseaudio:arm64                            1.8.3-1ubuntu0.4                                      arm64        GStreamer plugin for PulseAudio
ii  gstreamer1.0-tools                                       1.8.3-1~ubuntu0.1                                     arm64        Tools for use with GStreamer
ii  gstreamer1.0-x:arm64                                     1.8.3-1ubuntu0.2                                      arm64        GStreamer plugins for X11 and Pango
ii  libgstreamer-plugins-bad1.0-0:arm64                      1.8.3-1ubuntu0.2                                      arm64        GStreamer development files for libraries from the "bad" set
ii  libgstreamer-plugins-base1.0-0:arm64                     1.8.3-1ubuntu0.2                                      arm64        GStreamer libraries from the "base" set
ii  libgstreamer-plugins-base1.0-dev                         1.8.3-1ubuntu0.2                                      arm64        GStreamer development files for libraries from the "base" set
ii  libgstreamer-plugins-good1.0-0:arm64                     1.8.3-1ubuntu0.4                                      arm64        GStreamer development files for libraries from the "good" set
ii  libgstreamer1.0-0:arm64                                  1.8.3-1~ubuntu0.1                                     arm64        Core GStreamer libraries and elements
ii  libgstreamer1.0-dev                                      1.8.3-1~ubuntu0.1                                     arm64        GStreamer core development files
ii  libreoffice-avmedia-backend-gstreamer                    1:5.1.6~rc2-0ubuntu1~xenial3                          arm64        GStreamer backend for LibreOffice

ON MY DESKTOP PC:

timo@timo-Latitude-E6320:~$     dpkg -l | grep gstreamer
ii  gir1.2-gstreamer-1.0                          1.8.3-1~ubuntu0.1                                     amd64        GObject introspection data for the GStreamer library
ii  gstreamer1.0-alsa:amd64                       1.8.3-1ubuntu0.2                                      amd64        GStreamer plugin for ALSA
ii  gstreamer1.0-clutter-3.0                      3.0.18-1                                              amd64        Clutter PLugin for GStreamer 1.0
ii  gstreamer1.0-fluendo-mp3:amd64                0.10.32.debian-1                                      amd64        Fluendo mp3 decoder GStreamer 1.0 plugin
ii  gstreamer1.0-libav:amd64                      1.8.3-1ubuntu0.2                                      amd64        libav plugin for GStreamer
ii  gstreamer1.0-plugins-bad-faad:amd64           1.8.3-1ubuntu0.2                                      amd64        GStreamer faad plugin from the "bad" set
ii  gstreamer1.0-plugins-bad-videoparsers:amd64   1.8.3-1ubuntu0.2                                      amd64        GStreamer videoparsers plugin from the "bad" set
ii  gstreamer1.0-plugins-base:amd64               1.8.3-1ubuntu0.2                                      amd64        GStreamer plugins from the "base" set
ii  gstreamer1.0-plugins-base-apps                1.8.3-1ubuntu0.2                                      amd64        GStreamer helper programs from the "base" set
ii  gstreamer1.0-plugins-good:amd64               1.8.3-1ubuntu0.4                                      amd64        GStreamer plugins from the "good" set
ii  gstreamer1.0-plugins-ugly:amd64               1.8.3-1ubuntu0.1                                      amd64        GStreamer plugins from the "ugly" set
ii  gstreamer1.0-plugins-ugly-amr:amd64           1.8.3-1ubuntu0.1                                      amd64        GStreamer plugins from the "ugly" set
ii  gstreamer1.0-pulseaudio:amd64                 1.8.3-1ubuntu0.4                                      amd64        GStreamer plugin for PulseAudio
ii  gstreamer1.0-tools                            1.8.3-1~ubuntu0.1                                     amd64        Tools for use with GStreamer
ii  gstreamer1.0-x:amd64                          1.8.3-1ubuntu0.2                                      amd64        GStreamer plugins for X11 and Pango
ii  libgstreamer-plugins-bad1.0-0:amd64           1.8.3-1ubuntu0.2                                      amd64        GStreamer development files for libraries from the "bad" set
ii  libgstreamer-plugins-base1.0-0:amd64          1.8.3-1ubuntu0.2                                      amd64        GStreamer libraries from the "base" set
ii  libgstreamer-plugins-base1.0-dev              1.8.3-1ubuntu0.2                                      amd64        GStreamer development files for libraries from the "base" set
ii  libgstreamer-plugins-good1.0-0:amd64          1.8.3-1ubuntu0.4                                      amd64        GStreamer development files for libraries from the "good" set
ii  libgstreamer1.0-0:amd64                       1.8.3-1~ubuntu0.1                                     amd64        Core GStreamer libraries and elements
ii  libgstreamer1.0-dev                           1.8.3-1~ubuntu0.1                                     amd64        GStreamer core development files
ii  libreoffice-avmedia-backend-gstreamer         1:5.1.6~rc2-0ubuntu1~xenial3                          amd64        GStreamer backend for LibreOffice
ii  phonon-backend-gstreamer:amd64                4:4.8.2-0ubuntu2                                      amd64        Phonon GStreamer 1.0 backend
ii  phonon-backend-gstreamer-common:amd64         4:4.8.2-0ubuntu2                                      amd64        Phonon GStreamer 1.0.x backend icons

I skripted your code to python and tested it. It worked well with onboard camera!

I forgot to mention, but for using gstreamer with xvimagesink plugin, you need to have a display and GUI.
If you are in console mode, or from ssh without X forwarding it wouldn’t work.

Are you able to configure and see videocapture with qv4l2 (can be installed through apt) ?
This should allow to quickly test different configurations and find a working one.

You may also check if a firmware update is available for your webcam.

Last, you may try to have only the camera on full size USB3 port. MicroUSB is USB2 max.

Thanks, but i know about that!

On my desktop PC qv4l2 works well. I can set properties and can see the image while capturing. When i start qv4l2 on Jetson, i can see the same properties as shown on my desktop PC. But if if start capturing i cannot see an image. There is only a green background in the created window…

I will try it! I will hand in the information about success later.

I put it as only device on USB3 Port. All other devices are connected via micro USB2 otg HUB.

Now i updated my Logitech Brio Firmware from 1.0.379 up to 1.0.423. I cannot believe it: It works!

For everyone who wants to work with Logitech Brio on Jetson and OpenCV, here is a summary of this task:

  • Need to update the camera firmware up tp 1.0.423
  • Let camera be the only device on USB3 port
  • Install OpenCV 3.4 with GStreamer support: https://github.com/jetsonhacks/buildOpenCVTX2
  • This is the cap for opencv ``` v4l2src device=/dev/video1 ! video/x-raw,format=YUY2,width=640,height=480 ! appsink ```
  • Usefull tool for camera configuration: qv4l2

My next challenge is to use cv_camera (ROS) with GStreamer! I’ll work on it the next time but thats not the topic of this thread. Therefor I will close this thread.

Thanks to everyone!