julapy / ofxiOSVideoWriter

ofxiOSVideoWriter allows to screen record OF applications on iOS. (still very much a work in progress)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possible to change bitrate?

aferriss opened this issue · comments

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?

commented

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];