Formats for imbedding Video in slides using Windows 10

I have been working on using video in my Impress slides and I am trying to figure out which formats will work.
It occurred to me that maybe ? It is not Impress that decides what video (and audio) formats that can be used but that maybe LibreOffice will just look at what formats are available on the individual Windows computer that it is being worked on ?
Like to get a MP4 or MKV to play, I might need to install those particular formats to my Windows computer?
Do I need to install some codec packs in Windows to allow for various video and audio formats to be used by Impress?
Any recommendations for the best video/audio formats for Impress would be great.

Thanks,
Jon