{"action":"opened","issue":{"url":"https://api.github.com/repos/remirobert/CameraEngine/issues/5","labels_url":"https://api.github.com/repos/remirobert/CameraEngine/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/remirobert/CameraEngine/issues/5/comments","events_url":"https://api.github.com/repos/remirobert/CameraEngine/issues/5/events","html_url":"https://github.com/remirobert/CameraEngine/issues/5","id":116725813,"number":5,"title":"how to capture square video","user":{"login":"zinwalin","id":5416196,"avatar_url":"https://avatars.githubusercontent.com/u/5416196?v=3","gravatar_id":"","url":"https://api.github.com/users/zinwalin","html_url":"https://github.com/zinwalin","followers_url":"https://api.github.com/users/zinwalin/followers","following_url":"https://api.github.com/users/zinwalin/following{/other_user}","gists_url":"https://api.github.com/users/zinwalin/gists{/gist_id}","starred_url":"https://api.github.com/users/zinwalin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zinwalin/subscriptions","organizations_url":"https://api.github.com/users/zinwalin/orgs","repos_url":"https://api.github.com/users/zinwalin/repos","events_url":"https://api.github.com/users/zinwalin/events{/privacy}","received_events_url":"https://api.github.com/users/zinwalin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-13T08:50:42Z","updated_at":"2015-11-13T08:50:42Z","closed_at":null,"body":"I tried to hardcode height and width for VideoEncoder's process,            \r\n\r\n _encoder = [VideoEncoder encoderForPath:path Height:_cy width:_cx channels:_channels samples:_samplerate];\r\n\r\n\r\nas follows:\r\n\r\n        // hard-code resolution\r\n        NSDictionary* actual = _videoDataOutput.videoSettings;\r\n//        _cy = [[actual objectForKey:@\"Height\"] floatValue];\r\n//        _cx = [[actual objectForKey:@\"Width\"] floatValue];\r\n        _cy = VIDEO_RESOLUTION_HEIGHT;\r\n        _cx = VIDEO_RESOLUTION_WIDTH;\r\n\r\nunfortunately, the video was distorted, though, it's square, indeed."}}