• 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: NSImage into a QTMovie Object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImage into a QTMovie Object


  • Subject: Re: NSImage into a QTMovie Object
  • From: Development <email@hidden>
  • Date: Thu, 3 Sep 2009 20:11:28 -0700

I should have been clear about my question. Sorry about that. The problem I am having is that when the resulting movie is saved it has a duration of 0 and not even the first frame shows. So basically although my print out actually said things were being added it says they are added as tracks and the overall duration remains 0. What am I doing wrong to cause this?

On Sep 3, 2009, at 6:56 PM, Development wrote:

I'm newish to the QTKit. I'm trying to init a movie object then place frames in individually. Each frame is an NSImage.

Here is the code I'm using:

qtMovieObject = [QTMovie movie]; //this is defined with the app starts up


Then for each frame:

NSImage * screenImage = [[NSImage alloc]initWithCGImage:theFrame];

NSDictionary* movieAttributes = [NSDictionary dictionaryWithObjectsAndKeys: @"tiff", QTAddImageCodecType, [NSNumber numberWithLong: codecHighQuality],QTAddImageCodecQuality, nil];

[qtMovieObject addImage:screenImage forDuration:QTMakeTimeWithTimeInterval(fps) withAttributes:movieAttributes];
//[[screenImage TIFFRepresentation]writeToFile:[NSString stringWithFormat:@"%@/%i.tif",tmpPath,frameNum]
// atomically:YES];
[qtMovieObject updateMovieFile];
_______________________________________________


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

_______________________________________________

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


References: 
 >NSImage into a QTMovie Object (From: Development <email@hidden>)

  • Prev by Date: Re: Has the behavior of NSUserDefaults changed in Snow Leopard?
  • Next by Date: Re: Finding Out When my NSSplitView has Moved
  • Previous by thread: NSImage into a QTMovie Object
  • Next by thread: Massive slowdown in NSArrayController selections in 10.6
  • Index(es):
    • Date
    • Thread