How to play Real Media in Ubuntu Hardy
I use Gentoo and Ubuntu systems generally. While playing .rmvb files on Gentoo was just a matter of emerging the win32codecs or the win64codecs (w32/64codecs on Ubuntu), w64codecs aren’t available for you to apt-get install. Fortunately all you have to do to play .rmvb files with mplayer is to get the binary codecs package from mplayerhq for your specific architecture and platform. In my case AMD64/EMT64 Linux. Go to the download section on the mplayerhq web site and download your codec package. Create the /usr/lib/codecs/ folder if it doesn’t exist already and extract the .so files from the archive you download to that folder. Change the folder permission to a+rx and the .so files permissions to 0644. Be sure to use mplayer or gmplayer to play your .rm or .rmvb files.
tar xjf essential-amd64-20071007.tar.bz2
# if after running ls you don’t see a lot of .so files but instead you see a folder, run:
# cd that_folder
mv *.so /usr/lib/codecs
chmod 0755 /usr/lib/codecs
chmod 0644 /usr/lib/codecs/*
rm -R temp1
EDIT: In the 64bit version of Arch Linux, this was very easy to install just by doing “pacman -S extra/codecs” (Non-linux native codec pack. (Win32, Real9, QuickTime)).
EDIT: The above instructions should work on all systems, but there’s even an easier way to get w32/w64/codecs and keep them up to date: go to the medibuntu site and read the Repository HowTo.