Date: Thu Apr 13 09:29:27 MST 2000 From: Brennan Young <brennan@young.net> Subject: How to Create Quicktime Cue PointsYou can embed 'cue points' (or to use the correct QT nomenclature, a 'chapter track') using Quicktime Player and any common or garden text editor. These will be visible in the tempo channel dialog, or with the Quicktime cuepoint lingo.
You will need the Pro version of Quicktime to do this. If you are developing multimedia and you do not have Quicktime Pro, stop messing around and buy a license. It is a serious piece of kit. Apple just forgot to tell you how to use it.
Essentially, you just import any text file (which in the beginning can be blank or just with some dummy text) into Quicktime Player.
Either drag the text file onto the QT Player icon, or choose 'import' from the file menu.
This will generate a text track movie.
Incidentally:
Every carriage return will delimit a text 'sample'. One sample is visible at a time, and by default, each sample lasts one second.Read on and I'll tell you how to edit the timing and text of the chapters.
Chapter tracks assume one text sample per chapter. Keep your chapter names fairly brief.
OK back to the process...
This will 'paste' the text track into your movie and 'stretch' it so that its duration matches the selection in the movie you are pasting into (if you select only a small part of the timeline, the clipboard will be pasted to match the duration of the selection.)
HEY THERE!
The 'Add Scaled' functionality is my number 1 Quicktime tip which turns
QT Player from a player app into a really powerful 'media bricolage'
tool. It works with all other supported media types too such as Flash,
wired sprites, MIDI or whatever. Start playing around with 'Add Scaled'
and you can make some amazing things.
OK back to the process...
Anyway, you now have a text track added to your movie which has exactly the same length. Don't worry about the fact that it is visible, or that the text is all wrong, or the timing is out. I'm now about to tell you how to edit the text track in place;
When you convert it to a chapter track it should disappear from the main content window. (It doesn't always do this automatically. If not, you can disable it using Edit->'enable tracks').
That's about it!
If you want more accuracy, you can export the text track from Quicktime Player.
Think about whether you want the samples to be relative to the start of the movie, or to each other. I find relative to sample to be better in many cases.
The text descriptors looks a bit like HTML code or RTF tags, edit it manually, or (if you're smart) with any decent scripting language (PERL, Lingo, TCL, Applescript etc.)
The descriptors are described in detail (and with a few minor innacuracies) at
http://www.apple.com/quicktime/authoring/textdescriptors.html
You only need to look at this if you want to change fonts and style, or add hyper-references which is irrelevant for chapter tracks.
When you're done, reimport the file and Quicktime Player will convert the track just dandy. Don't forget to set the text track to a chapter track as described above.
Finally, here's a quick handler (D6.5 compatible) to work with QT
chapter tracks...
on goToChapter whichSprite, whichCueName
set mem = the member of sprite whichSprite
-- is it a quicktime sprite?
if the type of mem <> #quicktimeMedia then return
set Cues = the cuepointtimes of member mem
set cueNames = the cuepointnames of member mem
set whichCue = getPos(cueNames, whichCueName)
if not whichCue then return -- cuepoint not found
set cuePoint = getat(Cues, whichCue)
set cuePointMovieTime = integer(cuePoint*0.06)
set the movieTime of sprite whichsprite = cuePointMovieTime
end