• 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: QTMovie grabing while playback
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QTMovie grabing while playback


  • Subject: Re: QTMovie grabing while playback
  • From: Nikolai Hellwig <email@hidden>
  • Date: Fri, 25 Apr 2008 17:58:05 +0200

Hi,

the image comes from:

- (CIImage*) view: (QTMovieView *)view willDisplayImage: (CIImage *)image
{
...
// this is the conversion code
NSBitmapImageRep* bitmap = [[NSBitmapImageRep alloc] initWithCIImage: image];
...
}


regards,

nikolai

Am 25.04.2008 um 16:43 schrieb douglas a. welton:

Nikolai,

Can you post a snippet of the code you are using for the conversion?

regards,

douglas

On Apr 25, 2008, at 9:04 AM, Nikolai Hellwig wrote:
Hey,

thank you very much. it helped a lot. but i still got one problem.
The image I derive from
NSBitmapImageRep initWithCIImage
is much smaller than the original pixel size of the video. Because of that i can't use this method for production use. Is there another way to do this?


regards,
nikolai


Nikolai,

QTMovieView has a delegate method

- (CIImage*) view: (QTMovieView *)Target_View willDisplayImage: (CIImage *)New_Image

This method gives you a CIImage to play with before it is displayed in the Target_View. Check the header file for QTMovieView.h (near the bottom). I think the the MyMovieFilter sample code uses this method.

Note: Depending on what type of analysis you are doing you may need to convert the CIImage into a pixel-based format. If that is too slow you may want to get friendly with QTVisualContextIsNewImageAvailable() and the Display Link... check out the CIVideoDemoGL sample code.

regards,

douglas


On Apr 23, 2008, at 12:19 PM, Nikolai Hellwig wrote:

Hi,

I've done some image analysing software for QTKit Capture. It works fine. Now i need to use this for a quicktime movie.
I can playback the quicktime movie, but i can't find any delegate which tells my application, that a new frame is rendered. If i can get this information i could grab this frame in order to analyse it.


can anyone tell me how to do it? I don't want the user to click "grabFrame" or something like that.

regards
Nikolai Hellwig


Mit freundlichen Grüßen Nikolai Hellwig email@hidden

<Sands Logo Text klein.png>



Mit freundlichen Grüßen Nikolai Hellwig email@hidden



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: QTMovie grabing while playback
      • From: "douglas a. welton" <email@hidden>
References: 
 >QTMovie grabing while playback (From: Nikolai Hellwig <email@hidden>)
 >Re: QTMovie grabing while playback (From: "douglas a. welton" <email@hidden>)
 >Re: QTMovie grabing while playback (From: Nikolai Hellwig <email@hidden>)
 >Re: QTMovie grabing while playback (From: "douglas a. welton" <email@hidden>)

  • Prev by Date: Re: One pixel width. One.
  • Next by Date: Re: Weird Problem With CGImage
  • Previous by thread: Re: QTMovie grabing while playback
  • Next by thread: Re: QTMovie grabing while playback
  • Index(es):
    • Date
    • Thread