Possible to change bitrate?
aferriss opened this issue · comments
Adam Ferriss commented
Like the title says, wondering if it's possible to record higher bitrate videos.
I saw in the video settings there is
AVVideoAverageBitRateKey: [NSNumber numberWithInt:bitrate]
have you tried it?
ofZach commented
I've been poking around with this -- you can mess with the "NSDictionary * videoSettings" line, for example this is a jpeg with highest quality (makes a really big movie):
NSDictionary * videoSettings = [NSDictionary dictionaryWithObjectsAndKeys:
AVVideoCodecJPEG, AVVideoCodecKey,
[NSDictionary dictionaryWithObjectsAndKeys: [NSNumber numberWithFloat: 1.0], AVVideoQualityKey, nil] ,AVVideoCompressionPropertiesKey,
[NSNumber numberWithInt:self.videoSize.width], AVVideoWidthKey,
[NSNumber numberWithInt:self.videoSize.height], AVVideoHeightKey,
nil];