Cocoanetics/DTCoreText — Issue #120: AVVideoCompositionCoreAnimationTool Failure
Author: MattFoley
Created: 2012-01-31 00:52:16+00:00
State: open

The layer of a DTAttributedTextView will not export correctly with AVVideoCompositionCoreAnimationTool on Device.

These two errors are produced in the console. These errors do not appear on the simulator where export works correctly.

Jan 30 16:39:29 unknown com.apple.mediaserverd[43] : CoreAnimation: unknown shared image id 2147485606

Jan 30 16:39:29 unknown com.apple.mediaserverd[43] : CoreAnimation: serialization error from context -232028404

These errors cause the export to report No Errors, and a complete status, however the video track of the exported file is corrupted and only shows a black screen. The video is also much to small, file size wise, making me think the Export bails out early at some point.

This does not happen if the (DTAttributedTextView).contentView.layer is used instead of (DTAttributedTextView).layer. I've been picking apart the source myself for awhile, and can come up with nothing. Neither can I find anyone who has ever seen these two notices produced in console.