Navigation Menu

Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

How to write video with HEIGHT > WIDTH #305

Closed
belakva opened this issue Mar 6, 2016 · 0 comments
Closed

How to write video with HEIGHT > WIDTH #305

belakva opened this issue Mar 6, 2016 · 0 comments
Labels

Comments

@belakva
Copy link

belakva commented Mar 6, 2016

I am trying to capture video with PBJVision.

I set up camera like this

vision.cameraMode = PBJCameraModeVideo;
vision.cameraOrientation = PBJCameraOrientationPortrait;
vision.outputFormat = PBJOutputFormatWidescreen;

And this produces output where width > height.

Setting orientation to Landscape ROTATES the stream.

I have been trying to record video with GPUImage, and there I can

videoCamera = [[GPUImageVideoCamera alloc] initWithSessionPreset:AVCaptureSessionPreset1280x720
cameraPosition:AVCaptureDevicePositionBack];
videoCamera.outputImageOrientation = UIInterfaceOrientationPortrait;

_movieWriter = [[GPUImageMovieWriter alloc] initWithMovieURL:_movieURL size:CGSizeMake(720.0, 1280.0)];

So that i get vertical output.

I would like to achieve vertical output for PBJVision, because IMHO it is much better encapsulated.

What method/property of AVFoundation is responsible for giving the vertical output instead of horizontal?

Sorry for the question, I have been googling 2 days - can't find the answer.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants