Greetings,
I have my own class for handling SMPTE timecode (formatted as 00:00:00:00). To work with AVPlayer, AVAsset, etc I need to use CMTime. I'd like to convert my SMPTE timecode to CMTime but am running into concerns because while I can convert my timecode to seconds stored in a Float64, CMTimeMakeWithSeconds requires an Int32 as the preferredTimeScale.
The quicktime I'm using as a test file (and most other i'd use) has the frame rate of 23.976.
Shouldn't I be using 23.976 as the preferredTimeScale in CMTime? If so, this needs to a be an Int32 at which point I lose precision.
Can anyone explain or point to examples how to best use CMTime for tracking timecode?
I notice the naturalTimeScale of my sample track is 24000. What does this really represent?
The specific use of converting SMPTE timecode to CMTime is allowing the user to manually enter a timecode and the playback cursor will jump to that spot in the AVPlayer.
Thank you very much for any ideas or suggestions on making this work.
-Cablet