Fixe mkv generation.

A long standing MKV generation bug fixes that just pick up newer ffmpeg code and corect its useage.