SMPlayer is an open source video player which included all codecs once you install it. By installing it, you can play any video or audio without installing Ubuntu codec packages first. You can install SMPlayer from PPA repository. SMPlayer official website is at Sourceforge.
sudo add-apt-repository --yes ppa:rvm/smplayer sudo apt-get update sudo apt-get install smplayer smplayer-themes smplayer-skins
Note: --yes option assumes you will answer yes anytime apt asks for permission. This will download 16 MB of packages and use 55 MB space after installation. files This PPA maintained by rvm.
You can open a video by right-clicking the file and choose open with SMPlayer. You can also open SMPLayer from Ubuntu menu.