AVCaptureMovieFileOutput fails to export with larger than 720p frames

Originator:krisharris
Number:rdar://12220933 Date Originated:01-Sep-2012 01:17 AM
Status:Open Resolved:
Product:Mac OS X SDK Product Version:10.8
Classification:Serious Bug Reproducible:Always
 
Summary:
I'm using AVCaptureScreenInput to record portions of the screen. (and thus using AVCaptureMovieFileOutput through AVCaptureSession). My code is based on AVScreenShack 1.0, which exhibits the same issue under 10.8. (AVScreenShack 2.0 has other bugs I will report in a subsequent radar)

When the AVCaptureMovieFileOutput should write a quicktime file with frames larger than 1280x720 (in either dimension), no file is written and no error is reported.

I'm using AVCaptureSessionPresetHigh, which does not scale down the source frames.
The AVCaptureScreenInput is initialized with a display that is larger than 1280x720, and either has no cropRect set, or has a cropRect set that is larger than 1280x720.

Steps to Reproduce:
(in AVScreenShack) Hit "Start"
(specifically) call -startRecordingToOutputFileURL:recordingDelegate: with a valid file URL,on an otherwise correctly setup instance of AVCaptureMovieFileOutput that's an output of instance of AVCaptureSession with a session preset of AVCaptureSessionPresetHigh which has an input of at least a AVCaptureScreenInput that's sending frames larger than 1280x720

Expected Results:
A video file would be written to the specified URL, or failing that some sort of error would be reported.

Actual Results:
Nothing.

Regression:
AVCaptureMovieFileOutput successfully exported frames larger than 1280x720 under 10.7.0, and I first observed this bug under 10.8.0. However, customers have reported bugs resulting from this in my app running under 10.7.4. I don't have the resources to test further.

Notes:
If AVCaptureScreenInput is sending frames smaller than 1280x720 (either due to the size of the screen or the size of the cropRect), everything works as expected.

If the sessionPreset is not AVCaptureSessionPresetHigh (all other session presets scale the exported frames to <= 1280x270), everything works as expected regardless of the size of the frames sent by AVCaptureScreenInput.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!