On Thu, 27 Nov 2003 14:39:38 +1100, Glenn McNolty
<email@hidden> wrote:
> Dear all,
>
> A while back I heard of an QT player add on that
> allowed files to be edited via time selection for in
> and out points. Rather than dragging those little
> triangle s back and forth. Does anybody know where I
> can get hold of that application/Quicktime Player add
> on.
It's trivial to make an Applescript which allows you to enter timecodes in
order to manipulate the selection handles and the playback head very
precisely. I have several snippets of code which does the timecode
conversion (going both ways and using different algorithms), and several
other related scripts if you are interested:
Here's a useful one:
my HMSF_to_timescale("00:01:23.009") -- example call
on HMSF_to_timescale(str)
set tscale to 600 -- QT default, (QTVR is 3600)
set minutez to tscale * 60
set hourz to minutez * 60
set sel_hours to ((characters 1 thru 2 of str) as string) as integer
set sel_mins to ((characters 4 thru 5 of str) as string) as integer
set sel_seconds to ((characters 7 thru 8 of str) as string) as integer
set tscaleEnd to (length of (tscale as string)) + 9
set sel_frames to ((characters 10 thru tscaleEnd of str) as string) as
integer
set t to sel_frames
set t to t + (sel_seconds * tscale)
set t to t + (sel_mins * minutez)
set t to t + (sel_hours * hourz)
return t
end HMSF_to_timescale
To set the selection use something like this:
tell application "QuickTime Player"
tell movie 1
select at 0 to 600
end tell
end tell
This snippet will select the first second of the frontmost movie if the
movie's timebase is 600.
You can also select a series of frames exactly, which is especially useful
if you have been stretching using 'Add Scaled', but that's a bit more
complicated. It's useful to have a script which does 'select next frame of
track N', or 'extend selection to include next frame of track N' or
whatever.
It's difficult to come up with one-size-fits-all script, because there are
many ways of manipulating selection handles that might be imagined as
'obvious', but just shout if you need help putting a script together for
your needs. I have several little utility scripts for manipulating
selections which I run from the scriptmenu. They just have simple dialog
boxes, but they do the job just fine, without having to leave QT player.
Brennan
_______________________________________________
quicktime-talk mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/quicktime-talk
Do not post admin requests to the list. They will be ignored.