How to Install the DroidCam OBS Plugin on Ubuntu Studio

Installing the DroidCam OBS Plugin on Ubuntu Studio can be done easily if you follow the right steps. This guide details a straightforward approach without relying on Flatpak, making it more suitable for your typical production build.


Prerequisites

Before you begin, ensure you have the following:

  • A working installation of OBS Studio from the official project PPA.
  • Open terminal access as a root or Super User.
  • Compatible FFmpeg version.

Step 1: Check Your FFmpeg Version

To install the appropriate version of the DroidCam OBS Plugin, you first need to confirm your FFmpeg version. Open the terminal and run:

ffmpeg -version

Ensure that it matches the required version for the plugin release. For instance, if your version is 6 (libavcodec 60.31.102), you need to download the plugin version 2.3.4.


Step 2: Download the Plugin

Visit the official DroidCam GitHub repository to locate the latest compatible plugin release. Download the .zip file, for instance, droidcam_obs_2.3.2_linux_flatpak.zip, and extract its contents.


Step 3: Install the Plugin Manually

Identifying Required Files

Once you extract the files, read through the README.txt and locate the install script (install.sh). Note that it may fail to execute properly, requiring you to install the plugin files manually.

Move Plugin Files to OBS Directory

  1. Open your terminal within the 64bit directory of the extracted files.
  2. Move the .so file to the OBS plugins directory by executing:
   sudo mv /home/xxxuser/Downloads/droidcam_obs_2.3.2_linux_flatpak/droidcam-obs/bin/64bit/droidcam-obs.so /usr/lib/x86_64-linux-gnu/obs-plugins/
  1. Create the droidcam-obs directory in the /usr/share/obs/obs-plugins/ path:
   sudo mkdir -p /usr/share/obs/obs-plugins/droidcam-obs/
  1. Move all files from the data directory into the newly created directory:
   sudo mv /home/xxxuser/Downloads/droidcam_obs_2.3.2_linux_flatpak/droidcam-obs/data/* /usr/share/obs/obs-plugins/droidcam-obs/

Step 4: Verify Plugin Installation

Launch OBS Studio and navigate to the Plugin Manager. Verify that DroidCam OBS is listed and available for addition as a source.


Step 5: Additional Requirements

According to the official DroidCam documentation, the following steps are recommended to enhance functionality:

Install ADB for Android USB Support

Execute the command below in your terminal:

sudo apt install adb

Install and Configure V4L2loopback Module

To ensure the V4L2loopback module is set up, run:

sudo apt install linux-headers-$(uname -r) v4l2loopback-dkms

For more detailed instructions, refer to the V4L2loopback repository.


Final Thoughts

While the V4L2loopback module may not be strictly necessary for the DroidCam OBS plugin to operate, it could be beneficial for additional functionality. Always remember to enable debugging on your Android device, following the setup instructions provided.


Conclusion

With each step completed, it’s time for a test run! Launch OBS Studio, add the DroidCam OBS source, and witness it work flawlessly. Happy streaming!

Comments

Leave a Reply

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