SDAVAssetExportSession
SDAVAssetExportSession copied to clipboard
Unable to set the transform using SDAVAssetExportSession
Is there any way by which we can set the video transform using SDAVAssetExportSession ?
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.