Made FFMPEG encoding work on old API in 12.04.