[Solved]File Size and Run Time

Skeezix

Member
Joined
Jun 4, 2017
Messages
97
Reaction score
15
Country
United States
Dash Cam
Viofo A119
Sorry for being such a dummy, but I'm having a heck of a time figuring out a formula for the following:

Given the length of a clip in minutes and seconds, and given its file size in KB, how does one figure how long a clip of any given length will be in minutes and seconds?

For example, I have a clip whose file size is 497,571 bytes and whos running time is 8 minutes and 39 seconds. How can I find out in minutes and seconds how big that file would be if I shortened it to say, 5 minutes and 45 seconds?
 
Last edited:
8m 39s = 8 * 60 + 39 = 519 sec
497571 / 519 = 958.71 bytes = 1 sec.

The same calculation you do with 5m 45s.

5m 45s = 5 * 60 + 45 = 345 sec
345 * 958.71 = 330754.95 bytes
 
Sorry for the duplicate post, I hit something on the keyboard in the middle of my post and the post disappeared. Wasn't behind any windows, so I started another post.

I think it would be easier (since I'm doing this as a hobby, not as work) if I just used the file size reported by Windows and divide it by the runtime in minutes? That will give me what I need. That's what niko said, except he used seconds (like I mistakenly wanted in my original post... :)

Thank you niko!
 
Back
Top