Common: add getFormat

Get the format name from the given filename.
Common: add matchFormat

Check match between a format name and a filename.
Profile: add getFormatProfiles

Get existing format profiles.
Profile: add avProfileFormat
Profile: add AVI and MKV format Profiles
OutputFile: update setProfile

* avProfileFormat is necessary in a format profileDesc.
* Update _outputFormat depending on avProfileFormat in the profile.