Re: MyRecorder example - compressing video
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