Archives For media codec

Ubuntu 18.04

Due to legal reason, Ubuntu does not have multimedia codec installed out of the box, though they are available in the universe repositories.

When you’re going to play music or video via the default media players (Rhythmbox and Totem), it prompts to install the decoder:

And Ubuntu Software pops up with a list of software packages after clicked the button.

For those don’t want to be interrupted again, or you don’t know which to install, simple run following single command in terminal.

1.) Open terminal either via Ctrl+Alt+T or by searching for ‘terminal’ from application menu. When it opens, run command:

sudo apt install ubuntu-restricted-extras

Type user password for sudo prompts and hit Enter. Run sudo apt update first if required

The command will install gstreamer, ffmpeg, dvd reading and navigation libraries, mesa and intel video acceleration drivers, and other most required software libraries.

That’s it. Enjoy!

If you didn’t check the ‘Enable Restricted Formats’ box while installing Ubuntu 17.10 on your machine, you’ll have to manually install multimedia codecs to make the default Rhythmbox music player and Totem video player play audio / video files.

Due to legal reasons Ubuntu can not play MP3, MP4, and other media files out of the box. You can manually install commonly used media codecs via a single package called ubuntu-restricted-extras.

Simply open terminal via Ctrl+Alt+T keyboard shortcuts, or by searching “terminal” from application launcher. When it opens, run command:

sudo apt update && sudo apt install ubuntu-restricted-extras

Type your password (no visual feedback while typing) when it prompts and hit Enter

The commands automatically install all required multimedia codecs for use in Rhythmbox and Totem, along with some fonts for Ubuntu.