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: extracting text from a movie text track



On Aug 28, 2006, at 2:50 PM, Quach, Hau wrote:

Can someone please tell me if it is possible to extract text from a movie’s text track using QT _javascript_?  I have an encoder application which basically put some kind of timestamps in a movie text track.  I was hopping that by doing this, I can read the timestamps out of a streaming movie and take some appropriate actions depends on the current timestamp.  I really appreciate any help that anyone can provide


This is entirely speculative, but it seems like you should be able to:
1. open a movie
2. find the text track (a track whose media is of type TextMedia)
3. use Media.getNextInterestingTime() to find the start time of the next text sample
4. call getSample() at that time, get the bytes out of the returned QTHandle, and create a string from them
5. repeat steps 3 and 4 until there are no more interesting times

I'm too busy to experiment with this, but that seems like what you'd want to try...

--Chris


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-java/email@hidden

This email sent to email@hidden

References: 
 >extracting text from a movie text track (From: "Quach, Hau" <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.