 
         var formatDescription = CMSampleBufferGetFormatDescription(sampleBuffer)
 
-        //CFRetain(sampleBuffer);
-        //CFRetain(formatDescription);
-
         dispatch_async(self.movieWritingQueue!) { () -> Void in
             
             if !assetWriterInput.readyForMoreMediaData {

        let fileName = String(format: "output%02d.mov", arguments: [self.movieURLs.count + 1])
        let outputPath = NSTemporaryDirectory().stringByAppendingString(fileName)
        self.outputURL = NSURL(fileURLWithPath: outputPath)
        //println("outputPath = \(outputPath)")
        
        // delete file before save the one
        let fileManager = NSFileManager.defaultManager()

        self.touching = false
        
        //println("[stopping recording] duration :\(CMTimeGetSeconds(self.recordStartTime))")
        self.assetWriterInputVideo.markAsFinished()
        self.assetWriterInputAudio.markAsFinished()
        self.assetWriter?.endSessionAtSourceTime(self.recordStartTime)
