ofxiOSVideoWriter
ofxiOSVideoWriter copied to clipboard
Possible to change bitrate?
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?
hey @aferriss, nope haven't tried this yet.
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];