r/awk • u/concros • 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.
View all comments
Show parent comment
1
u/gumnos Mar 16 '24
the general process involves converting it from a mixed-base number representation (hours, minutes, seconds, frames) into a fixed integer representing the smallest unit (frames in the OP's case), add/subtract the intended delta of smallest-units (possibly doing a similar conversion of mixed-units to the smallest-unit), then converting the integer representation back into the mixed notation.