synap5e / obs-screenshot-plugin Goto Github PK
View Code? Open in Web Editor NEWAn OBS Studio filter plugin to save screenshots of a source/scene
License: GNU General Public License v2.0
An OBS Studio filter plugin to save screenshots of a source/scene
License: GNU General Public License v2.0
For my use case, I'd like to use a tool to be able to activate the filter which would then take the screenshot - if on a multiple PC setup, the tool may not be able to enforce a hotkey press so this would be a good solution
Hi, I would like to use the screenshot just captured in a scene that I'm instantly transitioning to as a live effect. For that reason I would like to save the screenshot as quickly as possible.
Would it be possible to support some uncompressed format that saves faster, e.g. bmp or tiff?
I have used a scene to build an image out of multiple pieces through chat commands>
I would like to be able to save it when chat is done without including the background of the stream and everything else on the scene.
I gave it a try and so far it just crashes my OBS lol
Windows defender detects obs-screenshot-filter-1.5.2-windows-x64-Installer.exe
infected by: Trojan:Win32/Wacatac.H!ml
[Detected by Microsoft Defender Antivirus]
Anyway, the zip file looks safe, and also individual .dll and .pdb are safe by various online tests.
Can you check a look?
Will the pugin have support for version 3.0?
Please can we have shortcut for the timer to start/stop?
Awesome plugin - thank you!
The output images will have a transparent area to its right side if the filter is added to a source with an unusual size like 500x500.
Tested environment:
obs-studio 24.0.3 64bit file mode
media source (webm) 500x500
output size: 512x500
Hello, my apologies for the REALLY stupid question, but I am having trouble actually installing the addon?
Again, my apologies... Not very OBS Savy
Would be spiffy if there were a hotkey that would automatically grab a screenshot of the active scene.
Hello, enjoying your work.
I want to use a hotkey to enable me to take a shot of the current scene. This isn't available at the moment. It is available in the standard OBS but unfortunately, I can't have these screengrabs saved separately to recordings, which is what I need.
The plugin allows me to create a hotkey for any scene or to have the same hotkey set for any scene. If I set the same hotkey for numerous scenes, the plugin with take a 'screenshot' of all those scenes and will do so in a way that happens when those scenes are next switched too, which is undesirable.
Would it be possible to have a setup where the current scene can be grabbed only or where if multiple scenes are hotkey-ed under the same key, only the current scene will be grabbed?
Thank you for your time and consideration!
The current plugin still works on OBS v23, however, changes in OBS v24 seem to have broken PNG output. RAW output still works, but PNG output silently fails.
Hi,
when I set the URL in the filter, it sets a correct URL.
When triggered it does a PUT to a wrong URL. It somehow duplicates the base of the URL.
LOG:
16:45:00.600: [screenshot-filter] Set destination=http://localhost:8000/api/cam/snapshot, 1
16:45:17.472: Settings changed (hotkeys)
16:45:17.472: ------------------------------------------------
16:45:21.662: [screenshot-filter] Got capture_key pressed for Screenshot Filter, id: 35, key: Screenshot Filter.Afbeelding.Screenshot Filter, pressed: 1
16:45:21.662: [screenshot-filter] Triggering capture
16:45:21.662: [screenshot-filter] Got capture_key pressed for Screenshot Filter, id: 40, key: Screenshot Filter.Afbeelding 2.Screenshot Filter, pressed: 1
16:45:21.662: [screenshot-filter] Triggering capture
16:45:21.746: [screenshot-filter] Failed to upload file to http:///localhost:8000/localhost:8000/api/cam/snapshot - 12007
The PNG files look like they are not compressed which is a bit of a bandwidth hog when uploading every few seconds. Jpeg support would be awesome.
Allow images to be written to a directory with a dynamic (strftime) name, instead of always to the same file.
At this time it does not work at all
OBS 29.1.1
Windows 10 LTSC
Also don't work in portable OBS.
using http://localhost
and http://localhost:8080
(e.g. instead of http://localhost/
) will fail the URL parsing code
I'm just starting out with OBS, the plugins and whatnot.
I'm wondering if it would be possible to output the source to the shared memory region whenever it is updated/repainted instead of doing it every X milleseconds, or lowering the 0.25 limit.
I've looked everywhere for something like streaming to a shared memory, hooking the function that draws the source image, etc... but found nothing. Your plugin is what comes the closest to this.
So when I added this plugin to my OBS folder, my camera feed went black. Anyone else noticed this or knows why that happens? As soon as I removed the plugin, everything went back to normal.
The prebuilt binaries on the release page are Windows-only.
How can I get it running on Linux?
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?
i try
r"\.\BaseNamedObjects\qwer"
r"\Sessions\1\BaseNamedObjects\qwer"
I want to open an image in an open cv on python, pls help
Hi,
Great plugin but I have to save first locally and then send the screenshots via a batch because the send to URL doesn't work.
I don't see any request to the URL in Wireshark and I have no idea how to debug.
Any idea please?
I tried to remove that + 32
and it works fine on my pc
But for some other pcs(that use different CPUs), image data stored in data
would automatically expand 32 pixels in width (and contains blank data) after calling gs_stagesurface_map
, which i dont know why
It would be nice to support building the plugin through CI.
This would enable bugfixes/enhancements made e.g. through the github editor e.g. #32 to be landed much easier, help in cases where people are keen to contribute or tweak things but don't know how to build e.g. #25
It would also make tweaks like #22 trivial
https://github.com/obsproject/obs-plugintemplate appears to have OBS plugin building, so could be used as a base.
I see that we can setup screenshot filter for scene, but sometimes I will have my webcam and game source together in scene. I want to have an option to only take screenshot of game source even I have my webcam in same scene.
When a raw image is outputted to file, the header is missing. The file size is 1920x1080x4=8,294,400 bytes, which is 16 bytes less than what is expected from the documentation
Plugin version: 1.3.1
OBS version: 26.1.1
I'm not sure if it's just because OBS updated but Screenshot filter no longer works.
I've reinstalled both OBS and Screenshot Filter, added it into my 64bit plugin directory inside of OBS and none of the menu options pop up.
OBS Version 29.1.1
I am using the obs websocket plugin to enable and disable the screenshot filters.
When i am in the scene, where the filter is set, everything works as expected. But if i am in an other scene, no output will be written to my disk.
I tried "to File" and "to Directory", same with timer and no timer.
I tried to include the scene into my other scenes, to see if it than work, but it doesn't :(
I am on OBS 27.2.4 (64Bit) portable mode.
I am on Windows 11.
I set the filter directly on a scene.
Allow images to be written on a hotkey event instead of at a timer.
This should have a dropdown/checkbox to disable the slider and enable a hotkey selector (if possible). Should combo well with #2
I don't really have a need for raw images but I ran into an issue trying to save one. The resolution of the source and canvas is 720x480 but saving the raw image it will only properly display when you set the resolution in your editing program as 736x480.
I've attached a copy of both raw and png format.
images.zip
I might be mistaken but I believe this was also an issue with regular image saving in a previous version? RE: #6 ?
Just testing all the plugins I'm using in 27.2.3 and the current version of obs-screenshot-plugin (1.4.0) fails to load when running OBS 28.0.0-beta1.
Log file shows as follows:
17:55:58.757: LoadLibrary failed for '../../obs-plugins/64bit/obs-screenshot-filter.dll': The specified module could not be found.
17:55:58.757: (126)
17:55:58.757: Module '../../obs-plugins/64bit/obs-screenshot-filter.dll' not loaded
Understand that 28 is a major shift, but just testing everything and mentioning where there are major faults. Works perfectly with 27, has been really fun to play with!
This is by far one of the most useful plugins for OBS. Any chance of getting the compatibility updated for ver 30?
Also any links for a buymeacoffee or similar for synap5e. I'd love to contribute to a drinks fund.
I scoured the internet and I just can't find anything on how to install this plugin ? Can you add a couple of lines in your readme ?
Hi there! I would like to use this plugin for the following use case:
I have an intro scene that I would like to screenshot to create thumbnails. Basically I want to take a screenshot 4 seconds after the scene started. I don't mind the script to try to take more screenshots after 8/12/ 16/... seconds as the scene is automatically switched, but it would be important that the screenshot is consistently taken 4 seconds after screen start. When I tried it, the screenshots seemed to be happening at different times, though.
Would this be somehow possible?
I have a source (screen) with some cut and repositioning; it is from a VR screen (2 eyes in the same screen) and I capture/stream only one half of the screen.
The screenshot however is for the physical screen (2 eyes) and not for the output (one eye only, half of the screen)
Hello,
I absolutely love this plugin, how simple and easy it is to use, yet how powerful it can be if used correctly. However, I was just hoping I can suggest some improvements to make it better.
First of all, I would love the ability to save screenshots to file names based on order within a directory. This may prove hard to do, but I believe that this could be made possible by incorporating a function which allows you to save to the same file without overwriting, therefore requiring the folder to create copies of the same file name with predictable suffixes. This would help to automatically re-incorporate multiple screenshots in OBS without needing to find image locations each time.
Secondly, the ability to have a smaller timing gap followed by a larger timing gap or vice versa between screenshots will add a sense of dynamism to the plugin in my opinion. For example, I would like the first screenshot of a source to be taken after 10 seconds, followed by a break of 1 minute before the next screenshot is taken, then back to 10 seconds. Can this be done at all?
Thank you in advance for your response.
Hi,
is a new version available for OBS 29 ?
The current 1.5.2 version makes it crash as soon as you add the filter.
is there a way to use this plugin without visualizing the source it's taking the screenshots from ?
thanks
Hey, this plugin is really great. But when I have many scenes and I need to pick which to screenshot, it's really impractical to set hotkeys for each scene. Please consider adding a feature to capture the output.
Hello,
First of all, excellent work with the plug-in thus far. I have tested it and it seems to be working perfectly. Here are a few things I noticed and a few recommendations.
When you search for the hotkey you cannot find it, only when you type in scream in the search filter you can find it. I believe you have already commented this and to be fixed in the near future.
Question: what is the output format? is it PNG or JPEG please.
I have never dealt with the RAW images before, But at present I'm unable to open them. Do I need a special software?
Recommendations:
I have just done some testing and I have seen that you can set up the filter many times and use the same hotkey and it only works on the active scene Maybe the request for 4.2 is redundant.
Again thank you very much for your efforts. Much appreciated.
I have the screenshots getting saved to a folder as intended; however, I would like to then have the most recent screenshot show up as a source in my OBS. Is there a way I can have OBS select the most recent screenshot in the folder? Or perhaps have new screenshots overwrite the previous screenshot?
My streaming computer is not set up for compiling C code, and I can imagine I'm not alone. Can we get a prebuilt version of this plugin to throw into OBS?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.