This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This sketches a script that will sample images from an AVAsset at a | |
// new framerate. This might be used to transcode a movie or create an | |
// animated GIF. | |
import AppKit | |
import AVFoundation | |
import CoreMedia | |
let FPS = 12 // The target framerate for the new movie. | |
let frameDuration = CMTimeMake(1, Int32(FPS)) |