Skip to content

Commit 858d75c

Browse files
authored
Merge pull request #3 from Avasam/OBS-FFMPEG-update
Build for OBS 29.1
2 parents 05084f9 + 77b48e1 commit 858d75c

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@ on:
55
push:
66
branches:
77
- master
8+
pull_request:
9+
branches:
10+
- master
811

912
jobs:
1013
windows:
1114
name: "Windows 64bit"
1215
runs-on: windows-latest
1316
env:
14-
OBS_DEPS: "2022-08-02"
17+
OBS_DEPS: "2023-04-12"
1518
CMAKE_GENERATOR: "Visual Studio 17 2022"
1619
CMAKE_SYSTEM_VERSION: "10.0"
1720
# TODO: Don't ACTIONS_ALLOW_UNSECURE_COMMANDS

.github/workflows/tag_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: "Windows 64bit"
1414
runs-on: windows-latest
1515
env:
16-
OBS_DEPS: "2022-08-02"
16+
OBS_DEPS: "2023-04-12"
1717
CMAKE_GENERATOR: "Visual Studio 17 2022"
1818
CMAKE_SYSTEM_VERSION: "10.0"
1919
# TODO: Don't ACTIONS_ALLOW_UNSECURE_COMMANDS

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ src/virtual-output/virtualoutput.rc
22
src/virtual-source/virtualsource.rc
33
build64/
44
obs-deps/
5+
.vs/
6+
out/build/

make.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
$parent = (Get-Item $PSScriptRoot ).parent.FullName
22
cmake -S . -B build64 `
3-
-DQTDIR="$PSScriptRoot/obs-deps/windows-deps-qt6-2022-08-02-x64" `
4-
-DDepsPath="$PSScriptRoot/obs-deps/windows-deps-2022-08-02-x64" `
3+
-DQTDIR="$PSScriptRoot/obs-deps/windows-deps-qt6-2023-04-12-x64" `
4+
-DDepsPath="$PSScriptRoot/obs-deps/windows-deps-2023-04-12-x64" `
55
-DLIBOBS_INCLUDE_DIR="$parent/obs-studio/libobs" `
66
-DLIBOBS_LIB="$parent/obs-studio/build64/libobs/RelWithDebInfo/obs.lib" `
77
-DOBS_FRONTEND_LIB="$parent/obs-studio/build64/UI/obs-frontend-api/RelWithDebInfo/obs-frontend-api.lib" `

readme.MD

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ⚠ Unofficial support
22

3-
You should really be using the integrated OBS Virtual Camera over this plugin. This is used as a stop-gap for things that don't yet work with the integrated Virtual Camera (like https://github.com/obsproject/obs-studio/issues/3635 and https://github.com/opencv/opencv/issues/19746). I do not plan on supporting this fork outside of necessary updates if OBS breaks the plugin. And will only do so until the aforementionned issue is fixed.
3+
You should really be using the integrated OBS Virtual Camera over this plugin. This is used as a stop-gap for things that don't yet work with the integrated Virtual Camera (like <https://github.com/obsproject/obs-studio/issues/3635> and <https://github.com/opencv/opencv/issues/19746>). I do not plan on supporting this fork outside of necessary updates if OBS breaks the plugin. And will only do so until the aforementionned issue is fixed.
44

55
# OBS-VirtualCam
66

@@ -46,12 +46,12 @@ regsvr32 /n /i:"2" "C:\Program Files\obs-studio\bin\64bit\obs-virtualsource.dll"
4646

4747
# Build
4848

49-
You first need to install [cmake](https://cmake.org/download/), [Visual Studio](https://visualstudio.microsoft.com/), and [build OBS project](https://github.com/obsproject/obs-studio/wiki/Install-Instructions#building-obs-studio).
50-
Run cmake with the following variables:
49+
You first need to install [cmake](https://cmake.org/download/), [Visual Studio](https://visualstudio.microsoft.com/), and [build OBS project](https://github.com/obsproject/obs-studio/wiki/Install-Instructions#building-obs-studio).
50+
You must also download `windows-deps-2023-04-12-x64` and `windows-deps-qt6-2023-04-12-x64` from [OBS Deps](https://github.com/obsproject/obs-deps/releases/tag/2023-04-12), then extract the zip as a folder of the same name and place them in `<project_root>/obs-deps/`
5151

5252
* **QTDIR** (path): QT folder
5353
* **DepsPath** (path): FFmpeg folder in OBS dependencies package
54-
* **LIBOBS_INCLUDE_DIR** (path) : Libobs include folder
54+
* **LIBOBS_INCLUDE_DIR** (path) : Libobs include folder
5555
* **LIBOBS_LIB** (filepath) : obs.lib path
5656
* **OBS_FRONTEND_LIB** (filepath): obs-frontend-api.lib path
5757
* **PTHREAD_LIB** (filepath): w32-pthread.lib path
@@ -60,8 +60,8 @@ ie:
6060

6161
```powershell
6262
cmake -S . -B build64 `
63-
-DQTDIR=<...>/obs-deps/windows-deps-qt6-2022-08-02-x64 `
64-
-DDepsPath=<...>/obs-deps/windows-deps-2022-08-02-x64 `
63+
-DQTDIR=<...>/obs-deps/windows-deps-qt6-2023-04-12-x64 `
64+
-DDepsPath=<...>/obs-deps/windows-deps-2023-04-12-x64 `
6565
-DLIBOBS_INCLUDE_DIR=<...>/obs-studio/libobs `
6666
-DLIBOBS_LIB=<...>/obs-studio/build64/libobs/RelWithDebInfo/obs.lib `
6767
-DOBS_FRONTEND_LIB=<...>/obs-studio/build64/UI/obs-frontend-api/RelWithDebInfo/obs-frontend-api.lib `

src/virtual-output/hflip.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ bool init_flip_filter(FlipContext* ctx,int width, int height, int format)
1212
const AVFilter *buffersink = avfilter_get_by_name("buffersink");
1313
AVFilterInOut *outputs = avfilter_inout_alloc();
1414
AVFilterInOut *inputs = avfilter_inout_alloc();
15-
enum AVPixelFormat pix_fmts[] = { (AVPixelFormat)format, AV_PIX_FMT_NONE };
16-
AVBufferSinkParams *buffersink_params;
1715

1816
ctx->filter_graph = avfilter_graph_alloc();
1917
sprintf(args,
@@ -27,11 +25,8 @@ bool init_flip_filter(FlipContext* ctx,int width, int height, int format)
2725
return false;
2826
}
2927

30-
buffersink_params = av_buffersink_params_alloc();
31-
buffersink_params->pixel_fmts = pix_fmts;
3228
ret = avfilter_graph_create_filter(&ctx->buffersink_ctx, buffersink, "out",
33-
NULL, buffersink_params, ctx->filter_graph);
34-
av_free(buffersink_params);
29+
NULL, NULL, ctx->filter_graph);
3530

3631
if (ret < 0) {
3732
avfilter_graph_free(&ctx->filter_graph);

0 commit comments

Comments
 (0)