Video file extension is controlled by the calling code.
ffmpeg requires video codec and file extension to match.