CameraEngine
CameraEngine copied to clipboard
how to capture square video
I tried to hardcode height and width for VideoEncoder's process,
_encoder = [VideoEncoder encoderForPath:path Height:_cy width:_cx channels:_channels samples:_samplerate];
as follows:
// hard-code resolution
NSDictionary* actual = _videoDataOutput.videoSettings;
// _cy = [[actual objectForKey:@"Height"] floatValue]; // _cx = [[actual objectForKey:@"Width"] floatValue]; _cy = VIDEO_RESOLUTION_HEIGHT; _cx = VIDEO_RESOLUTION_WIDTH;
unfortunately, the video was distorted, though, it's square, indeed.
Good ! That's a good feature to implement. Let's do it. :+1: