Forked from robinsmidsrod/gist:d2bdb98110e56f1a0f55adcbd593c371
Created
June 12, 2023 10:40
-
-
Save gema-arta/3399c2028d9471582e23d2836597b482 to your computer and use it in GitHub Desktop.
USB-over-IP for sharing webcam over local network
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# server - make a device available remotely | |
apt install linux-tools-common linux-tools-generic hwdata | |
modprobe usbip-core | |
modprobe usbip-host | |
usbipd -D # (runs in background) | |
usbip list -l | |
usbip bind -b <busid> | |
# client - attach to remote device | |
apt install linux-tools-common linux-tools-generic-hwe-18.04 hwdata | |
modprobe usbip-core | |
modprobe vhci-hcd | |
usbip list -r <server> | |
usbip attach -r <server> -b <busid> | |
usbip port | |
usbip detach -p <port> | |
# server - remove a shared device | |
usbip list -r localhost | |
usbip unbind -b <busid> | |
pkill usbipd | |
More information here: http://usbip.sourceforge.net/ | |
README with older usbip tool examples: https://sourceforge.net/p/usbip/git-windows/ci/master/tree/trunk/userspace/README | |
A single camera with 640x480 resolution uses approx. 150Mbps, so no go on most wi-fi (2.4GHz). If you try to connect it up on a connection without enough bandwidth, you'll see the camera, but image will not show up at all in cheese application. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment