Playing Windows Media on Ubuntu 8.04 (for those damn TASI videos)
Richard recently asked for instructions for enabling wmv files to be played on Ubuntu 8.04 (Hardy Heron). This is important since TASI has uploaded its summer school videos in wmv format. After reinstalling Ubuntu, I followed the instructions at Ubuntu Geek and that seems to have worked well. Here’s a summary.
First enable “Universe” and “Multiverse” repositories. (No anthropic jokes today.) You can do this by going to system > Administration > Synaptic Package Manager > Settings > Software Sources > Ubuntu Software and making sure that the appropriate boxes are checked. Alternately, command line jockeys can manually modify the sources.list file: type in
sudo gedit /etc/apt/sources.list
and append the following two lines at the end of the file:
deb http://archive.ubuntu.com/ubuntu hardy universe multiverse deb-src http://archive.ubuntu.com/ubuntu hardy universe multiverse
Save and close.
Next update the source list with the following command: (for absolute beginners, you type these commands in at the Terminal, which you can access from Applications > Accessories > Terminal. Note that you can copy and paste these commands into the Terminal. Insert your password when prompted and respond ‘y’ when given the option.)
sudo apt-get update
Now install Win32 video codecs package. Note that the commands might be slightly different for those with older Ubuntu versions. Use the following commands:
sudo wget http://www.medibuntu.org/sources.list.d/hardy.list -O /etc/apt/sources.list.d/medibuntu.lis sudo apt-get update sudo apt-get install medibuntu-keyring sudo apt-get update sudo apt-get install w32codecs
The last line is for “i386” (Intel) chips. If you’re using an AMD 64-bit chip, replace the last line with
sudo apt-get install w64codecs
Please note that there may be issues with the Win64 codecs and their support for wmv files, c.f. this series of forum posts.
Ok, that’s it for the codecs… but you’ll still need to install MPlayer to view the files properly. For some reason the default player (Totem) had very poor resolution and no audio. Using the Synaptic Package manager (or Applications > Add/Remove) you can just install the mplayer and mozilla-mplayer packages. If you want to be fancy and use the Terminal, you can use the commands
sudo apt-get install mplayer sudo apt-get install mozilla-mplayer
You’ll need to be sure to use MPlayer when opening the wmv file. When you download your first wmv file, right click and go to Properties > Open With and select MPlayer Movie Player (not “Movie Player” which is Totem).
And with that, you should be able to watch the TASI videos—and any other wmv files—using Ubuntu 8.04.
But seriously, if you have any influence on the University of Colorado Physics Learning Laboratories people who host the TASI videos, please urge them to use more reasonable file formats. Flash is accessible using any modern browser and any modern operating system. The files stream very well and take up a fraction of the space on the server.
Filed under: Science 2.0, Student Life | 2 Comments