REGRESSION: Drawing video into canvas gets about one frame every 5 seconds (AVFoundation)
http://www.craftymind.com/factory/html5video/CanvasVideo.html has terrible performance on Lion. On SL, it's pretty smooth, but on Lion the animation is really choppy.
Sampling shows lots of time in -[AVAssetImageGenerator copyCGImageAtTime:actualTime:error:] (attached.
Created attachment 97143 [details]
Note that frequency of new frames is directly related to the key frame frequency in the video file because we are not resetting AVFoundation's default of snapping the time value to the nearest key frame time.
This makes the title is slightly misleading, as we could get one frame every five seconds, one frame every minute, ten frames per second, etc.
Comment on attachment 97143 [details]
Nice simple fix!
Committed r88847: <http://trac.webkit.org/changeset/88847>