         guard let _ = try? NSFileManager.defaultManager().createDirectoryAtPath(outputDir.path!, withIntermediateDirectories: true, attributes: nil) else { return }
 
         let assetIdentifier = NSUUID().UUIDString
-        let tmpImagePath = NSURL(fileURLWithPath: NSTemporaryDirectory()).URLByAppendingPathComponent("\(assetIdentifier).tiff").path!
-        let tmpMoviePath = NSURL(fileURLWithPath: NSTemporaryDirectory()).URLByAppendingPathComponent("\(assetIdentifier).mov").path!
-        let imagePath = outputDir.URLByAppendingPathComponent("\(assetIdentifier).JPG").path!
-        let moviePath = outputDir.URLByAppendingPathComponent("\(assetIdentifier).MOV").path!
+        let basename = [
+            movieURL.lastPathComponent ?? "",
+            player.currentTime().stringInmmmsssSS,
+            assetIdentifier].joinWithSeparator("-")
+        let tmpImagePath = NSURL(fileURLWithPath: NSTemporaryDirectory()).URLByAppendingPathComponent("\(basename).tiff").path!
+        let tmpMoviePath = NSURL(fileURLWithPath: NSTemporaryDirectory()).URLByAppendingPathComponent("\(basename).mov").path!
+        let imagePath = outputDir.URLByAppendingPathComponent("\(basename).JPG").path!
+        let moviePath = outputDir.URLByAppendingPathComponent("\(basename).MOV").path!
         let paths = [tmpImagePath, tmpMoviePath, imagePath, moviePath]
 
         for path in paths {


    private var positionsLabelText: String {
        guard let time = posterFrameTime else { return "" }
        let duration = CMTimeGetSeconds(time)
        let minutes = Int(floor(duration / 60))
        let seconds = Int(floor(duration - Double(minutes) * 60))
        let milliseconds = Int((duration - floor(duration)) * 100)
        let timeString = String(format: "%02d:%02d.%02d", minutes, seconds, milliseconds)
        return "Poster Frame: \(timeString)"
    }

    @objc private func capturePosterFrame(sender: AnyObject?) {



class MovieDocumentViewController: NSViewController {
    private let movieURL: NSURL
    private let player: AVPlayer
    private let playerItem: AVPlayerItem
    private let imageGenerator: AVAssetImageGenerator
