The GNU/Linux client is a combination of a Video4Linux2 device driver and an executable app that will transfer the stream from the phone to the driver. The client is fairly simplistic and supports video only at this time. There are no limits on resolution, assuming you have DroidCamX on your phone you can stream up to 1080p and even higher if your phone/pc can handle it.
It’s assumed you are somewhat familiar with the system and how to use the Terminal. Please keep in mind other posts on the site are Windows oriented.
1. First remove any old versions of the client you have. Scroll down to the “Removal” section below.
2. Ensure the following dependencies are installed:
gcc make linux-headers-`uname -r`
3. Download and install the latest client:
echo "7775e36b5325dc1f32d485eb3cc72fd1 droidcam_latest.zip" | md5sum -c --
unzip droidcam_latest.zip -d droidcam && cd droidcam
If all goes well, you can ensure the device is installed via
lsmod | grep v4l2loopback_dc. You should see v4l2loopback_dc in the output.
Open up a V4L2 compatible program (VLC player, Skype, Cheese, etc) and you should see DroidCam listed as a video device (or it might be listed as /dev/video).
4. Start the
droidcam client via the Terminal, or create a launcher if you’re using gnome. There is also a simpler cli client:
droidcam-cli which you can use.
5. Check the connection post on how to connect. If all goes well, you should see the output in the chat application, and you’re done!
A note about USB connections: The latest version of the client will try to invoke
adb automatically, provided adb is installed.
Debian-based Linux users can do: sudo apt-get install adb
Fedora/SUSE-based Linux users can do: sudo yum install android-tools
The following commands are automatically executed by droidcam:
adb devices # Look in output for a connected device
adb forward tcp:$port tcp:$port # $port = specified port on the client
Update webcam resolution
1. Close any programs using the droidcam webcam. Unload the device driver:
sudo rmmod v4l2loopback_dc
2. Re-load it with new options (WIDTH and HEIGHT are numbers). :
sudo insmod /lib/modules/`uname -r`/kernel/drivers/media/video/v4l2loopback-dc.ko width=WIDTH height=HEIGHT
Standard sizes (Width x Height): 640×480, 960×720, 1280×720 (720p), 1920×1080 (1080p).
3. Restart the droidcam client to reload the settings, and test it out. You can keep changing the resolution.
4. Edit the text file /etc/modprobe.d/droidcam.conf with the new options to make the change stick.