Question / Help Sandboxie & OBS Studio

datagram

New Member
This is kind of a long shot, but does anyone here know how to get OBS Studio to work with Sandboxie? When trying to game capture from sandboxed applications, I'm just betting a black screen. In the past, I've figured out how to properly whitelist OBS Classic (mostly through trial and error), but I'm currently stumped when it comes to doing the same thing for OBS Studio.

Btw, for people who want to get OBS Classic to work with games in Sandbxie, this is the application configuration I use:
[Template_Local_OBS]
Tmpl.Title=Open Broadcaster Software
OpenIpcPath=*\BaseNamedObjects*\OBS*
OpenWinClass=OBSWindowClass
Tmpl.Class=Local

Log file attached.
 

Attachments

  • 2016-07-02 23-35-42.txt
    16.4 KB · Views: 92

Mr Zoom

New Member
I do apologise in advance for nero'ing this topic but I have run into this issue myself and despite trying everything I can think of, including reading the poorly worded/constructed help page, yet I am still no closer. I would post this in the Sandboxie forums only they have been down for a couple of weeks now and it looks as though they wont be back up for a while yet.

Has anyone managed to figure this out?
The odd thing is it will capture windows just fine from a sandboxie'd program but not using game capture.

So just to be clear: I want to capture sandboxed games using an unsandboxed OBS Studio.
 

Leayal

New Member
I do apologise in advance for nero'ing this topic but I have run into this issue myself and despite trying everything I can think of, including reading the poorly worded/constructed help page, yet I am still no closer. I would post this in the Sandboxie forums only they have been down for a couple of weeks now and it looks as though they wont be back up for a while yet.

Has anyone managed to figure this out?
The odd thing is it will capture windows just fine from a sandboxie'd program but not using game capture.

So just to be clear: I want to capture sandboxed games using an unsandboxed OBS Studio.
Perhaps this is too late now. Though, I'm necro this thread so that anyone else reaching this place via Google get the answer they need.
WARNING: I'm not a pro at security matters. So this might be an unsafe approach, I'm not sure. And this is limited to game capture only.
You can configure this by each Sandbox's setting.
You need to open these IPC paths (in the image below) for the game capture hook (which is injected into the game's process, which is running inside the sandbox) to be allowed to send captured frame data (as well as other data necessary for sync ops) to the OBS process outside the sandbox.
sandboxie-obs-compat.png

[Sample of IPC paths in ini setting, for copypasta geeks]
OpenIpcPath=*\BaseNamedObjects*\CaptureHook_Texture*
OpenIpcPath=*\BaseNamedObjects*\CaptureHook_KeepAlive*
OpenIpcPath=*\BaseNamedObjects*\CaptureHook_Exit*
OpenIpcPath=*\BaseNamedObjects*\CaptureHook_HookInfo*
OpenIpcPath=*\BaseNamedObjects*\CaptureHook_HookReady*
OpenIpcPath=*\BaseNamedObjects*\CaptureHook_Initialize*
OpenIpcPath=*\BaseNamedObjects*\CaptureHook_Restart*
OpenIpcPath=*\BaseNamedObjects*\CaptureHook_Stop*
OpenIpcPath=*\BaseNamedObjects*\CaptureHook_TextureMutex*
OpenIpcPath=*\BaseNamedObjects*\graphics_hook_dup_mutex*
OpenIpcPath=*\BaseNamedObjects*\CaptureHook_Pipe*
Tested on OBS Studio v27.0 to v29.0.1 and Sandboxie-Plus v1.6.7. If the programs' version are newer or older, please test it and make adaption yourself.

[Geek references]
Files from Github for finding the IPC paths and stuffs so that you can make adaption for OBS's future changes:
- Master branch (or Permalink): Looks for the CaptureHook_ defines.
- Master branch (or Permalink): Looks for the HOOK_NAME define.
 
Last edited:
Top