SDAVAssetExportSession icon indicating copy to clipboard operation
SDAVAssetExportSession copied to clipboard

Unable to set the transform using SDAVAssetExportSession

Open iteshapptree opened this issue 10 years ago • 1 comments

Is there any way by which we can set the video transform using SDAVAssetExportSession ?

iteshapptree avatar Dec 18 '14 09:12 iteshapptree

Yes. You can use the videoComposition property of an SDAVAssetExportSession object. For an example of how I do this (in Swift), see my VideoExport project - https://github.com/scottcarter/VideoExport

Look for the following call in ViewController.swift:

encoder.videoComposition = getVideoComposition(videoAsset, videoSize: videoSize)

The function getVideoComposition sets the video transform.

scottcarter avatar Dec 21 '14 04:12 scottcarter