Install DroidCam OBS Plugin (not Flatpak) on Ubuntu Studio

Some time now DroidCAM plugin for OBS is available via Flatpak on Ubuntu Studio. That’s not my route, nothing against Flatpak here.

Info I find on webpage: https://droidcam.app/linux/ made me not redo my “production build” with Flatpak support.

As my OBS v32.0.2 setup is installed from official project PPA, I need to go to Droid Cam git repo and select appropriate release.

https://github.com/dev47apps/droidcam-obs-plugin/releases

Instructions say to match my “ffmpeg -version” with plugin release package version.
My “ffmpeg -version” is 6 (libavcodec 60. 31.102 / 60. 31.102). That matches latest compatible plugin release version 2.3.4 “droidcam_obs_2.3.2_linux_flatpak.zip”.

I download that one and extracted archive contents. Now there I can read more info in”README.txt” and examine the install script “install.sh”.

On my setup that install script fails to install plugin. But at least I have the compatible plugin files that I have to copy to my OBS install directory.
Just as I did previously for RTSP Server plugin and others I use, so far.

I need terminal to complete plugin installation manually as a “root” or “SuperUser” since File Manager (Dolphin) is restricted to do so with.

Important plugin files and a directory are in sub-dir “droidcam-obs” are created after I extracted plugin archive.

“droidcam-obs.so” from “/home/xxxuser/Downloads/droidcam_obs_2.3.2_linux_flatpak/droidcam-obs/bin/64bit” goes in “/usr/lib/x86_64-linux-gnu/obs-plugins/”

AND

(Here I’m guessing)
Everything, including files and directories from “/home/xxxuser/Downloads/droidcam_obs_2.3.2_linux_flatpak/droidcam-obs/data/” goes into “/usr/share/obs/obs-plugins/droidcam-obs/”, where “droidcam-obs” needs to be created first in “/usr/share/obs/obs-plugins/”.

First I’ll move “droidcam-obs.so” to target directory with “mv *” command.
To do that I right click in Dolphin on “64bit” icon (directory) in “/bin/” directory and select “Open Terminal Here”. Now in that terminal I input command:
“sudo mv * /usr/lib/x86_64-linux-gnu/obs-plugins/”

Second I’ll create a plugin directory “droidcam-obs” in “/usr/share/obs/obs-plugins/” with next input in terminal:
“sudo mkdir -p /usr/share/obs/obs-plugins/droidcam-obs/”

Now I can open new terminal window from Dolphin same way as previously to move everything into just created directory from “/home/xxxuser/Downloads/droidcam_obs_2.3.2_linux_flatpak/droidcam-obs/data/” with “mv *” command:
“sudo mv * /usr/share/obs/obs-plugins/droidcam-obs/”

Now I can start OBS Studio and check is it registered by OBS plugin manager.

And yes it is listed in manager and available via “Add Source” as “DroidCam OBS”.

That is not all. Instructions on website and on git for the plugin “say”, we need:

So, let’s do that now!

Install “adb” for Android USB support (FIRST)

On my Ubuntu Studio that will be accomplished in terminal via commands:
“sudo apt install adb”

Install and configure the V4L2loopback Module (SECOND)

Via next terminal commands:
“sudo apt install linux-headers-$(uname -r) v4l2loopback-dkms”

https://github.com/v4l2loopback/v4l2loopback – has all info about the module.

Few last words.

Maybe “V4L2loopback” isn’t required for DroidCam OBS plugin to work, it might be it’s just for
DroidCam Client app.

Most important is to enable debugging on ones Android device as explained here:
https://droidcam.app/obs/usage/# in the “Android setup” section.

Here are the instructions how to use it with OBS: https://droidcam.app/obs/usage/

NOW. Test run!

It WORKS!! LFG!

This post is also available in es_ES, fr_FR, hi_IN, pt_BR and zh_TW.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *