You can convert mkv and webm files into mp4 by using ffmpeg. There is a lot of tutorials on youtube in case you needed.nice blogpost
so far it's fcpx for me despite it not liking MKVs or webms
kdenlive worked fine for a while then it started rendering without audio and i was never able to fix it