• 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: MyRecorder example - compressing video
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MyRecorder example - compressing video


  • Subject: Re: MyRecorder example - compressing video
  • From: Nicko van Someren <email@hidden>
  • Date: Sun, 23 Dec 2007 18:43:08 +0000

On 17 Dec 2007, at 19:38, Luca Torella wrote:
i'm playing with the MyRecorder example from Apple (http://developer.apple.com/samplecode/MYRecorder/index.html ). I found the new QTKit really nice to use. Since the video recorded from the iSight is really big (it's uncompressed), I tried to see how to compress the video recorded to the hard disk, but without succes.
I found that the class QTCaptureFileOutput has a method called setCompressionOptions:forConnection: which sounds good for the purpose, but it needs an instance of the class QTCaptureConnection which I'm not able to easily get, so i think I'm missing something.

QTCaptureFileOutput inherits from QTCaptureOutput, an abstract superclass that contains a single method, -(NSArray *)connections which returns an array of QTCaptureConnection objects. The connection you need will be in that list. If you are capturing audio as well as video you might need to go through and set compression options appropriately on each of the connections but if you are just capturing the iSight video then there will only be one element in the array.


Cheers,
	Nicko


_______________________________________________

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: 
 >MyRecorder example - compressing video (From: Luca Torella <email@hidden>)

  • Prev by Date: Custom view flashes when resizing frame
  • Next by Date: Re: Trying to get my head around an NSGenericException/Apple Event error
  • Previous by thread: Re: MyRecorder example - compressing video
  • Next by thread: NSColorPanel as sheet?
  • Index(es):
    • Date
    • Thread