         navigationController?.pushViewController(gifEditorVC, animated: true)
     }
     
+    func cropVideoToSquare(rawVideoURL: NSURL, start: NSNumber?, duration: NSNumber?) {
+        let videoAsset = AVAsset(url: rawVideoURL as URL)
+        let videoTrack = videoAsset.tracks(withMediaType: AVMediaTypeVideo).first! as AVAssetTrack
+        
+        let videoComposition = AVMutableVideoComposition()
+        videoComposition.renderSize = CGSize(width: videoTrack.naturalSize.height, height: videoTrack.naturalSize.height)
+        videoComposition.frameDuration = CMTime(value: 1, timescale: 30)
+        
+        let instruction = AVMutableVideoCompositionInstruction()
+        instruction.timeRange = CMTimeRange(start: kCMTimeZero, duration: CMTimeMakeWithSeconds(60, 30))
+        
+        
+    }
+    
+    
+    
+    
+    
+    
+    
+    
+    
 }


import MobileCoreServices
import UIKit

// MARK: - Constants


            let start: NSNumber? = info["_UIImagePickerControllerVideoEditingStart"] as? NSNumber
            let end: NSNumber? = info["_UIImagePickerControllerVideoEditingEnd"] as? NSNumber
            var duration: NSNumber?
            if let start = start, let end = end {
                duration = NSNumber(value: (end.floatValue) - (start.floatValue))
            } else {
                duration = nil
            }
