Showing posts with label video. Show all posts
Showing posts with label video. Show all posts

Monday, January 10, 2011

AVCaptureConnection orientation

A lenyeg, hogy az AVCaptureConnection-on kell beallitani a videoOrientation-t es nem az AVCaptureSession-on vagy az AVCaptureDevice-on.

Valahogy igy:
for(int i = 0; i < [[captureOutput connections] count]; i++) {
AVCaptureConnection *captureConnection = [[captureOutput connections] objectAtIndex:i];
if([captureConnection isVideoOrientationSupported]) {
[captureConnection setVideoOrientation:[[UIDevice currentDevice] orientation]];
}
}

Fontos viszont, hogy AVCaptureVideoDataOutput connection-jan nem lehet videoOrientation-t (es videoMirrored-et) allitani.

Thursday, November 4, 2010

portrait-landscape video mode

Innen:

Videos on iPhone are recorded on Quicktime format. The Quicktime format always record videos on landscape and insert metadata on the archive with the orientation information (portrait or landscape) on the moment that was recorded.

...the Transformation Matrix that Apple applies to the Quicktime on the video stream property auxMatrix.

Monday, August 2, 2010

AVCaptureMovieFileOutput

Remelem nem baj, ha ezt ide bemasolom: