Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
b83a5c7
Cmake: Cmake ffmpeg library fix for Windows
danrossi Apr 24, 2026
ea1c0a9
- update markdown code blocks
danrossi Apr 25, 2026
9ffc4e3
- Refactor cmake to search for including provided pre-built libraries…
danrossi May 1, 2026
8a2174d
- update latest specfile hashes
danrossi May 1, 2026
a5a16c1
- Enable swift for macOS to configure OBS correctly.
danrossi May 1, 2026
af0d546
- move swift language obs setup to buildspec common
danrossi May 1, 2026
e1ad0af
- revert swift language
danrossi May 1, 2026
44877ff
- add libobs-metal patch
danrossi May 2, 2026
d86e382
- update min xcode requirements to match obs-studio
danrossi May 2, 2026
e54b024
- Use pkg-config to find system libraries for Linux
danrossi May 2, 2026
0d6e7f8
- fix hash for Windows obs source archive
danrossi May 2, 2026
9d45afd
- Set minimum Xcode and SDK required to 26.1 to match the obs-studio …
danrossi May 4, 2026
c34bf51
- fix windows install prefix config
danrossi May 4, 2026
fa05997
- Fix windows commands doc
danrossi May 5, 2026
63cb4ae
- reinstate macos command
danrossi May 5, 2026
02bff6d
Merge branch 'moq-dev:main' into win-build-fix
danrossi May 9, 2026
136cfb8
- Enable a debug console in Windows if the RUST_LOG env var is set t…
danrossi May 13, 2026
9dc4a05
- Add stop signal for connection failures , session and publish errors
danrossi May 13, 2026
1ac1ca3
- change pointer reference within libmoq callback
danrossi May 13, 2026
b0d4fa3
- Revert obs stop signals
danrossi May 14, 2026
b4d6945
Update min XCode requirements to 26.5 to match upstream changes
danrossi Jun 4, 2026
3cb4031
Merge branch 'moq-dev:main' into win-build-fix
danrossi Jun 4, 2026
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
21 changes: 16 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,22 @@ add_library(obs-moq MODULE)
if(${BUILD_PLUGIN})
find_package(libobs REQUIRED)
# FFmpeg dependency
include(FindPkgConfig)
pkg_check_modules(FFMPEG REQUIRED libavcodec libavutil libswscale libswresample)
target_include_directories(obs-moq PRIVATE ${FFMPEG_INCLUDE_DIRS})
target_link_directories(obs-moq PRIVATE ${FFMPEG_LIBRARY_DIRS})
target_link_libraries(obs-moq PRIVATE ${FFMPEG_LIBRARIES})
if(NOT OS_WINDOWS)
pkg_check_modules(FFMPEG REQUIRED libavcodec libavutil libswscale libswresample)
target_include_directories(obs-moq PRIVATE ${FFMPEG_INCLUDE_DIRS})
target_link_directories(obs-moq PRIVATE ${FFMPEG_LIBRARY_DIRS})
target_link_libraries(obs-moq PRIVATE ${FFMPEG_LIBRARIES})
else()
target_link_libraries(obs-moq PRIVATE Userenv ntdll)

find_library(AVCODEC_LIB avcodec)
find_library(AVUTIL_LIB avutil)
find_library(SWSCALE_LIB swscale)
find_library(SWRESAMPLE_LIB swresample)

target_link_libraries(obs-moq PRIVATE ${AVCODEC_LIB} ${AVUTIL_LIB} ${SWSCALE_LIB} ${SWRESAMPLE_LIB})
Comment thread
danrossi marked this conversation as resolved.
Outdated

endif()
else()
find_package(FFmpeg REQUIRED avcodec avutil swscale swresample)
target_link_libraries(obs-moq PRIVATE FFmpeg::avcodec FFmpeg::avutil FFmpeg::swscale FFmpeg::swresample)
Expand Down
37 changes: 37 additions & 0 deletions WINDOWS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
## Windows Build Instructions

### Build Setup

``
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
choco install -y git
choco install -y cmake --installargs 'ADD_CMAKE_TO_PATH=System'
choco install visualstudio2026buildtools --package-parameters "--add Microsoft.VisualStudio.Workload.VCTools --includeRecommended"
choco install rustup
```
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated

During the rustup installation choose the `nightly` variant.

Locate "Visual Studio Installer". Click "Modify". Choose "Desktop Development with C++". Check C++ ATL For x64


### Build the OBS fork
```
cd obs-studio
cmake -G "Visual Studio 18 2026" -A x64 --preset windows-x64
cmake --build --preset windows-x64
```
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated

### Build the obs-moq plugin

```
cd obs
cmake -G "Visual Studio 18 2026" -A x64 --preset windows-x64
cmake --build --preset windows-x64
```

For now copy the build plugin libraries to the build obs fork

```
Copy-Item -Path "build_x64/rundir/RelWithDebInfo/" -Destination "../obs-studio/build_x64/rundir/RelWithDebInfo/obs-plugins" -Recurse
```
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
12 changes: 6 additions & 6 deletions buildspec.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"dependencies": {
"obs-studio": {
"version": "31.1.1",
"version": "32.1.2",
"baseUrl": "https://github.com/obsproject/obs-studio/archive/refs/tags",
"label": "OBS sources",
"hashes": {
"macos": "39751f067bacc13d44b116c5138491b5f1391f91516d3d590d874edd21292291",
"windows-x64": "2c8427c10b55ac6d68008df2e9a3e82f4647aaad18f105e30d4713c2de678ccf"
"macos": "2aeb3aaa99544fefd557f10ac6550e73df71540dd57528b2a1e6f39a55ebacfb",
"windows-x64": "21cba22292985cf0da967d5c618999b40eaa32b73d2ab8b06154b5ea1b3d3798"
}
},
"prebuilt": {
"version": "2025-07-11",
"version": "2025-08-23",
"baseUrl": "https://github.com/obsproject/obs-deps/releases/download",
"label": "Pre-Built obs-deps",
"hashes": {
"macos": "495687e63383d1a287684b6e2e9bfe246bb8f156fe265926afb1a325af1edd2a",
"windows-x64": "c8c642c1070dc31ce9a0f1e4cef5bb992f4bff4882255788b5da12129e85caa7"
"macos": "9403bb43fb0a9bb215739a5659ca274fe884dbbbcd22bd9ca781c961fb041c42",
"windows-x64": "8de229cff6f1981508c0eb646b35e644633a5855787b9f5d3b90ae2aeb87ffc1"
}
},
"qt6": {
Expand Down