Mailing Lists: Apple Mailing Lists

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

Parsing QT MOV file to get duration, video dimensions ... good references, examples?



I'm trying to write a routine (in Delphi, though that's not the problem)
that will read a MOV file and extract the information that lets me
figure out the duration of the video, and the size of the video. This is
to replace a different utility I have that basically loads the movie and
then I can query the values. It works, but runs into problems on a
server that has no audio subsystem. In fact, it used to work with
Quicktime 6.5.2 (this is Windows, btw...) but breaks under Quicktime 7
with an error about AudioDeviceContext.

I found the Quicktime File Format PDF on the Apple site, and I have a
routine that fairly quickly can get the duration for the MOV files I
have. However, the video size is proving more problematic.

I'm finding the  mvhd  and then a  tkhd  in my file. However, I'm not
clear on _which_ tkhd I should use when there is more than one. 

Is there a more generic tutorial or explanation than the Quicktime file
format PDF available online? Or is there some rule of thumb that I just
don't know?

Helpful pointers appreciated (no pun intended)...

Thanks...
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/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.