FROM : Joseph Ayers
DATE : Tue Mar 25 16:50:36 2008
I'm trying to determine the current frame, the total number of frames in
the movie a
and real time (in seconds from beginning of a movie using [movie
currentTime]
QTTime is defined as
typedef struct {
long long timeValue;
long timeScale;
long flags;
} QTTime;
with the comment:
// SMPTETime:
// hh:mm:ss:ff or hh:mm:ss;ff for drop frame
Tech Note 2138 http://developer.apple.com/technotes/tn2005/tn2138.html
states that this is AKA:
// ,,,dd:hh:mm:ss.ff/ts
which translates into:
days:hours:minutes:seconds:frames/timescale
But as I step through my movie the string that [movie currentTime]
returns is of the form
0:00:00:05.315/2997
0:00:00:05.415/2997 in consecutive frames
Continuing Stepping, I see transitions like
0:00:00:06.2918/2997
0:00:00:07.21/2997
0:00:00:07.121/2997 in consecutive frames
Is 315 in the first instance, the current frame, or 3? If its 3, what
is 15?
How do I translate this into a time in seconds?
Thanks,
Joseph Ayers
--
Joseph Ayers, Professor
Department of Biology and
Marine Science Center
Northeastern University
East Point, Nahant, MA 01908
Phone (781) 581-7370 x309(office), x335(lab)
Cellular (617) 755-7523, FAX: (781) 581-6076
Boston Office 444RI, (617) 373-4044
eMail: <email_removed>
http://www.neurotechnology.neu.edu/
DATE : Tue Mar 25 16:50:36 2008
I'm trying to determine the current frame, the total number of frames in
the movie a
and real time (in seconds from beginning of a movie using [movie
currentTime]
QTTime is defined as
typedef struct {
long long timeValue;
long timeScale;
long flags;
} QTTime;
with the comment:
// SMPTETime:
// hh:mm:ss:ff or hh:mm:ss;ff for drop frame
Tech Note 2138 http://developer.apple.com/technotes/tn2005/tn2138.html
states that this is AKA:
// ,,,dd:hh:mm:ss.ff/ts
which translates into:
days:hours:minutes:seconds:frames/timescale
But as I step through my movie the string that [movie currentTime]
returns is of the form
0:00:00:05.315/2997
0:00:00:05.415/2997 in consecutive frames
Continuing Stepping, I see transitions like
0:00:00:06.2918/2997
0:00:00:07.21/2997
0:00:00:07.121/2997 in consecutive frames
Is 315 in the first instance, the current frame, or 3? If its 3, what
is 15?
How do I translate this into a time in seconds?
Thanks,
Joseph Ayers
--
Joseph Ayers, Professor
Department of Biology and
Marine Science Center
Northeastern University
East Point, Nahant, MA 01908
Phone (781) 581-7370 x309(office), x335(lab)
Cellular (617) 755-7523, FAX: (781) 581-6076
Boston Office 444RI, (617) 373-4044
eMail: <email_removed>
http://www.neurotechnology.neu.edu/
| Related mails | Author | Date |
|---|---|---|
| Joseph Ayers | Mar 25, 16:50 | |
| Quincey Morris | Mar 25, 17:36 |






Cocoa mail archive

