| 1 | # ===============
|
|---|
| 2 | # VirtualBox Log
|
|---|
| 3 | # ===============
|
|---|
| 4 | ...
|
|---|
| 5 | 119:08:58.902155 VUSB: Attached 'Webcam' to port 1 on RootHub#1 (FullSpeed)
|
|---|
| 6 | 119:08:59.128347 USBWEBCAM: request 0x80 0x06 0x0600 0x0000 10, cb 18
|
|---|
| 7 | 119:08:59.128926 USBWEBCAM: request 0x80 0x06 0x0600 0x0000 10, cb 18
|
|---|
| 8 | 119:08:59.129270 USBWEBCAM: request 0x80 0x06 0x0600 0x0000 10, cb 18
|
|---|
| 9 | 119:20:28.921386 VUSB: Detached 'Webcam' from port 1 on RootHub#1
|
|---|
| 10 | 119:20:32.274390 VUSB: Attached '00007ff9f9410a90[proxy 1908:2311]' to port 1 on RootHub#1 (HighSpeed)
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 | $ lsusb
|
|---|
| 14 | Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
|
|---|
| 15 | Bus 001 Device 006: ID 80ee:0030 VirtualBox
|
|---|
| 16 | Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
|
|---|
| 17 | $ lsusb -t
|
|---|
| 18 | /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M
|
|---|
| 19 | /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/8p, 480M
|
|---|
| 20 | |__ Port 1: Dev 6, If 0, Class=Video, Driver=uvcvideo, 12M
|
|---|
| 21 | |__ Port 1: Dev 6, If 1, Class=Video, Driver=uvcvideo, 12M
|
|---|
| 22 |
|
|---|
| 23 | $ dmesg
|
|---|
| 24 | ...
|
|---|
| 25 | [ +3.064803] usb 1-1: new full-speed USB device number 6 using xhci_hcd
|
|---|
| 26 | [ +0.014035] usb 1-1: New USB device found, idVendor=80ee, idProduct=0030
|
|---|
| 27 | [ +0.000008] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
|
|---|
| 28 | [ +0.000005] usb 1-1: Product: VirtualBox Webcam - UVC Camera (046d:0825)
|
|---|
| 29 | [ +0.000004] usb 1-1: Manufacturer: VirtualBox
|
|---|
| 30 | [ +0.000004] usb 1-1: SerialNumber: 6eef766aaba4069e
|
|---|
| 31 | [ +0.005067] uvcvideo: Found UVC 1.00 device VirtualBox Webcam - UVC Camera (046d:0825) (80ee:0030)
|
|---|
| 32 | [ +0.002180] input: VirtualBox Webcam - UVC Camera as /devices/pci0000:00/0000:00:0c.0/usb1/1-1/1-1:1.0/input/input49
|
|---|
| 33 | ...
|
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 | $ gst-launch-1.0 -v -m camerabin
|
|---|
| 37 | ...
|
|---|
| 38 | 0:00:00.205111196 15881 0x88fee00 INFO v4l2 v4l2_calls.c:596:gst_v4l2_open:<camerasrc-real-src-actual-src-v4l:src> Opened device 'VirtualBox Webcam - UVC Camera ' (/dev/video0) successfully
|
|---|
| 39 | 0:00:00.205164436 15881 0x88fee00 INFO GST_STATES gstelement.c:2676:gst_element_continue_state:<camerasrc-real-src-actual-src-v4l> completed state change to READY
|
|---|
| 40 | 0:00:00.205201023 15881 0x88fee00 INFO GST_STATES gstelement.c:2579:_priv_gst_element_state_changed:<camerasrc-real-src-actual-src-v4l> notifying about state-changed NULL to READY (VOID_PENDING pending)
|
|---|
| 41 | 0:00:00.205246302 15881 0x88fee00 INFO GST_STATES gstbin.c:2952:gst_bin_change_state_func:<camerasrc-real-src> child 'camerasrc-real-src-actual-src-v4l' changed state to 2(READY) successfully
|
|---|
| 42 | 0:00:00.206126777 15881 0x88fee00 INFO GST_PLUGIN_LOADING gstplugin.c:901:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/gstreamer-1.0/libgstvideocrop.so" loaded
|
|---|
| 43 |
|
|---|
| 44 | 0:00:00.206178091 15881 0x88fee00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:359:gst_element_factory_create: creating element "videocrop" named "src-crop"
|
|---|
| 45 |
|
|---|
| 46 | 0:00:00.206639376 15881 0x88fee00 INFO GST_ELEMENT_PADS gstutils.c:1774:gst_element_link_pads_full: trying to link element camerasrc-real-src:(any) to element src-crop:(any)
|
|---|
| 47 | 0:00:00.206685557 15881 0x88fee00 INFO GST_PADS gstutils.c:1035:gst_pad_check_link: trying to link camerasrc-real-src:src and src-crop:sink
|
|---|
| 48 | 0:00:00.206756325 15881 0x88fee00 INFO v4l2 gstv4l2object.c:1196:gst_v4l2_object_fill_format_list:<camerasrc-real-src-actual-src-v4l:src> got 1 format(s):
|
|---|
| 49 | 0:00:00.206792405 15881 0x88fee00 INFO v4l2 gstv4l2object.c:1202:gst_v4l2_object_fill_format_list:<camerasrc-real-src-actual-src-v4l:src> MJPG
|
|---|
| 50 | 0:00:00.207621489 15881 0x88fee00 INFO v4l2 gstv4l2object.c:4136:gst_v4l2_object_probe_caps:<camerasrc-real-src-actual-src-v4l:src> probed caps:
|
|---|
| 51 | image/jpeg, width=(int)1280, height=(int)960, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 25/1, 20/1, 15/1, 10/1, 5/1 };
|
|---|
| 52 | image/jpeg, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 25/1, 20/1, 15/1, 10/1, 5/1 };
|
|---|
| 53 | image/jpeg, width=(int)1184, height=(int)656, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 25/1, 20/1, 15/1, 10/1, 5/1 };
|
|---|
| 54 | image/jpeg, width=(int)960, height=(int)720, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 25/1, 20/1, 15/1, 10/1, 5/1 };
|
|---|
| 55 | image/jpeg, width=(int)1024, height=(int)576, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 25/1, 20/1, 15/1, 10/1, 5/1 };
|
|---|
| 56 | image/jpeg, width=(int)960, height=(int)544, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 25/1, 20/1, 15/1, 10/1, 5/1 };
|
|---|
| 57 | image/jpeg, width=(int)800, height=(int)600, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 25/1, 20/1, 15/1, 10/1, 5/1 };
|
|---|
| 58 | image/jpeg, width=(int)864, height=(int)480, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 25/1, 20/1, 15/1, 10/1, 5/1 };
|
|---|
| 59 | image/jpeg, width=(int)800, height=(int)448, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 25/1, 20/1, 15/1, 10/1, 5/1 };
|
|---|
| 60 | image/jpeg, width=(int)752, height=(int)416, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 25/1, 20/1, 15/1, 10/1, 5/1 };
|
|---|
| 61 | image/jpeg, width=(int)640, height=(int)480, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 25/1, 20/1, 15/1, 10/1, 5/1 };
|
|---|
| 62 | image/jpeg, width=(int)640, height=(int)360, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 25/1, 20/1, 15/1, 10/1, 5/1 };
|
|---|
| 63 | image/jpeg, width=(int)544, height=(int)288, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 25/1, 20/1, 15/1, 10/1, 5/1 };
|
|---|
| 64 | image/jpeg, width=(int)432, height=(int)240, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 25/1, 20/1, 15/1, 10/1, 5/1 };
|
|---|
| 65 | image/jpeg, width=(int)352, height=(int)288, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 25/1, 20/1, 15/1, 10/1, 5/1 };
|
|---|
| 66 | image/jpeg, width=(int)320, height=(int)240, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 25/1, 20/1, 15/1, 10/1, 5/1 };
|
|---|
| 67 | image/jpeg, width=(int)320, height=(int)176, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 25/1, 20/1, 15/1, 10/1, 5/1 };
|
|---|
| 68 | image/jpeg, width=(int)176, height=(int)144, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 25/1, 20/1, 15/1, 10/1, 5/1 };
|
|---|
| 69 | image/jpeg, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 25/1, 20/1, 15/1, 10/1, 5/1 }
|
|---|
| 70 |
|
|---|
| 71 | 0:00:00.207737128 15881 0x88fee00 INFO GST_PADS gstpad.c:4230:gst_pad_peer_query:<src-crop:src> pad has no peer
|
|---|
| 72 | 0:00:00.208131863 15881 0x88fee00 INFO GST_ELEMENT_PADS gstutils.c:1227:gst_element_get_compatible_pad:<src-crop> Could not find a compatible pad to link to camerasrc-real-src:src
|
|---|
| 73 | 0:00:00.208198762 15881 0x88fee00 INFO GST_PADS gstutils.c:1035:gst_pad_check_link: trying to link camerasrc-real-src:src and src-crop:sink
|
|---|
| 74 | 0:00:00.208244698 15881 0x88fee00 INFO GST_PADS gstpad.c:4230:gst_pad_peer_query:<src-crop:src> pad has no peer
|
|---|
| 75 | 0:00:00.208580080 15881 0x88fee00 INFO GST_PADS gstpad.c:4230:gst_pad_peer_query:<src-crop:src> pad has no peer
|
|---|
| 76 | 0:00:00.209010574 15881 0x88fee00 INFO GST_ELEMENT_PADS gstelement.c:920:gst_element_get_static_pad: found pad camerasrc-real-src:src
|
|---|
| 77 | 0:00:00.209119311 15881 0x88fee00 INFO GST_PADS gstutils.c:1588:prepare_link_maybe_ghosting: camerasrc-real-src and src-crop in same bin, no need for ghost pads
|
|---|
| 78 | 0:00:00.209174846 15881 0x88fee00 INFO GST_PADS gstpad.c:2378:gst_pad_link_prepare: trying to link camerasrc-real-src:src and src-crop:sink
|
|---|
| 79 | 0:00:00.209237310 15881 0x88fee00 INFO GST_PADS gstpad.c:4230:gst_pad_peer_query:<src-crop:src> pad has no peer
|
|---|
| 80 | 0:00:00.209487092 15881 0x88fee00 INFO GST_PADS gstpad.c:2434:gst_pad_link_prepare: caps are incompatible
|
|---|
| 81 | 0:00:00.209526143 15881 0x88fee00 INFO GST_PADS gstpad.c:2529:gst_pad_link_full: link between camerasrc-real-src:src and src-crop:sink failed: no common format
|
|---|
| 82 | 0:00:00.209583393 15881 0x88fee00 INFO GST_PARENTAGE gstbin.c:1799:gst_bin_remove_func:<camerasrc> removed child "src-crop"
|
|---|
| 83 | 0:00:00.209642419 15881 0x88fee00 WARN default camerabingeneral.c:87:gst_camerabin_add_element_full:<camerasrc> error: linking src-crop failed
|
|---|
| 84 | 0:00:00.209701572 15881 0x88fee00 INFO GST_ERROR_SYSTEM gstelement.c:2145:gst_element_message_full_with_details:<camerasrc> posting message: GStreamer error: negotiation problem.
|
|---|
| 85 | 0:00:00.209772949 15881 0x88fee00 INFO GST_ERROR_SYSTEM gstelement.c:2172:gst_element_message_full_with_details:<camerasrc> posted error message: GStreamer error: negotiation problem.
|
|---|
| 86 | ...
|
|---|
| 87 |
|
|---|
| 88 | # =======================================
|
|---|
| 89 | # after plugging camera as usb 3.0 device
|
|---|
| 90 | # =======================================
|
|---|
| 91 |
|
|---|
| 92 | $ dmesg
|
|---|
| 93 | [ +0.015087] usb 1-1: New USB device found, idVendor=1908, idProduct=2311
|
|---|
| 94 | [ +0.000011] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
|
|---|
| 95 | [ +0.000007] usb 1-1: Product: USB2.0 PC CAMERA
|
|---|
| 96 | [ +0.000006] usb 1-1: Manufacturer: Generic
|
|---|
| 97 | [ +0.010273] uvcvideo: Found UVC 1.00 device USB2.0 PC CAMERA (1908:2311)
|
|---|
| 98 | [ +0.000928] input: USB2.0 PC CAMERA as /devices/pci0000:00/0000:00:0c.0/usb1/1-1/1-1:1.0/input/input6
|
|---|
| 99 | [ +0.000266] usbcore: registered new interface driver uvcvideo
|
|---|
| 100 | [ +0.000002] USB Video Class driver (1.1.1)
|
|---|
| 101 |
|
|---|
| 102 | $ lsusb
|
|---|
| 103 | Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
|
|---|
| 104 | Bus 001 Device 002: ID 1908:2311 GEMBIRD
|
|---|
| 105 | Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
|
|---|
| 106 |
|
|---|
| 107 | $ lsusb -t
|
|---|
| 108 | /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M
|
|---|
| 109 | /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/8p, 480M
|
|---|
| 110 | |__ Port 1: Dev 2, If 0, Class=Video, Driver=uvcvideo, 480M
|
|---|
| 111 | |__ Port 1: Dev 2, If 1, Class=Video, Driver=uvcvideo, 480M
|
|---|
| 112 |
|
|---|
| 113 | $ gst-launch-1.0 -v -m camerabin
|
|---|
| 114 | ...
|
|---|
| 115 | 0:00:00.212138258 15913 0x92dee00 INFO v4l2 v4l2_calls.c:596:gst_v4l2_open:<camerasrc-real-src-actual-src-v4l:src> Opened device 'USB2.0 PC CAMERA' (/dev/video0) successfully
|
|---|
| 116 | 0:00:00.212170842 15913 0x92dee00 INFO GST_STATES gstelement.c:2676:gst_element_continue_state:<camerasrc-real-src-actual-src-v4l> completed state change to READY
|
|---|
| 117 | 0:00:00.212191958 15913 0x92dee00 INFO GST_STATES gstelement.c:2579:_priv_gst_element_state_changed:<camerasrc-real-src-actual-src-v4l> notifying about state-changed NULL to READY (VOID_PENDING pending)
|
|---|
| 118 | 0:00:00.212218418 15913 0x92dee00 INFO GST_STATES gstbin.c:2952:gst_bin_change_state_func:<camerasrc-real-src> child 'camerasrc-real-src-actual-src-v4l' changed state to 2(READY) successfully
|
|---|
| 119 | 0:00:00.212241405 15913 0x92dee00 INFO GST_STATES gstelement.c:2676:gst_element_continue_state:<camerasrc-real-src> completed state change to READY
|
|---|
| 120 | 0:00:00.212259731 15913 0x92dee00 INFO GST_STATES gstelement.c:2579:_priv_gst_element_state_changed:<camerasrc-real-src> notifying about state-changed NULL to READY (VOID_PENDING pending)
|
|---|
| 121 | 0:00:00.212820238 15913 0x92dee00 INFO GST_PLUGIN_LOADING gstplugin.c:901:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/gstreamer-1.0/libgstvideocrop.so" loaded
|
|---|
| 122 | 0:00:00.212854533 15913 0x92dee00 INFO GST_ELEMENT_FACTORY gstelementfactory.c:359:gst_element_factory_create: creating element "videocrop" named "src-crop"
|
|---|
| 123 | 0:00:00.213037873 15913 0x92dee00 INFO GST_ELEMENT_PADS gstelement.c:670:gst_element_add_pad:<GstBaseTransform@0x94ac890> adding pad 'sink'
|
|---|
| 124 | 0:00:00.213078939 15913 0x92dee00 INFO GST_ELEMENT_PADS gstelement.c:670:gst_element_add_pad:<GstBaseTransform@0x94ac890> adding pad 'src'
|
|---|
| 125 | 0:00:00.213134276 15913 0x92dee00 INFO GST_ELEMENT_PADS gstutils.c:1774:gst_element_link_pads_full: trying to link element camerasrc-real-src:(any) to element src-crop:(any)
|
|---|
| 126 | 0:00:00.213160913 15913 0x92dee00 INFO GST_PADS gstutils.c:1035:gst_pad_check_link: trying to link camerasrc-real-src:src and src-crop:sink
|
|---|
| 127 |
|
|---|
| 128 | 0:00:00.213203691 15913 0x92dee00 INFO v4l2 gstv4l2object.c:1196:gst_v4l2_object_fill_format_list:<camerasrc-real-src-actual-src-v4l:src> got 1 format(s):
|
|---|
| 129 | 0:00:00.213225446 15913 0x92dee00 INFO v4l2 gstv4l2object.c:1202:gst_v4l2_object_fill_format_list:<camerasrc-real-src-actual-src-v4l:src> YUYV
|
|---|
| 130 | 0:00:00.213341622 15913 0x92dee00 INFO v4l2 gstv4l2object.c:4136:gst_v4l2_object_probe_caps:<camerasrc-real-src-actual-src-v4l:src> probed caps:
|
|---|
| 131 | video/x-raw, format=(string)YUY2, width=(int)640, height=(int)480, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 15/1 };
|
|---|
| 132 | video/x-raw, format=(string)YUY2, width=(int)352, height=(int)288, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 15/1 };
|
|---|
| 133 | video/x-raw, format=(string)YUY2, width=(int)320, height=(int)240, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 15/1 };
|
|---|
| 134 | video/x-raw, format=(string)YUY2, width=(int)176, height=(int)144, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 15/1 };
|
|---|
| 135 | video/x-raw, format=(string)YUY2, width=(int)160, height=(int)120, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 30/1, 15/1 }
|
|---|
| 136 |
|
|---|
| 137 | 0:00:00.213374921 15913 0x92dee00 INFO GST_PADS gstpad.c:4230:gst_pad_peer_query:<src-crop:src> pad has no peer
|
|---|
| 138 | 0:00:00.213535035 15913 0x92dee00 INFO GST_PADS gstutils.c:1588:prepare_link_maybe_ghosting: camerasrc-real-src and src-crop in same bin, no need for ghost pads
|
|---|
| 139 | 0:00:00.213567003 15913 0x92dee00 INFO GST_PADS gstpad.c:2378:gst_pad_link_prepare: trying to link camerasrc-real-src:src and src-crop:sink
|
|---|
| 140 | 0:00:00.213598941 15913 0x92dee00 INFO GST_PADS gstpad.c:4230:gst_pad_peer_query:<src-crop:src> pad has no peer
|
|---|
| 141 | 0:00:00.213779221 15913 0x92dee00 INFO GST_PADS gstpad.c:2586:gst_pad_link_full: linked camerasrc-real-src:src and src-crop:sink, successful
|
|---|