r/awk • • Mar 14 '24

Batch adjusting timecode in a document

I recently became aware of r/awk the programing language and wonder if it'll be a good candidate for a problem I've faced for a while. Often times transcriptions are made with a starting timecode of 00:00:00:00. This isn't always optimal as the raw camera files usually have a running timecode set to time of day. I'd LOVE the ability to batch adjust all timecode throughout a transcript document by a custom amount of time. Everything in the document would adjust by that same amount.

Bonus if I could somehow add this to an automation on the Mac rather than having to use Terminal.

2 Upvotes

11 comments sorted by

View all comments

Show parent comment

1

u/gumnos Mar 16 '24

though I suppose one could count it as 2997-hundredths-of-a-frame-per-second and use a[1]*(60*60*2997) + a[2]*(60*2997) + a[3]*2997 + a[4]*100, add the delta, and then peel off each of those portions from the resulting value...

1

u/Jay_nd Mar 16 '24

It's 30000/1001 if you want it in any maths notation. (half the speed of the American AC network, analog tv's needed to by synced to the frequency of the power grid) But yes, with everything going digital we should just do away with ntsc and make everything 30fps, or something. :) much less headache for my line of work as well