Mailing Lists: Apple Mailing Lists

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

Re: Track Header's duration value versus Media Handler Header's duration value



AHA !
Ok, that makes sense.
Thanks Tim :)

The track duration is expressed in the movie time scale, which I'm gonna guess is 600. So 18579 / 600 = 30.965 seconds of movie. The media duration is expressed in the media time scale, here 2997. Looks like 92900 / 2997 = 30.99 seconds of media. Not sure there is a problem here.


One more question:

Where are variables located in a Quicktime File ?

For example, if you set a variable like:
[defines]
password= "new_password"

Looking at the hex output, variables of any kind are no where to be found :(
Are they encrypted in some way ?
If you tell me, will the black helicopters start flying over my house ?


Why?
On the server side, I want to:
Dynamically write a password into a QT 'Password' movie
Inject that 'edited' movie [as data] into a pre-existing movie[like a film/commercial/whatever]
Feed the result into QT.


Until there is a Linux variant of QT API, I do not really see any other option.
Tell clients to install OS X server on their corporate systems...and they think you are telling a really good joke.
In contrast, the great thing about PHP is that it lives on the vast majority of Unix and Windows servers.
And, it is treating the QT file as straight data....



On a positive note:
I'm pretty sure I've figured out how to inject the 'password movie' data into a pre-existing qt movie on my linux server
Other than changing a couple of values like duration,
most of the work seems to involve changing all the offsets in the 'stco' table
From stco table field 1-7, use one offset value
From stco table field 8-table end, use another offset value
Thankfully, that is pretty easy to do with PHP :)


But, who knows, maybe there are more niggling gotchas ;)
Regardless, it is starting to make sense
And,   my hi-ball and aspirin consumption has declined.

g




On Oct 27, 2005, at 11:59 AM, Steve Israelson wrote:

Well, lets see.
The timescales can be different.
Not all the media is used in the track.
The media may be used multiple times in the track.
The track has blank spots where there is no media.

there may be other reasons.

On 27-Oct-05, at 11:53 AM, Graham Anderson wrote:


How does the Media Handler's duration value correlate to the Track Header's duration value ?
Is it related in some way ?



Track Header [tkhd] duration= 18579

Edits [edts]
    Edit List [elst]
         trackdur = 18579   //same value which makes sense

Media[mdia]
    Media Handler Header[mdhd]
        duration = 92900    // huh ?
        timescale = 2997


many thanks g



_______________________________________________
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


_______________________________________________ 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
References: 
 >Track Header's duration value versus Media Handler Header's duration value (From: Graham Anderson <email@hidden>)
 >Re: Track Header's duration value versus Media Handler Header's duration value (From: Steve Israelson <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.