-
Notifications
You must be signed in to change notification settings - Fork 2
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
Needs randomization in the output filename to avoid replacing #10
Comments
I've patched for my use; but maybe you can implement this better.
|
Instead of implementing random, we can keep a variable to append a growing number on each cut. Could you PR those changes? |
Sorry but no, I can't do that change since I don't know how to code in lua properly, this was just a workaround for me after hours of searching. Bear in mind that if you choose to use incremental numbers, once you close the player (script) it will restart said number list, so there is a risk of replacing old clips if the user is not aware (and tries to make more clips of the same movie file, with same name). More code would have to be put in place to mitigate this, by using some kind of "memory" (a file or something) that can keep track of the last number used and restart from there. That is why I chose random numbers instead. I say thanks to you, since this is THE ONLY script I found working on windows platform, all the others are unix based and they just don't work on windows. |
I'll take a look at it later. I'm now using Linux so I'll have to test on every platform. |
Hi there again, I made a modification to my modification. It seems using that randomizer command, its VERY likely to get the same numbers over and over again (not very good at randomizing). So after a couple of hours, I found a workaround by using
Results in filenames like: "1703019293 somethingsomething cut.mp4" [edit: removed offtopic] regards |
The script needs randomization numbers in its filename so we can make many clips without replacing the same file over and over.
I would like to contribute but I don't understand lua
Ideas:
The text was updated successfully, but these errors were encountered: