I've found this question asked on a few Quicktime list archives, but
never with an answer. My turn...
I've created a system that records audio to files. Each file is
striped with a timecode track based on a timestamp that was created
when the recording was started. Essentially, this marks the recording
with real (as opposed relative) timecode. Now, I'm trying to wrap my
head around the idea of creating a search function. I want to be able
to navigate through the recordings to particular times of day., based
on that timecode track. Here is the pseudo-code I have so far...
TimeCodeDescription targetTCDef = from the timecode
track
TimeCodeTime targetTCTime = new TimeCodeTime
(targetHourInput.intValue(), targetMinuteInput.intValue(), 0, 0);
int targetFrame = tc.toFrameNumber(targetTCTime,
targetTCDef);
TimeCodeTime recordingStartTCTime = timecode at the
beginning of the recording
int recordingStartFrame = tc.toFrameNumber
(recordingStartTCTime, targetTCDef);
Then do subtraction to get the offset...
int offsetTargetFrame = targetFrame - startFrame
targetTick = (offsetTargetFrame * duration)
Am I approaching this right, or taking the long way around? Is there
a better way? Any suggestions?