Hey nstechbytes, I noticed an issue with your ShotCap application - it isn't following a capture <interval> close to what is specified at the command line. The source code at the execution point seems alright in that regard, but in practice, things don't go as the command line instructs your application to do (resulting in the GIFs I capture with shotcap and gifski having a much slower animation speed than those captured with, say, licecap).If you do not mind I already made a commandline tool for this.I think you have a look on it.
https://shotcap.pages.dev/
For example, if you have a Lua timer skin or even a simple current time skin displaying seconds on your screen, and run this command:
Code:
shotcap -f C.png -r 750,300,416,416 -format png -p -repeat 0.04 125
By the way, it's the same result when using either gifski or ffmpeg to convert those 125 .png images to a .gif image, so it's not the fault of one of them. Also, when using a capture interval of 1 full second at the command line, things seem to work as expected, so my guess is the fact that you declared and retrieved your repeatInterval variable as an int (i.e. integer) instead of a float / double or similar for a fractional value - resulting in shotcap only using integer seconds as the interval between captures. The Sleep function seems to discard fractional ms values in one of its overloads, so you might get away easily with just the variable type modifications - if not, you could convert the value from fractional to integer in place, at the time of executing the said function.
Statistics: Posted by Yincognito — Today, 3:15 pm