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 on the command line. Also please keep in mind other posts on the blog are Windows oriented, I will try to include all Linux related stuff here.
1. You must first remove any old versions of the client you have. Scroll down to the “Removal” section below.
3. Open up the command line, cd ~/Desktop/ (or ~/whatever).
A simple shell script is included that will automate the installation process.
NOTE: The default “droidcam webcam” output resolution will be reported as 320×240 to the system.
Using a higher resolution on the phone will cause the video to be RESIZED DOWN to fit in the webcam.
If you have a fast computer, with preferably a wired connection, you can use a higher resolution for the webcam.
320×240, 480×360, or 640×480 (Normal, Medium, High respectively) are the “standard” ones.
Simply run sudo ./install [320 240] to install the client. su needed to register the device driver. 320 and 240 are optional, replace them with one of the above if you have a fast computer).
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.
4. Open up a V4L compatible program and you should see DroidCam listed as a video device.
5. Start droidcam from the command line. You can also create a launcher if you’re using gnome and add it to the “Applications” menu by going to System -> Preferences. (Don’t know about kde).
6. 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 extracted folder.
You can also check this if you have VLC or ‘amd64′ (ebuild) problems: http://bugs.gentoo.org/339780.
Changing webcam output resolution
See the Format Guide for extra info.
Regardless of what resolution you pick on the phone, the client will resize the frames to fit into the webcam. So if the webcam is installed with 320×240, then using a higher resolution on the phone doesn’t really help much. If you want to try different resolutions without having to re-install the client:
1. Unload the device driver: sudo rmmod droidcam_v4l
2. Re-load it as follows: /sbin/insmod /lib/modules/`uname -r`/kernel/drivers/media/video/droidcam_v4l.ko width=WIDTH height=HEIGHT (Where WIDTH and HEIGHT are numbers).
3. Edit the first line of the text file ~/.droidcam/settings so the client programs knows how to re-size the frames (specify the same resolution as in 2). Restart ‘droidcam’.
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 on boot.
To remove the DroidCam client (or existing old version):
1. Close any running programs. Open the command line.
2. Unload the V4L driver: sudo rmmod droidcam_v4l
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/droidcam_v4l.ko
4. Get rid of droidcam and ‘videodev’ in /etc/modules using your favorite text editor. (sudo gedit /etc/modules)
5. Delete ~/.droidcam/ folder
You may wish to restart the computer.
- Client re-designed.
- ADB.exe included with the install
- Other tweaks
Please replace the droidcam binary file found in /usr/bin/ with the new version: 32-bit (x86) OR 64-bit (x64). The new executable has version checks removed so you won’t have to do this with future updates unless necessary.
DroidCamX supports various video formats and resolutions.
- Format A is the original format used by DroidCam. It uses least CPU but a lot of network. Unless you have perfect WiFi it might not be very smooth. Resolutions over 400×300 are over-kill and are disabled. At home, it should work great for most users and will drain least battery.
- Format B used advanced video encoding and uses minimal network (about 100x less than Format A!). This comes at the cost of a lot computation (high CPU usage). There is also a delay introduced due to video buffering. Use this for slower connections.
- Format C is the best of both. It uses some CPU and about 10x less network than Format A. Support for this was added in Android 2.2 (FroYo) so if you are running Android 2.1 unfortunately you cannot use this format.
i. Download and Install the Windows Client: DroidCam v3.6.
- You may get a Windows Security warning, asking for your permission to install the Audio Driver – click Install.
- You *may* get a blue screen error (especially on VISTA) – don’t worry, it’s not as critical as it may seem. It’s important to close all programs before installation. This is due to the audio driver.
- If you are using a 64-bit version of Windows, you will likely get another warning message, stating that the audio driver is not “signed” and has been disabled. This just means audio will not work, video/webcam should work just fine regardless. The bottom of this post has more info on that.
- You’ll find a shortcut to DroidCam client under Start Menu -> All Programs.
- Chat programs (eg. Skype/Yahoo/MSN/Live) should now recognize “DroidCam” as a webcam.
- If the audio driver didn’t get disabled – you should also be able to pick droidcam as your “microphone”.
- Do not tick all the options in the client!
- Keep Audio disabled unless you intend to use it, otherwise you’re just wasting battery.
ii. Check the connection post to find out the various ways you can connect your phone to the PC.
Audio Driver and 64-bit Windows
Read this if you received a warning after the installation regarding the driver not being signed. If you wish to try out the audio feature, you can temporarily disable driver signing enforcement as follows:
(you may wish to put these down on paper)
1. Restart the computer. When it begins to boot, keep tapping the [F8] key.
2. You will be presented with an advanced Windows start up screen. Use the DOWN arrow key to select the last option: “Disable Driver Signature Enforcement”. Press Enter.
DroidCam should now be listed as a microphone.
Unfortunately, you must do this every time you restart the computer.
Others have created various permanent workarounds – you can do some research if you wish.
Why is audio not properly supported?
Waiting on this: http://code.google.com/p/android/issues/detail?id=3434