Package Details: obs-gphoto 0.4.0-2

Git Clone URL: (read-only, click to copy)
Package Base: obs-gphoto
Description: Allows connect DSLR cameras with obs-studio through gPhoto on Linux
Upstream URL:
Keywords: gphoto obs obs-studio photo plugin video
Licenses: GPL2
Submitter: Atterratio
Maintainer: tytan652
Last Packager: tytan652
Votes: 6
Popularity: 0.009910
First Submitted: 2017-10-22 18:54
Last Updated: 2021-06-02 14:12

Latest Comments

tytan652 commented on 2021-06-09 08:48

I could try to fork and maintain it the but I don't have any DSLR cameras to test the code.


Note: The code used is from the remove-magickcore branch of the repo in the upstream URL

Omar007 commented on 2021-06-08 19:48

@mxr: just hit the same thing when trying to build it and looks like it is indeed a hack but it will also solve the immediate problem.

A quick glance at this project's source code, it looks like it is referencing an internal OBS header (obs-internal.h) instead of the appropriate headers for the required information (e.g. util/threading.h, obs(-source).h, etc.). A proper fix would need some work on the source code.

Cleaning that stuff up though would also make it possible to streamline this PKGBUILD and eliminate the need to download obs-studio in sources=(..) to get access to that caption.h file, nor needing to pin obs-studio to a version (afaik).

mxr commented on 2021-06-07 11:21

While compiling I git an error that <caption/caption.h> could not be found (included in obs but apearently cmake does not set the include path)

I added replaced the last line of the build() function with:

C_INCLUDE_PATH=${srcdir}/obs-studio-$_obsver/deps/libcaption make -C build

(probably only a hack but I was able to compile the package)

adambrinek commented on 2021-01-21 18:37

I got this package working with imagemagick 7. I had to only apply thist patch before building package from AUR.

diff --unified --recursive --text obs-gphoto-0.3.0/src/gphoto-preview.c obs-gphoto-0.3.0-patched/src/gphoto-preview.c
--- obs-gphoto-0.3.0/src/gphoto-preview.c   2017-10-24 17:29:31.000000000 +0200
+++ obs-gphoto-0.3.0-patched/src/gphoto-preview.c   2021-01-21 19:19:03.212192386 +0100
@@ -1,4 +1,4 @@
-#include <magick/MagickCore.h>
+#include <MagickCore/MagickCore.h>

 #include "gphoto-preview.h"
 #include "gphoto-utils.h"
@@ -383,4 +383,4 @@
     .hide           = capture_hide,
     .get_width      = capture_getwidth,
     .get_height     = capture_getheight,
\ No newline at end of file
diff --unified --recursive --text obs-gphoto-0.3.0/src/gphoto-utils.c obs-gphoto-0.3.0-patched/src/gphoto-utils.c
--- obs-gphoto-0.3.0/src/gphoto-utils.c 2017-10-24 17:29:31.000000000 +0200
+++ obs-gphoto-0.3.0-patched/src/gphoto-utils.c 2021-01-21 19:19:15.005310869 +0100
@@ -1,7 +1,7 @@
 #include <obs-module.h>
 #include <obs-internal.h>
 #include <gphoto2/gphoto2-camera.h>
-#include <magick/MagickCore.h>
+#include <MagickCore/MagickCore.h>

 #include "gphoto-preview.h"

@@ -539,4 +539,4 @@
     return ret;
\ No newline at end of file
diff --unified --recursive --text obs-gphoto-0.3.0/src/timelapse.c obs-gphoto-0.3.0-patched/src/timelapse.c
--- obs-gphoto-0.3.0/src/timelapse.c    2017-10-24 17:29:31.000000000 +0200
+++ obs-gphoto-0.3.0-patched/src/timelapse.c    2021-01-21 19:19:25.108460498 +0100
@@ -1,4 +1,4 @@
-#include <magick/MagickCore.h>
+#include <MagickCore/MagickCore.h>

 #include "timelapse.h"
 #include "gphoto-utils.h"
@@ -513,4 +513,4 @@
         .get_height     = timelapse_getheight,
         .video_render   = timelapse_render,
         .video_tick     = timelapse_tick,
\ No newline at end of file

tauboga commented on 2020-08-27 15:25

Install libmagick6 and edit the PKGBUILD between line 15 and 16: ln -s /usr/include/ImageMagick-6/magick ${srcdir}/${pkgname}-${pkgver}/src/magick

Works like a charm.

archmylinux commented on 2020-03-17 18:43

Am-I mistaken or is there no imagemagick6 package available ? I tried installing libmagick6 but I does not seem to be enough to compile.

anonfunc commented on 2018-02-20 17:54

This won't build with imagemagick, instead it builds with imagemagick6, seems there is no support of imagemagick 7.x upstream yet.

Atterratio commented on 2017-10-22 19:02

At now it's tested only on Canon cameras see bug: