File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,22 +54,18 @@ Prerequisites:
5454 just build
5555 ` ` `
5656
57- 2. Copy the plugin to the OBS Studio plugins directory:
58- ` ` ` bash
59- # macOS
60- cp -a build_macos/RelWithDebInfo/obs-moq.plugin ../obs-studio/build_macos/frontend/RelWithDebInfo/OBS.app/Contents/PlugIns/
61-
62- # Linux
63- cp build_x86_64/obs-moq.so ~ /.config/obs-studio/plugins/obs-moq/bin/64bit/obs-moq.so
57+ 2. Copy the plugin to the OBS Studio plugins directory and run it:
6458
65- # eventually, without the fork:
66- cp -a build_macos/RelWithDebInfo/obs-moq.plugin ~ /Library/Application\ Support/obs-studio/plugins/
59+ ` ` ` bash
60+ # macOS only:
61+ # This script assumes a local fork of OBS Studio in ../obs-studio
62+ just run
6763` ` `
6864
69- 3. Run OBS Studio with some extra logging for debugging.
65+ On linux you ' ll have to do:
7066```bash
71- # macOS
72- RUST_LOG=debug RUST_BACKTRACE=1 OBS_LOG_LEVEL=debug ../obs-studio/build_macos/frontend/RelWithDebInfo/OBS.app/Contents/MacOS/OBS
67+ cp build_x86_64/obs-moq.so ~/.config/obs-studio/plugins/obs-moq/bin/64bit/obs-moq.so
68+ # TODO: add Linux command to `just run`
7369```
7470
7571## Configuring MoQ Output Streaming
Original file line number Diff line number Diff line change @@ -32,6 +32,15 @@ build preset="":
3232 PRESET=$(just preset " {{ preset}} " )
3333 cmake --build --preset " $PRESET"
3434
35+ # Run a local fork of OBS Studio with the plugin loaded
36+ # TODO support for other platforms
37+ run :
38+ # Copy the plugin to the OBS Studio plugins directory
39+ cp -a build_macos/ RelWithDebInfo/ obs-moq.plugin ../ obs-studio/ build_macos/ frontend/ RelWithDebInfo/ OBS.app/ Contents/ PlugIns/
40+
41+ # Run OBS Studio with the plugin loaded
42+ RUST_LOG=debug RUST_BACKTRACE=1 OBS_LOG_LEVEL=debug ../ obs-studio/ build_macos/ frontend/ RelWithDebInfo/ OBS.app/ Contents/ MacOS/ OBS
43+
3544# Run the CI checks
3645check :
3746 ./ build-aux/ run-clang-format --check
You can’t perform that action at this time.
0 commit comments