The Linux module (prototype) is a combination of a Video4Linux2 device driver*, and an executable app that will transfer the stream from the phone to the driver.
This being Linux, it’s assumed you are somewhat familiar with the system. Text in blue should be executed in the Terminal. Also please keep in mind other posts on the blog are Windows oriented, I will try to include all Linux related info here.
3. Extract everything to the desktop or another folder. Make sure there are no spaces in the path.
4. Open up Terminal, cd ~/Desktop/droidcam-?? (or ~/whatever). A simple bash script is included that will automate the installation process.
Simply run sudo ./install 320 240 to install the client. sudo needed to register the device driver. 320 and 240 are optional, this is the output resolution for the webcam. Replace them with one of 320 240, 480 360, 640 480, or 960 720. You can change this anytime, so it’s best to make sure 320×240 works first.
The installer creates a settings directory as ~/.droidcam. If you’re running as root, make sure you move it to your standard users home directory.
If no errors are displayed, you can ensure the device is installed with lsmod.
5. Open up a V4L2 compatible program (VLC player, Skype, Cheese, etc) and you should see DroidCam listed as a video device.
6. Start droidcam via the Terminal, or create a launcher if you’re using gnome and add it to the “Applications” menu by going to System -> Preferences.
7. 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! Remember to delete the install folder from step 3.
Changing webcam output resolution
1. Close any programs using the droidcam webcam. Unload the device driver: sudo rmmod v4l2loopback-dc
2. Re-load it as follows: sudo insmod /lib/modules/`uname -r`/kernel/drivers/media/video/v4l2loopback-dc.ko width=WIDTH height=HEIGHT (Where WIDTH and HEIGHT are numbers).
Recommended options: 320×240, 480×360, 640×480, 960×720.
3. Edit the first line of the text file ~/.droidcam/settings so the frames are resized properly (specify the same resolution as in 2). Restart the client to reload the settings.
4. Test the webcam with whatever programs you wish. You can keep changing the resolution.
5. Edit the text file /etc/modules so the webcam gets reloaded with the new resolution after reboot.
See the Format Guide for extra info.
1. Close any running programs. Open the command line.
2. Unload the V4L driver: sudo rmmod v4l2loopback-dc. Make sure its gone via lsmod.
3. Delete the driver file and the client executable:
sudo rm -f /usr/bin/droidcam
sudo rm -f /lib/modules/`uname -r`/kernel/drivers/media/video/v4l2loopback-dc
4. Get rid of droidcam and ‘videodev’ in /etc/modules using your favorite text editor. (sudo gedit /etc/modules)
5. Delete ~/.droidcam/ folder