Professional Documents
Culture Documents
Using your
Android phone
as a webcam
for Ubuntu
20.04 with
DroidCam
During the current pandemic, the home
of�ce suddenly became the preferred
1 of 6 29/07/2020 10:41
Using your Android phone as a webcam for Ubu... https://randomblog.hu/using-your-android-phon...
Setting up DroidCam
1. Install the app on your phone
2. Follow the of�cial instructions to
install DroidCam on your
computer or use this redacted list
of commands in the terminal:
sudo apt-get install gcc
make
cd /tmp/
wget
https://www.dev47apps.com
2 of 6 29/07/2020 10:41
Using your Android phone as a webcam for Ubu... https://randomblog.hu/using-your-android-phon...
/�les/linux
/droidcam_latest.zip
unzip droidcam_latest.zip
-d droidcam && cd
droidcam
sudo ./install
3. Check if the new video device is
available with the following
command:
lsmod | grep v4l2loopback_dc
4. Start DroidCam on your phone
and note Wi� IP address shown
on the screen.
5. Start DroidCam on your computer
with the following command in
the terminal:
droidcam
6. Enter the IP address you saw in
step 4 in the Phone IP �eld and
click on the [Connect] button.
7. Test the video on your preferred
video call software. Should work
in the default Ubuntu camera app
called Cheese too. Success
depends on your phone model
and resolution, for me, Skype and
Cheese doesn’t seem to work, but
Discord, Google Meet, and VLC
does.
8. Modify the webcam capture
resolution by editing the following
�le if you are not satis�ed with
the defaults:
3 of 6 29/07/2020 10:41
Using your Android phone as a webcam for Ubu... https://randomblog.hu/using-your-android-phon...
/etc/modprobe.d/droidcam.conf
In my case, 1920×1080 worked
perfectly.
9. Create a shortcut to start
DroidCam more easily. To do this
use the following command in the
terminal…
gedit ~/.local/share/applications
/droidcam.desktop
… and copy the following lines into
the editor and save the �le:
[Desktop Entry]
Type=Application
Name=Droidcam
Comment=Use your Android
phone as a wireless webcam!
Icon=droidcam
Exec=/usr/bin/droidcam
Terminal=false
Categories=GNOME;GTK;Video;
10. Grab a png or svg icon for
DroidCam and save it to the
.local/share/icons folder.
Caveats
I �rst played with DroidCam yesterday
4 of 6 29/07/2020 10:41
Using your Android phone as a webcam for Ubu... https://randomblog.hu/using-your-android-phon...
Update: Switching to
ADB
My Ubuntu installation decided today
that it will not connect to wi� anymore.
I’m not too sad, as I’m using a wired
anyway and the wi� stick was an extra
addition just for DroidCam.
5 of 6 29/07/2020 10:41
Using your Android phone as a webcam for Ubu... https://randomblog.hu/using-your-android-phon...
6 of 6 29/07/2020 10:41