title: FLV performance and garbage collection
body: <p>I'm building a large flash site (AS3) that uses huge FLVs as transition videos from section to section.  The FLVs are 1280x800 and are being scaled to 1680x1050 (much of which is not displayed to users with smaller screens), and are around 5-8 seconds apiece.  I'm encoding the videos using On2's hi-def codec, VP6-S, and playback is pretty good with native FLV players, Perian-equipped Quicktime, and simple proof-of-concept FLV playback apps built in AS3.  </p>
  
  <p>The problem I'm having is that in the context of the actual site, playback isn't as smooth; the framerate isn't quite as good as it should be, and more problematically, there's occasional jerkiness and dropped frames (sometimes pausing the video for as long as a quarter of a second or so).  My guess is that this is being caused by garbage collection in the Flash player, which happens nondeterministically and is therefore hard to test and control for.</p>
  
  <p>I'm using a single instance of FLVPlayback to play the videos; I originally was using NetStream objects and so forth directly but switched to FLVPlayback for <a href="https://stackoverflow.com/questions/1433374/actionscript-3-queuing-up-flvs-using-netstatus-and-cuepoints">this reason</a>.  Has anyone experienced this sort of jerkiness with FLVPlayback (or more generally, with hi-def Flash video)?  Am I right about GC being the culprit here, and if so, is there any way to prevent it during playback of these system-intensive transitions?</p>