Play All Videos and Music on Ubuntu (Media Codecs)
Tools You'll Need
ubuntu-restricted-extrasVLC
Some video and audio formats need extra codecs on Ubuntu.
1. Install them: sudo apt install ubuntu-restricted-extras (accept the font licence with Tab and Enter).
2. Install VLC, which plays almost everything: sudo apt install vlc (or from App Center).
3. During Ubuntu installation, ticking "Install third-party software" adds most codecs automatically.
4. Linux Mint: the Welcome screen has "Install multimedia codecs", or search for "Multimedia Codecs" in the menu.
Right-click a video, Open With, VLC, and set it as default.