M2TS (MPEG-2 Transport Stream) is a Blu-ray BDAV container format that uses MPEG-2 transport stream and comes with a .m2ts filename extension. It can manipulate audio, video, and other metadata such as disc menu and subtitles. At a bare minimum, any Blu-ray player should play M2TS files easily.
According to YouTube, MP4 video format with AAC audio codec and H.264 video codec is most recommended. However, this platform is also compatible with formats such as MOV, AVI, WebM, FLV, 3GPP, WMV, and more. Also, keep in mind that the maximum file size for YouTube is 128GB or 12 hours of playtime. So, you can use a video editor like Wondershare UniConverter to compress before uploading videos to YouTube.
VLC Media Player Windows Media Player Apple QuickTime Player 5KPlayer