FFmpeg cache generation

We already do this with MPlayer and we need to do it with FFmpeg