• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSMovieView: Get frame counter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMovieView: Get frame counter


  • Subject: Re: NSMovieView: Get frame counter
  • From: "Douglas A. Welton" <email@hidden>
  • Date: Sun, 15 Jun 2003 09:18:11 -0400

Hi Jens,

> How do I get the current frame, the selection start and selection end
> from a NSMovie/NSMovieView ?

Cocoa, per se, isn't going to do this for you. You're going to have to get
native with the appropriate QuickTime calls.

Use the -QTMovie selector from NSMovie to get the opaque data structure that
points to actual QuickTime Movie (defined as type "Movie").

You can then use functions like GetMovieDuration() and GetMovieTimeScale()
to do the computations you need. Check out the QuickTime sample code for
QTTimeCode. This example will show you almost everything you need.

> I'd also like to get the selection range. It doesn't appear to me how
> this is possible.
>
> Finally, I'd like to grab a frame, modify it, and write it back.
> I know that QuickTime player can do this, you can even paste TIFF
> images into the movie-player, so this must be possible from my own
> player as well. ;)

As for editing functions, getting the selection start/stop points or
inserting next frames or movies, check out the "Editing Movies" section in
the QuickTime 6 API Reference. All the functions you will need will be
there.

You may want to take a look at the SimpleCocoaMovie sample code, and the
QuickTime Sample code for CocoaCreateMovie, CocoaVideoFrameToNSImage, and
CocoaVideoFrameToGWorld.

If you need more sample code, contact me off-list.

later,

douglas
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: NSMovieView: Get frame counter
      • From: Jens Bauer <email@hidden>
References: 
 >NSMovieView: Get frame counter (From: Jens Bauer <email@hidden>)

  • Prev by Date: Re: Subclass
  • Next by Date: Re: NSTextView and indenting it...
  • Previous by thread: NSMovieView: Get frame counter
  • Next by thread: Re: NSMovieView: Get frame counter
  • Index(es):
    • Date
    • Thread