BradLarson / GPUImage

An open source iOS framework for GPU-based image and video processing
http://www.sunsetlakesoftware.com/2012/02/12/introducing-gpuimage-framework
BSD 3-Clause "New" or "Revised" License
20.25k stars 4.62k forks source link

Camera screen is white when try to modify data output source #2377

Closed Sunfocus closed 8 years ago

Sunfocus commented 8 years ago

//output file movieFileOutput = [AVCaptureMovieFileOutput new];

Float64 TotalSeconds = 3; //Total seconds int32_t preferredTimeScale = 30; //Frames per second CMTime maxDuration = CMTimeMakeWithSeconds(TotalSeconds, preferredTimeScale); //<<SET MAX DURATION movieFileOutput.maxRecordedDuration = maxDuration; movieFileOutput.minFreeDiskSpaceLimit = 1024 * 1024;

//add output file if ([videoCamera.captureSession canAddOutput:movieFileOutput]) { [videoCamera.captureSession addOutput:movieFileOutput]; } When i try to add my outputSource.Camera screen is white.

BradLarson commented 8 years ago

That's a question about AVFoundation, not GPUImage.