• 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
Re: QuickTime movie frame rate or duration (in time scale) of a frame
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QuickTime movie frame rate or duration (in time scale) of a frame


  • Subject: Re: QuickTime movie frame rate or duration (in time scale) of a frame
  • From: Brennan <email@hidden>
  • Date: Wed, 20 Feb 2002 10:51:53 +0100

Roger Howard <email@hidden> wrote

> I need to calculate the duration (in time scale units) of a single frame of
> a video track in a Quicktime movie... This would seem to be a very simple
> task, simply divide the movie's "time scale" value by the video track's
> frame rate, which would give the duration of a single frame.
>
> The only problem is that I cannot find a property for "frame rate" of any
> object in the Quicktime Player object model... Nor can I find any other
> property (or properties) with which I could calculate that value.
>
> Can anyone help, or is this is a known limitation of the object model??
> Seems like a glaring omission at best, so I remain hopeful I'm missing
> something.

In the movie class you'll find 'preferred rate'. Would that do you?

Even easier, just look in the frame class - there's a duration property!

tell app "Quicktime Player"
tell movie 1
tell track 1
get (duration of frame 1)
end tell
end tell
end tell

n.b. Individual frames can have different durations, but if you are certain that the frames all have the same duration, then checking an arbitrary frame would be ok.

Brennan
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: copying styled text from TextEdit
  • Next by Date: Re: Setting Script Editor Application
  • Previous by thread: QuickTime movie frame rate or duration (in time scale) of a frame
  • Next by thread: Re: QuickTime movie frame rate or duration (in time scale) of a frame
  • Index(es):
    • Date
    • Thread