OBS Plugin with image that reacts to sound source.
Go to file
2024-06-25 16:22:24 +05:00
cmake Add CMake build support for Windows and MacOS, formatting 2024-06-25 16:08:15 +05:00
data/locale Added animated gif support and translations 2021-08-25 05:04:33 +05:00
src Add CMake build support for Windows and MacOS, formatting 2024-06-25 16:08:15 +05:00
.clang-format Add CMake build support for Windows and MacOS, formatting 2024-06-25 16:08:15 +05:00
.gitignore Add CMake build support for Windows and MacOS, formatting 2024-06-25 16:08:15 +05:00
CMakeLists.txt Version 1.2 -> 1.3 2024-06-25 16:22:24 +05:00
flake.lock Add Nix flakes support 2024-06-25 16:09:03 +05:00
flake.nix Version 1.2 -> 1.3 2024-06-25 16:22:24 +05:00
LICENSE Initial commit 2021-08-19 23:17:49 +05:00
README.md Add CMake build support for Windows and MacOS, formatting 2024-06-25 16:08:15 +05:00

OBS Image Reaction Plugin

Image that reacts to sound source.

Building and installing for GNU/Linux:

cmake -B build -DCMAKE_BUILD_TYPE=Release -S .
cmake --build build

mkdir -p $XDG_CONFIG_HOME/obs-studio/plugins/image-reaction/bin/64bit
cp build/libimage-reaction.so $XDG_CONFIG_HOME/obs-studio/plugins/image-reaction/bin/64bit/
cp -r data  $XDG_CONFIG_HOME/obs-studio/plugins/image-reaction/

Building for Windows via MinGW:

You need to complete several steps before actual building:

# Debian example
cmake \
    -B build \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_SYSTEM_NAME=Windows \
    -DCMAKE_CXX_COMPILER=/usr/bin/x86_64-w64-mingw32-g++-win32 \
    -DCMAKE_C_COMPILER=/usr/bin/x86_64-w64-mingw32-gcc-win32 \
    -DLIBOBS_INCLUDE_DIR=~/git/obs-studio-27.0.1/libobs \
    -DLIBOBS_LIB=~/.wine/drive_c/Program\ Files/obs-studio/bin/64bit/obs.dll \
    -S .
cmake --build build

Now move libimage-reaction.dll into OBS Plugin directory.

Installing on NixOS with Nix Flakes

{
    inputs = {
        nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
        obs-image-reaction.url = "github:L-Nafaryus/obs-image-reaction";
    };
    outputs = { nixpkgs, ... } @ inputs:
    {
        nixosConfigurations.foo = nixpkgs.lib.nixosSystem rec {
            system = "x86_64-linux";
            specialArgs = { inherit inputs; };
            modules = [
                ({ pkgs, inputs, ... }: 
                {
                    environment.systemPackages = with pkgs; [
                        (pkgs.wrapOBS {
                            plugins = with pkgs.obs-studio-plugins; [
                                inputs.obs-image-reaction.packages.${pkgs.system}.default
                            ];
                        })
                    ];
                })
            ];
        };
    };
}

References

License

Like obs-studio, obs-image-reaction is licensed under GNU General Public License v2.0.