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

Feature request: Auto-stop on low amplitude threshold (after a configurable delay) #136

Open
JonasCz opened this issue Dec 28, 2022 · 2 comments
Labels
Domesday Duplicator GUI Issue only affecting the GUI capture application enhancement

Comments

@JonasCz
Copy link

JonasCz commented Dec 28, 2022

I'm a complete C++ noob, so I think have no chance of implementing this well myself, but just in case someone would like to take this on:

I'd love to see an automatic stop feature, triggered when the amplitude measurement drops below a certain threshold for a configurable amount of time.

My usecase is VHS captures, for which the amplitude drops to a very low level when the on-tape recording ends. This would help to avoid creating needlessly big files.

Thanks for creating this amazing project!

@atsampson
Copy link
Collaborator

Yes, this is a feature I'd been thinking about as well - the current master now has support for live amplitude measurement, so it shouldn't be too hard to do this. It just needs a little state machine - start, wait for the amplitude to go above a threshold, then if it drops below that threshold for more than N seconds, stop capturing and truncate the output file back to the point where the level fell.

(I wrote this script a while ago to do the same thing after the fact, and it seems to work well...)

@JonasCz
Copy link
Author

JonasCz commented Dec 28, 2022

Thanks, that works really well! And it's fast too.

I didn't know that it's possible to truncate ("shorten") a file in-place without a copy operation, learn something new every day :-)

@simoninns simoninns added enhancement Domesday Duplicator GUI Issue only affecting the GUI capture application labels Aug 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Domesday Duplicator GUI Issue only affecting the GUI capture application enhancement
Projects
None yet
Development

No branches or pull requests

3 participants