Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
02-17-2012, 10:28 PM #1
- Join Date
- Feb 2012
- Charlotte, NC
- Thanked 0 Times in 0 Posts
Scripts for calculating dropframe video timecode
I didn't see anything like this on the site and I thought this might be useful for anyone developing for the television industry. There are 2 functions. CnvToFrames takes a text input (formatted as HH:MM:SS:FF) timecode address and converts it to a total count of frames equal to the address. It is for dropframe TC but the code should be easy to modify for NonDrop or PAL or any other framerate. CnvToTime does the reverse. I found this useful for, among other things performing calculations on timecode, and reformatting the results as readable text. e.g.
CnvToFrames(end of segment) - ConvToFrames(start of segment) = segment length
Hope this can be of some use.
Last edited by MaDmiX; 02-19-2012 at 02:51 PM. Reason: Corrected an error in code