Tag Archives: mp3

Playing mp3s and DVDs in Ubuntu Linux

Playing a DVD in Ubuntu Linux

Playing a DVD in Ubuntu Linux

One of the things we do most on our systems is play music and movies. If you buy a computer without an operating system and then install your own operating system one of the details you normally have to take care of is installing codecs to play mp3 files and DVDs.

Despite the scary name codecs are easy to understand, coder/decoder. Most people use codecs for decoding media. Like operating systems there are a variety of codecs you can choose from. There are also codecs to encode/decode audio and codecs to encode/decode video. Popular audio codecs include FLAC, Dolby’s AC3, AAC, and MP3. Popular video codecs include H264, Huffyuv, and Dirac.

Codecs are sometimes patented by companies. This means that often someone has to pay the company with the patent on the codec in order to use the code to decode/play something stored in that format (or to code/store something in that format). If you don’t pay the patent holder then you either don’t get their codec or you have to reverse engineer the format and write your own coder/decoder software/codec to play the format. It’s for this reason codecs often don’t come with an operating system. Operating system writers don’t want to step on the toes (get sued) of codec patent holders.

Luckily in Ubuntu Linux it’s very easy to install codec support for mp3 playback and a variety of other codecs. Simply open up a terminal session and type:

sudo apt-get install ubuntu-restricted-extras

The ubuntu-restricted-extras package includes mp3 codec support, but also includes a lot of other “restricted” software such as java, some truetype fonts Microsoft once released (and then immediately tried to take back), and importantly a package that includes libdvdread4.

DVD playback is one more step. It doesn’t need to be an extra step, but because it’s actually illegal in some countries to decode a DVD using “unapproved” software (think of it this way, the movie industry is writing your laws making it illegal for you to do something so they can make a buck) this extra step is necessary to get DVDs to play in the standard Ubuntu Linux Totem Movie Player. Again at the terminal type:

sudo /usr/share/doc/libdvdread4/install-css.sh

If you’re using a really old version of Ubuntu Linux you might need to change the pathname from libdvdread4 to libdvdread3. Also this command won’t work if you’ve just freshly installed Ubuntu – you have to either install ubuntu-restricted-extras first or install libdvdread4 first. This command is a shell script to install libdvdcss which takes care of the encryption on many DVDs. Unfortunately there are some DVDs that are just so laden with protection techniques that they can’t be played back without software the movie industry has approved.

Leave a Comment

Filed under Linux, Technology

Asunder – simple, fast and flexible cd ripping for Linux

Asunder is a Linux application for ripping music cds. What makes Asunder noteworthy is the variety of formats it can rip to. The Asunder user interface is dead simple, click Extract and it rips the cd. If connected to the Internet Asunder automatically does a CDDB lookup for song information. If the lookup fails or the system isn’t connected to the Internet there’s a CDDB button to resubmit the CDDB request. I tried Asunder with the lossless flac codec on my Linux workstation at work and it flew through a CD in less than 30 seconds (7 songs, Dual P4 3GHz with 4GB RAM).

Asunder cd ripping application

Asunder cd ripping application

Changing configuration options is simple just click the Preferences button. Ogg is the default codec. For additional codecs click the More Formats arrow or the Proprietary encoders arrow.  Wav, mp3, ogg, and flac are visible by default in the preferences menu.

Careful observers will notice my screenshot of Asunder is in Spanish. Asunder defaults whatever language you’ve chosen for Ubuntu/Linux. In this case I switched my language settings to Spanish.

One pet peeve I have is mp3s named with the track number first. Asunder does just this. Change the behaviour in the Preferences > Filenames tab.

Asunder is simple, fast, can dump music to several formats, and is effective. I’ve set Asunder as the default application to open music cds with (when the cd dialog pops up use a custom command of asunder).

 

Leave a Comment

Filed under Linux