MrLixm/AgXc

OBS Implementation

Closed this issue · 1 comments

Something that I have been hammering myself with for a long time. Apply AgX on live camera source like webcams. I already done it in the past in Python but performance were not there: https://twitter.com/MrLixm/status/1520877184373694466.

So at some point I tried to see to create a small application that was combining virtual camera streaming + OCIO Gpu processing but it's been in wip for ever. But that's a good thing because I missed the most obvious solution, extends what already exists. I.e. OBS has a robust camera streaming system, and what looks like to be a nice plugin/scripting framework.

In this issue, I will try to create an OBS script/plugin to implement AgX :

Resources

Getting Started With OBS Scripting

https://obsproject.com/wiki/Getting-Started-With-OBS-Scripting

Scripting Tutorial Halftone Filter

https://obsproject.com/wiki/Scripting-Tutorial-Halftone-Filter

Python/Lua Scripting documentation

https://obsproject.com/docs/scripting.html

Plan

By having a look at the documentation shared above, I can use 2 languages I'm familiar with which are lua and python. Then looking at the Halftone-Filter example, which looks to be what I want to do, I can see that we introduce hlsl in the mix which is perfect as I already have a hlsl implementation for Reshade.

I will start looking in a first implementation when I find the time/motivation.

PR opened, this was pretty straightforward. Documentation example was great even if there is a lot of boilerplate code to write.