Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 8 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,22 +54,18 @@ Prerequisites:
just build
```

2. Copy the plugin to the OBS Studio plugins directory:
```bash
# macOS
cp -a build_macos/RelWithDebInfo/obs-moq.plugin ../obs-studio/build_macos/frontend/RelWithDebInfo/OBS.app/Contents/PlugIns/

# Linux
cp build_x86_64/obs-moq.so ~/.config/obs-studio/plugins/obs-moq/bin/64bit/obs-moq.so
2. Copy the plugin to the OBS Studio plugins directory and run it:

# eventually, without the fork:
cp -a build_macos/RelWithDebInfo/obs-moq.plugin ~/Library/Application\ Support/obs-studio/plugins/
```bash
# macOS only:
# This script assumes a local fork of OBS Studio in ../obs-studio
just run
```

3. Run OBS Studio with some extra logging for debugging.
On linux you'll have to do:
```bash
# macOS
RUST_LOG=debug RUST_BACKTRACE=1 OBS_LOG_LEVEL=debug ../obs-studio/build_macos/frontend/RelWithDebInfo/OBS.app/Contents/MacOS/OBS
cp build_x86_64/obs-moq.so ~/.config/obs-studio/plugins/obs-moq/bin/64bit/obs-moq.so
# TODO: add Linux command to `just run`
```

## Configuring MoQ Output Streaming
Expand Down
9 changes: 9 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ build preset="":
PRESET=$(just preset "{{preset}}")
cmake --build --preset "$PRESET"

# Run a local fork of OBS Studio with the plugin loaded
# TODO support for other platforms
run:
# Copy the plugin to the OBS Studio plugins directory
cp -a build_macos/RelWithDebInfo/obs-moq.plugin ../obs-studio/build_macos/frontend/RelWithDebInfo/OBS.app/Contents/PlugIns/

# Run OBS Studio with the plugin loaded
RUST_LOG=debug RUST_BACKTRACE=1 OBS_LOG_LEVEL=debug ../obs-studio/build_macos/frontend/RelWithDebInfo/OBS.app/Contents/MacOS/OBS

# Run the CI checks
check:
./build-aux/run-clang-format --check
Expand Down
Loading