Skip to content

feat: OBS Source Screenshot#2066

Merged
ebiggz merged 6 commits intocrowbartools:v5from
dennisrijsdijk:v5-feat-obs-screenshot
Feb 25, 2023
Merged

feat: OBS Source Screenshot#2066
ebiggz merged 6 commits intocrowbartools:v5from
dennisrijsdijk:v5-feat-obs-screenshot

Conversation

@dennisrijsdijk
Copy link
Copy Markdown
Collaborator

Description of the Change

This Pull Request adds an effect that takes a screenshot of an OBS Source or Scene, saving it to a file.
It exposes OBS Websocket's quality and size scaling settings as optional options.
Internally, it uses the GetSourceScreenshot call rather than SaveSourceScreenshot to allow saving the image on the firebot machine in a multi-PC setup.

The OBS Source dropdown is searchable both by source/scene name, as well as type (currently the id of the type rather than the human friendly name, as OBS Websocket doesn't expose that.)

Applicable Issues

N/A

Testing

I have verified that the image file gets written properly when OBS is connected and sends back the image as a base64 URI. I have also verified that null is returned when OBS is not connected or when there is an error, and there is no attempt to save the file.

Screenshots

image
image
image
image
image
image

@ebiggz
Copy link
Copy Markdown
Member

ebiggz commented Feb 25, 2023

Great stuff, thanks for the contribution!

@ebiggz ebiggz enabled auto-merge (squash) February 25, 2023 15:26
@ebiggz ebiggz merged commit 80dba7e into crowbartools:v5 Feb 25, 2023
@dennisrijsdijk dennisrijsdijk deleted the v5-feat-obs-screenshot branch July 31, 2024 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants