Package Details: droidcam-obs-plugin-git 2.4.2.r1.161cb95-1

Git Clone URL: https://aur.archlinux.org/droidcam-obs-plugin-git.git (read-only, click to copy)
Package Base: droidcam-obs-plugin-git
Description: plugin for droidcam obs
Upstream URL: https://dev47apps.com/obs/
Licenses: GPL
Conflicts: droidcam-obs-plugin
Provides: droidcam-obs-plugin
Submitter: mazieres
Maintainer: galuise
Last Packager: galuise
Votes: 4
Popularity: 0.049319
First Submitted: 2020-12-22 07:09 (UTC)
Last Updated: 2025-10-14 23:03 (UTC)

Latest Comments

galuise commented on 2025-10-06 20:26 (UTC) (edited on 2025-10-06 20:26 (UTC) by galuise)

This compiles again.

For the time being a libavcodec62-fix.patch has been included. Though as this is a git package and the upstream source could change at anytime this "fix" could be somewhat short lived. The upstream project will be monitored for the final decision on pull request 29:

https://github.com/dev47apps/droidcam-obs-plugin/pull/29

After the changes are merged into the upstream this package will be updated.

es20490446e commented on 2025-10-04 23:44 (UTC)

No longer compiles with ffmpeg 8.0.

Error is: src/ffmpeg_decode.cc:123:36: error: ‘FF_PROFILE_AAC_LOW’ was not declared in this scope; did you mean ‘AV_PROFILE_AAC_LOW’?

I have notified the upstream developers.

galuise commented on 2024-09-13 16:49 (UTC) (edited on 2024-09-13 20:12 (UTC) by galuise)

EDIT: After seeing the package hadn't been updated since 2020 I submitted an orphan request and it was immediately accepted so I've updated this package with the changes described below.

Hi,

I'm now the happy maintainer of the droidcam-obs-plugin AUR package. A little while ago compilation broke on my AUR package (the same way this one has broken). I submitted a pull request for some upstream changes (that actually got merged by dev47apps - Hooray!!) here: https://github.com/dev47apps/droidcam-obs-plugin/pull/25

If the PKGBUILD file on this package is adjusted as follows this package will build again as well:

  • I added depends=("obs-studio" 'libusbmuxd' 'libjpeg-turbo' 'libimobiledevice') as this package will need all 4 of those packages installed to function when it is installed.
  • the "fix_Makefile.patch" file is no longer needed.
  • The upstream "linux/linux.mk" makefile has been updated to allow for make variables specifying the names of libusbmuxd, libjpeg-turbo, and libimobiledevice as those libraries seem to have varying names across Linux distributions. For example, on Arch Linux the names are: libusbmuxd-2.0, libturbojpeg, and libimobiledevice-1.0. So now, the make command in the build() function now reads:
    make LIBUSBMUXD=libusbmuxd-2.0 LIBIMOBILEDEV=libimobiledevice-1.0 ALLOW_STATIC=no
    This eliminated the need for the fix_Makefile.patch. I also updated "src/ffmpeg_decode.cc" in the upstream to reference the newer "AV_INPUT_BUFFER_PADDING_SIZE" ffmpeg replacement constant over the older INPUT_BUFFER_PADDING_SIZE as specified in "obs-ffmpeg-compat.h" (and now this compatibility header file is no longer referenced / needed).

I'm also willing to maintain this package along with the other one I'm already maintaining if the original maintainer doesn't have the time.

A DIFF of my changes to this package's PKGBUILD is below. Thank you!

diff --git a/PKGBUILD b/PKGBUILD
index 497d0e0..2118353 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
 # Maintainer: David Mazieres (http://www.scs.stanford.edu/~dm/addr/)
 pkgname=droidcam-obs-plugin-git
-pkgver=1.1.r5.b8febd6
+pkgver=2.3.3.r1.aea63f6
 pkgrel=1
 pkgdesc="plugin for droidcam obs"
 arch=(x86_64)
@@ -9,8 +9,8 @@ srcurl="https://github.com/dev47apps/droidcam-obs-plugin.git"
 license=('GPL')
 groups=()
 depends=(obs-studio)
-makedepends=('git' 'libjpeg-turbo' 'libusbmuxd')
-optdepends=()
+makedepends=('git')
+optdepends=('obs-studio' 'libusbmuxd' 'libjpeg-turbo' 'libimobiledevice')
 provides=("${pkgname%-git}")
 conflicts=("${pkgname%-git}")
 replaces=()
@@ -18,11 +18,9 @@ backup=()
 options=()
 install=
 pkgstem=${pkgname%-git}
-source=("${pkgstem}::git+${srcurl}"
-   fix_Makefile.patch)
+source=("${pkgstem}::git+${srcurl}")
 noextract=()
-sha256sums=('SKIP'
-            '5a52749268fafe141eecbb63f0dea10ac1a100e1b1ba63a2f1cf574837b8c069')
+sha256sums=('SKIP')

 pkgver() {
    cd "$srcdir/$pkgstem"
@@ -32,13 +30,12 @@ pkgver() {

 prepare() {
    cd "$srcdir/$pkgstem"
-   patch -p1 -i "$srcdir/fix_Makefile.patch"
    mkdir -p build
 }

 build() {
    cd "$srcdir/$pkgstem"
-   make
+   make LIBUSBMUXD=libusbmuxd-2.0 LIBIMOBILEDEV=libimobiledevice-1.0 ALLOW_STATIC=no
 }

 package() {

mcerb commented on 2023-04-02 21:00 (UTC)

@mazieres could you try replacing the makefile patch with something like this?

diff --git a/linux/linux.mk b/linux/linux.mk
index 33e2e7a..9bf9543 100644
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -13,10 +13,10 @@ JPEG_DIR ?= /opt/libjpeg-turbo
 JPEG_LIB ?= $(JPEG_DIR)/lib$(shell getconf LONG_BIT)

 ifeq "$(ALLOW_STATIC)" "yes"
-       STATIC += $(JPEG_LIB)/libturbojpeg.a
-       STATIC += $(IMOBILEDEV_LIB)/libimobiledevice.a
-       STATIC += $(IMOBILEDEV_LIB)/libusbmuxd.a
-       STATIC += $(IMOBILEDEV_LIB)/libplist-2.0.a
+       STATIC += /usr/lib/libturbojpeg.so
+       STATIC += /usr/lib/libimobiledevice-1.0.so
+       STATIC += /usr/lib/libusbmuxd-2.0.so
+       STATIC += /usr/lib/libplist-2.0.so

 else
        LDD_DIRS += -L$(JPEG_LIB)

Fusate commented on 2022-05-05 17:23 (UTC)

This doesn't seem to build correctly, does anyone else get the following error message?

patching file Makefile Hunk #1 FAILED at 32. 1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej