Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

timecode search



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?

thanks,

Jaime






_______________________________________________ Do not post admin requests to the list. They will be ignored. QuickTime-java mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quicktime-java/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.