FROM : Chris Adamson
DATE : Fri Apr 25 20:26:46 2008
Sorry to come in late, but this is something that occasionally comes
up on quicktime-api and quicktime-java. To get text or images on top
of a movie, sometimes it's easier to skip the programming approach and
achieve the effect with authoring. Using the old QuickTime API, you
could add a text track or a one-sample video track (higher in the Z-
order, and with a suitable compositing mode), to achieve this effect
without having to hack the rendering pipeline.
Even easier still, just author a SMIL movie as an XML file and load
that as your movie. Example on my blog: <http://www.subfurther.com/blog/?p=84
>
Authoring won't always take you as far as you need to go, of course;
in the case of a capture preview, you almost certainly have to do
something clever with the QTCaptureView, or via Core Animation with
the layers (Bill Dudney has an example of this in his new CA book from
the Pragmatic Programmers).
--Chris
On Wed, 23 Apr 2008 16:08:38 -0400 "douglas a. welton" wrote:
> Bob & Randall,
>
> If all you want to do is slap some arbitrary text over a movie, I
> would suggest that you take a look at using QTMovieLayer and
> CATextLayer as the mechanism for doing this. I don't have any code
> that I can share with you on this, but a previous client project used
> these two Core Animation objects with excellent results.
DATE : Fri Apr 25 20:26:46 2008
Sorry to come in late, but this is something that occasionally comes
up on quicktime-api and quicktime-java. To get text or images on top
of a movie, sometimes it's easier to skip the programming approach and
achieve the effect with authoring. Using the old QuickTime API, you
could add a text track or a one-sample video track (higher in the Z-
order, and with a suitable compositing mode), to achieve this effect
without having to hack the rendering pipeline.
Even easier still, just author a SMIL movie as an XML file and load
that as your movie. Example on my blog: <http://www.subfurther.com/blog/?p=84
>
Authoring won't always take you as far as you need to go, of course;
in the case of a capture preview, you almost certainly have to do
something clever with the QTCaptureView, or via Core Animation with
the layers (Bill Dudney has an example of this in his new CA book from
the Pragmatic Programmers).
--Chris
On Wed, 23 Apr 2008 16:08:38 -0400 "douglas a. welton" wrote:
> Bob & Randall,
>
> If all you want to do is slap some arbitrary text over a movie, I
> would suggest that you take a look at using QTMovieLayer and
> CATextLayer as the mechanism for doing this. I don't have any code
> that I can share with you on this, but a previous client project used
> these two Core Animation objects with excellent results.






Cocoa mail archive

