Fix Media Files Not Playing in Elementary OS ‘Luna’

Hi Guys,

As you know Elementary OS is a Linux distro which is Ubuntu based. Since most audio codecs such as MP3 others and are supported by default in Ubuntu same applies to Elementary OS. Hence you don’t know and you are trying to play these files it fails. Sometimes the music might prompt you install these codecs.

The solution to this problem is to install Ubuntu Restricted Extras. This package contains the plugins to make most multimedia formats play,.

Open Terminal and Run the command below:

$ sudo apt-get install ubuntu-restricted-extras
 Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
gir1.2-gstreamer-0.10 libpangomm-1.4-1 libsigc++-2.0-0c2a
libglibmm-2.4-1c2a libcairomm-1.0-1 rsync libatkmm-1.6-1
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
cabextract flashplugin-installer freepats gstreamer0.10-ffmpeg
gstreamer0.10-fluendo-mp3 gstreamer0.10-plugins-bad
gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly
liba52-0.7.4 libass4 libavcodec-extra-53 libavformat53 libavutil-extra-51
libcdaudio1 libcelt0-0 libdc1394-22 libdca0 libdirac-encoder0
libdirectfb-1.2-9 libdvdnav4 libdvdread4 libenca0 libfaac0 libfaad2
libfftw3-3 libflite1 libgme0 libgsm1 libgstreamer-plugins-bad0.10-0
libkate1 libmad0 libmhash2 libmimic0 libmjpegtools-1.9 libmms0 libmodplug1
libmp3lame0 libmpcdec6 libmpeg2-4 libnspr4-0d libnss3-1d libofa0 liboil0.3
libopenal-data libopenal1 libopencore-amrnb0 libopencore-amrwb0
libopenjpeg2 libpostproc52 libquicktime2 libraptor2-0 librasqal3 librdf0
libschroedinger-1.0-0 libsidplay1 libslv2-9 libsoundtouch0 libspandsp2
libswscale2 libts-0.0-0 libtwolame0 libva1 libvo-aacenc0 libvo-amrwbenc0
libvpx1 libwildmidi-config libwildmidi1 libx264-120 libxvidcore4 libyajl1
libzbar0 libzvbi-common libzvbi0 tsconf ttf-mscorefonts-installer
ubuntu-restricted-addons unrar
Suggested packages:
firefox ttf-bitstream-vera ttf-dejavu ttf-xfree86-nonfree xfs
frei0r-plugins libfaad0 libdvdcss2 debhelper fakeroot build-essential
libfftw3-dev raptor2-utils rasqal-utils librdf-storage-postgresql
librdf-storage-mysql librdf-storage-sqlite redland-utils sidplay-base
xsidplay slv2-jack
The following NEW packages will be installed:
cabextract flashplugin-installer freepats gstreamer0.10-ffmpeg
gstreamer0.10-fluendo-mp3 gstreamer0.10-plugins-bad
gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly
liba52-0.7.4 libass4 libavcodec-extra-53 libavformat53 libavutil-extra-51
libcdaudio1 libcelt0-0 libdc1394-22 libdca0 libdirac-encoder0
libdirectfb-1.2-9 libdvdnav4 libdvdread4 libenca0 libfaac0 libfaad2
libfftw3-3 libflite1 libgme0 libgsm1 libgstreamer-plugins-bad0.10-0
libkate1 libmad0 libmhash2 libmimic0 libmjpegtools-1.9 libmms0 libmodplug1
libmp3lame0 libmpcdec6 libmpeg2-4 libnspr4-0d libnss3-1d libofa0 liboil0.3
libopenal-data libopenal1 libopencore-amrnb0 libopencore-amrwb0
libopenjpeg2 libpostproc52 libquicktime2 libraptor2-0 librasqal3 librdf0
libschroedinger-1.0-0 libsidplay1 libslv2-9 libsoundtouch0 libspandsp2
libswscale2 libts-0.0-0 libtwolame0 libva1 libvo-aacenc0 libvo-amrwbenc0
libvpx1 libwildmidi-config libwildmidi1 libx264-120 libxvidcore4 libyajl1
libzbar0 libzvbi-common libzvbi0 tsconf ttf-mscorefonts-installer
ubuntu-restricted-addons ubuntu-restricted-extras unrar
0 upgraded, 78 newly installed, 0 to remove and 122 not upgraded.
Need to get 58.6 MB of archives.
After this operation, 99.8 MB of additional disk space will be used.
Do you want to continue [Y/n]?

Type Y and hit Enter to continue installation.

During installation you will be prompted to configure ttf-mscorefonts

rest1

Select YES to install or NO not to.

rest2

After installation, just fire up you favourite music player and you are good to go.

play_rock

Enjoy.