Skip to content

OBS plugin to capture screen mirroring from iOS and macOS devices

License

Notifications You must be signed in to change notification settings

mika314/obs-airplay

Repository files navigation

obs-airplay

OBS plugin to capture screen mirroring from iOS and macOS devices

I made an AirPlay plugin for OBS

Build Instructions

Ubuntu-Like OSes 22.04

Install Dependencies

sudo apt-get install -y clang pkg-config libssl-dev libswscale-dev libavcodec-dev libavformat-dev libavutil-dev libswresample-dev git libobs-dev libavahi-compat-libdnssd-dev libplist-dev libfdk-aac-dev

Install Build Tool coddle if not Installed

git clone https://github.com/coddle-cpp/coddle.git && cd coddle && ./build.sh
sudo ./deploy.sh
cd ..

Clone the Plugin

git clone --recurse-submodules https://github.com/mika314/obs-airplay.git

Build

cd obs-airplay
coddle

Copy Plugin File into OBS Plugin Directory

I actually make a symbolic link in the /usr/lib/x86_64-linux-gnu/obs-plugins/ directory.

sudo ln -s /home/mika/prj/obs-airplay/obs-airplay.so /usr/lib/x86_64-linux-gnu/obs-plugins/obs-airplay.so

macOS

Install dependencies

xcode-select --install
brew install \
    fdk-aac \
    ffmpeg \
    libplist \
    openssl

Install the build tool

If you do not already have Coddle installed:

git clone https://github.com/coddle-cpp/coddle.git
cd coddle
./build.sh
sudo ./deploy.sh
cd ..

Clone the OBS Studio source

# Change “30.2.3” to match your installed OBS version.
git clone --branch 30.2.3 https://github.com/obsproject/obs-studio.git

This project's library configuration depends on the OBS source being located in an adjacent directory. If you want to put the OBS source tree elsewhere, you will need to update the resources/macos/lib/obs symlink accordingly.

Clone the plugin

git clone --recurse-submodules https://github.com/mika314/obs-airplay.git

Build

cd obs-airplay
coddle

Install the plugin

On macOS, OBS plugins are bundles. A template is available in the repo at resources/macos/obs-airplay.plugin. First, we'll copy that to somewhere OBS will find it; then we'll symlink our compiled plugin into it.

cp \
    -R resources/macos/obs-airplay.plugin \
    ~/Library/Application\ Support/obs-studio/plugins/
ln -s \
    $(realpath obs-airplay.dylib) \
    ~/Library/Application\ Support/obs-studio/plugins/obs-airplay.plugin/Contents/MacOS/obs-airplay

About

OBS plugin to capture screen mirroring from iOS and macOS devices

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages