• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Interpreting [movie currentTime]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Interpreting [movie currentTime]


  • Subject: Interpreting [movie currentTime]
  • From: Joseph Ayers <email@hidden>
  • Date: Tue, 25 Mar 2008 11:50:36 -0400
  • Organization: Northeastern University

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@hidden
http://www.neurotechnology.neu.edu/


begin:vcard
fn:Joseph Ayers
n:Ayers;Joseph
org:Northeastern University;Biology
adr:East Point, 430 Nahant Road;;Marine Science Center;Nahant;MA;01908;USA
email;internet:email@hidden
title:Professor
tel;work:(781) 581-7370 x309
tel;fax:(781) 581-6076
tel;home:(781) 592-0834
tel;cell:(617) 755-7523
url:http://www.neurotechnology.neu.edu/
version:2.1
end:vcard

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Interpreting [movie currentTime]
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Windows networking API
  • Next by Date: Providing synch/asynch API
  • Previous by thread: Re: Windows networking API
  • Next by thread: Re: Interpreting [movie currentTime]
  • Index(es):
    • Date
    • Thread