objective c - VideoStabilizationSupport in iOS using AVFoundation -
i using avfoundation record video in ios app. working correctly. trying enable video stabilization while recording video. here code
i have avcaptureconnetion as
@property(nonatomic, retain) avcaptureconnection *videoconnection;
code enable video stabilization when available
self.videoconnection = [self.videooutput connectionwithmediatype:avmediatypevideo]; if([self.videoconnection isvideomirroringsupported] && self.videodevicetype == videodevicetypefrontcamera) { [self.videoconnection setvideomirrored:yes]; nslog(@"video mirroring supported"); } else nslog(@"video mirroring not supported"); if ([self.videoconnection isvideostabilizationsupported]) { [self.videoconnection enablesvideostabilizationwhenavailable]; nslog(@"video stabilization supported"); } else nslog(@"!!! video stabilization not supported");
everytime run code , getting below output in xcode console
video mirroring supported !!! video stabilization not supported
why getting video stabilization not supported everytime ? checked on ios 6 & 7 ipod touch 5g , ipad 2, ipad mini.
according appledocs , even so, not source formats , video resolutions supported.
in app , recorded video resoultion 640*480 & mp4 format. causing issue ? if yes, supported resolution & formats ? appledocs not provide list of supported resolutions& formats.
can tell me ? in advance.
Comments
Post a Comment