Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When does the timer start? #15

Open
dbartholomae opened this issue Oct 2, 2020 · 4 comments
Open

When does the timer start? #15

dbartholomae opened this issue Oct 2, 2020 · 4 comments

Comments

@dbartholomae
Copy link

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?

@synap5e
Copy link
Owner

synap5e commented Oct 5, 2020

The timer should start after the scene is made visible.

I did some testing and as far as I can tell this is happening correctly.
I used a desktop capture of a clock, and used a 4s timer on the filter attached to that source.
I switched from an empty scene to the scene containing the capture and afaict the screenshot was always appearing 4s after, and every 4s after that if I stayed in the scene.

Here I switched to the scene at ...160 for 10s then back to the empty and then again to the scene at ...180
image

@dbartholomae
Copy link
Author

I've set up with 4 seconds and I've tried twice here:
image

As you see, the screenshots are less than 4 seconds apart, and do not start at the beginning of the scene (the text on the bottom is not typed out yet).

Here's my filter config:

                {
                    "balance": 0.5,
                    "deinterlace_field_order": 0,
                    "deinterlace_mode": 0,
                    "enabled": true,
                    "flags": 0,
                    "hotkeys": {},
                    "id": "screenshot_filter",
                    "mixers": 0,
                    "monitoring_type": 0,
                    "muted": false,
                    "name": "Screenshot",
                    "prev_ver": 436207618,
                    "private_settings": {},
                    "push-to-mute": false,
                    "push-to-mute-delay": 0,
                    "push-to-talk": false,
                    "push-to-talk-delay": 0,
                    "settings": {
                        "capture_hotkey": [],
                        "destination_folder": "D:/stream/thumbnails",
                        "interval": 4.0,
                        "raw": false,
                        "timer": true
                    },
                    "sync": 0,
                    "versioned_id": "screenshot_filter",
                    "volume": 1.0
                }

@synap5e
Copy link
Owner

synap5e commented Oct 7, 2020

Hmm thats odd you seem to be getting different results from my test...
I'm noticing now the timestamps on my images written are also not in sync with the timestamps/delay for when the image is taken. The timestamp on the filename can be out of sync from when the image is grabbed, since that is the save-time not the grab-time but I'm surprised how much delay is there.

Not capturing the first frame of the scene is expected - with 4s it should only capture the frame at 00:04.

Would you be able to try with 2 new scenes, one completely empty and one with a clock on it (e.g. like how I used desktop capture of https://time.is/Unix_time_now) and the filter on the source + no reuse of the source/scene anywhere else in OBS.

If it still seems odd, maybe there's something different with your scene setup. Having the scene/source referenced in a different scene could cause the timer to still fire in both scenes.

@dbartholomae
Copy link
Author

Here's the screenshots: The first two happened immediately after the scene started, not after 4 seconds, as can be seen that I was still in the process of bringin the timer into view (pressing Alt-Tab just after clicking the scene).

2020-09-08_17-49-35
2020-09-08_17-49-36
2020-09-08_17-49-39

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

No branches or pull requests

2 participants