synap5e / obs-screenshot-plugin

An OBS Studio filter plugin to save screenshots of a source/scene
GNU General Public License v2.0
132 stars 20 forks source link

Support for MacOS #11

Open amanbolat opened 4 years ago

amanbolat commented 4 years ago

Hi! As i understand that plugin can only be used on windows. And what about porting it to MacOS or Linux? Or any ideas how it could be implemented?

synap5e commented 4 years ago

Unfortunately I built this extension using windows threads, so porting would require replacing that with a linux/mac compatible alternative. It would also require disabling the shmem option, but thats not a big issue, and the HTTP destination uses windows APIs, so that would have to be disabled or replaced too.

TBQH, I'm not familiar enough with obs to know if I can use pthreads on all platforms. If so, replacing winthreads with pthreads then disabling shmem in the preprocessor would be 2/3 of the main tasks required. I'm unsure of how much the http destination is used - I suspect hardly at all, although perhaps the demand would be higher on linux...