ffmpeg: initialise encoders earlier.